[UPHPU] PHP 5 and local php.inis
Ray Hunter
bigdog at venticon.com
Mon Mar 26 23:53:21 MDT 2007
> Alright, so we figured out that php 5.1 doesn't like local php.ini
> files. Apparently the programmers thought that was a bug and removed
> it. But as a web host we're used to offering php.ini customization to
> our customers so they can tweak their settings easily enough.
>
> We've got that fixed now with an upgrade, but the settings from a users
> root php.ini file don't seem to want to cascade to subdirectories as
> they do in the versions of php 4 we're running elsewhere. Any ideas on
> how to make that work or are we just pretty much stuck waiting for the
> next release?
if you are using virtual hosts you might be able to setup the location of the
php.ini file for that virtual host. meaning that you can have each virtual host
reference its own version that your user can modify.
i think you can use the following directive for apache2:
PHPIniDir
you might want to read up on it here:
http://us3.php.net/manual/en/configuration.php#configuration.file
here is some more reading:
http://www.askapache.com/2007/php/custom-phpini-tips-and-tricks.html
good luck! :)
--
ray
More information about the UPHPU
mailing list