Local php.ini File

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Greetings, I need to configure my cPanel Server to allow local php.ini files because the php_flag option in .htaccess files are not allowed. Tutorials online state that in order to set php values on a server with phpSuExec installed, one must use a local php.ini file in the web root, but that doesn't seem to have any effect. Does the server have to be confgured to look for the local php.ini file? Thanks.

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

I just found some more information. I'm going to upgrade my server to php 5.2 tonight after reading this: http://bugs.php.net/bug.php?id=38714

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Ok, so I answered my own post. Smiling

Upgrading to PHP 5.2 allows you to have a php.ini file in a directory to override certain settings when php_flag doesn't work in the .htaccess file.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.