[UPHPU] PHP 5 and local php.inis
bms at mscis.org
Mon Mar 26 23:26:00 MDT 2007
Velda Christensen wrote:
> 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?
Sorry Velda, for the double send... Too many PLUG posts lately...
Go to your master php.ini file, and add something like this to the
Assuming that every web admin will have /home/[username]/www/ for their
docroot. This will make all php.ini files in all document roots
available to their entire website. As for subfolders after that, it
will get much less secure if you start adding things like /home/*/www/*/
and on, so I'd tell them it's not supported outside the doc root. As an
alternative, perhaps you can just use ./ in the include path, but I
believe that's a default, so I was assuming you already have that path set.
Also, remember to separate each path with a colon if you are using a
Linux/Unix server, or a semicolon for Windoze. Here's my entry as an
include_path = "./:/usr/local/apache/phpinclude/:/usr/local/lib/php/"
FYI, the phpinclude directory is for my own included files, and the
lip/php is where PEAR files go by default. An example for that *other"
include_path = ".;c:\php\includes"
More information about the UPHPU