Magento - Which .htaccess/php.ini file affects Import?
I need to change max_execution_time to hopefully resolve some issues I'm having with Magento 1.5.1.0's Import function. After running find
in my Magento root directory, I noticed there are a bunch of locations for .htaccess. Which one do I need to edit to fix the Import issue?
NOTE: This is the line in my .htaccess file that I hope is overriding my php.ini settings:
php_value max_execution_time 18000
Here is a list:
/home/domain/public_html/errors/.htaccess
/home/domain/public_html/magerepair/errors/.htaccess
/home/domain/public_html/magerepair/.htaccess
/home/domain/public_html/magerepair/var/.htaccess
/home/domain/public_html/magerepair/pkginfo/.htaccess
/home/domain/public_html/magerepair/includes/.htaccess
/home/domain/public_html/magerepair/app/.htaccess
/home/domain/public_html/magerepair/lib/.htaccess
/home/domain/public_html/magerepair/media/downloadable/.htaccess
/home/domain/public_html/magerepair/media/.htaccess
/home/domain/public_html/magerepair/downloader/.htaccess
/home/domain/public_html/magerepair/downloader/template/.htaccess
/home/domain/public_html/.htaccess
/home/domain/public_html/var/.htaccess
/home/domain/public_html/var/backups/.htaccess
/home/domain/public_html/pkginfo/.htac开发者_JS百科cess
/home/domain/public_html/includes/.htaccess
/home/domain/public_html/app/.htaccess
/home/domain/public_html/lib/.htaccess
/home/domain/public_html/media/downloadable/.htaccess
/home/domain/public_html/media/.htaccess
/home/domain/public_html/downloader/.htaccess
/home/domain/public_html/downloader/template/.htaccess
Make your change in /home/domain/public_html/.htaccess
and the setting will be inherited by all others.
Magento has a front controller architecture which means everything works through the same index.php
file. Whatever affects that must affect the whole application too.
Not all servers are configured to read the .htaccess for php values. Check with your webhost for details, but as Darren stated a php.ini would be the more logical choice to make this php configuration change.
The file that I needed to change was located at /usr/local/lib/php.ini
. This change affected all domains on my server (in my case, only one). It can also be done through Web Host Management by going to PHP Configuration Editor.
精彩评论