justahandle

Registered
Oct 17, 2006
2
0
151
I have, count 'em, nine different php.ini files. phpinfo() says that my php.ini path is '/usr/local/lib/php.ini' so that's what I've been editing for serverwide configuration changes, but I would really like to know why there there so many php configuration files.

Any clues? Thanks.

# locate php.ini
/home/virtfs/vpsuser/usr/local/lib/php.ini
/home/virtfs/vpsuser/usr/lib/php.ini
/usr/local/lib/php.ini
/usr/local/cpanel/3rdparty/lib/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/lib/php.ini
/scripts/php.ini
/etc/php.ini
/var/cpanel/version/php.ini-2
 

Henric

Member
Feb 27, 2006
11
1
151
Hello justahandle,

Real php.ini file is the file when you execute the command

php -i | grep ini

Most probably it is /usr/local/lib/php.ini

if you have zend optimizer installed it will be /usr/local/Zend/etc/php.ini

php.ini files in virtfs may be symbolic links to actual php.ini