PDA

View Full Version : which php.ini should I change?


hichew
03-25-2007, 08:18 AM
for some reason i can't send email using php mail() command.
and seems like the sendmail path is still empty in the php.ini, but i dont know which one should I edit.

/opt/lsws/admin/conf/php.ini
/opt/lsws/admin/misc/php.ini
/opt/lsws/php/php.ini
/root/php-5.2.1/php.ini-dist
/root/php-5.2.1/php.ini-recommended
/usr/local/lsws/admin/conf/php.ini
/usr/local/lsws/admin/misc/php.ini
/usr/local/lsws/php/php.ini
/usr/local/lsws-3.0/admin/conf/php.ini
/usr/local/lsws-3.0/admin/misc/php.ini
/usr/local/lsws-3.0/php/php.ini


and do i need to restart something after make changes?

xing
03-25-2007, 10:31 AM
If you installed LiteSpeed to "/opt/lsws" then you need to modify "/opt/lsws/conf/php.ini".

mistwang
03-25-2007, 07:23 PM
It depends on whether you compile your own php binary or use our pre-built binary.

Anyway, the phpinfo() page should tell you which php.ini is used.

hichew
03-31-2007, 04:46 PM
thanks for the response.