Quick Tip: Non Cascading php.ini Values? Fix it Quick

We have all seen it. We have all done it. We have a WordPress site that doesn’t listen to php.ini. We need to increase the max execution time or increase the PHP memory limit. We change a server’s PHP settings using php.ini and test with <?php php_info() ?>. Low and behold, the settings don’t take. We put php.ini in different locations and click a dozen links in search engines that promise solutions. Nothing works. The server still doesn’t behave so we give up.

You’re wait is over.. probably.. if you’re using suPHP

One cause of PHP settings not taking affect is that the server is not reading the correct php.ini file or the php.ini file is not where the server thinks it is.

Look in your topmost .htaccess file. Is there a directive that looks like this:

<IfModule mod_suphp.c>
 suPHP_ConfigPath /home/example/public_html/php.ini
 <Files php.ini>
 order allow,deny
 deny from all
 </Files>
 </IfModule>

If so, check the directory path stated in the line suPHP_ConfigPath /home/example/public_html/php.ini. Does it match the location of your main php.ini file? If it is wrong, correct the file path.

Sharing is caring!

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x