Where is the php.ini

lawwingfai

New member
Joined
Nov 26, 2008
Messages
1
I am using the directadmin in scicube, do anybody know what is the location for the php.ini ? And after amend the file, how can I restart the server to make the amendment works? Thanks a lot.
 
find will certainly work but it takes a little longer.

Code:
[root@server ~]# date;whereis php;date;find / -name php.ini;date
Wed Nov 26 12:33:22 EST 2008
php: /etc/php.ini /usr/lib/php /usr/local/bin/php /usr/local/lib/php.ini /usr/local/lib/php
Wed Nov 26 12:33:23 EST 2008
/usr/local/Zend/etc/php.ini
/usr/local/lib/php.ini
/usr/local/installatron/etc/php.ini
/usr/local/directadmin/plugins/Exim_Editor/data/php.ini
/etc/php.ini
/var/installatron/i3backup/data/php.ini
Wed Nov 26 12:34:09 EST 2008

Can also be found using the phpinfo(); command in a php script run from the browser.

Also from command line

Code:
echo "<?php phpinfo(); ?>"|php |grep "Loaded Configuration File"

php --ini
 
Back
Top