Do Not Move php.ini

From Zanecorpwiki

Jump to: navigation, search

The PHP documentation states that the compile/config directive '--with-config-file-path' can be used to set the location of the 'php.ini' config file. The problem is that while PHP will acknowledge the new location, it will not actually load the file (PHP 5.3, 5.3.1, Linux). There may be other factors involved, but this was observed on multiple configurations when compiling from source.

The solution is to accept the default location of 'PREFIX/lib', where PREFIX is set with '--prefix' or defaults to '/usr/local'.

Personal tools