Cant find real php.ini

Giorgi

Active Member
#1
Hello there :)

I have migrated from Apache of DirectAdmin to LSWS (got license), Then I updated my php to latest version via tutorial that I found here.

now the problem is I dont get wich php.ini does my php use, on locate php.ini I get:


Code:
/opt/lsws/admin/conf/php.ini
/opt/lsws/admin/misc/php.ini
/opt/lsws/conf/php.ini
/root/lsws/admin/conf/php.ini
/root/lsws/admin/misc/php.ini
/root/lsws/php/php.ini
/root/php-5.2.4/php.ini-dist
/root/php-5.2.4/php.ini-recommended
/usr/local/Zend/etc/php.ini
/usr/local/directadmin/customapache/php-4.4.7/php.ini-dist
/usr/local/directadmin/customapache/php-4.4.7/php.ini-recommended
/usr/local/directadmin/customapache/php-5.2.4/php.ini-dist
/usr/local/directadmin/customapache/php-5.2.4/php.ini-recommended
/usr/local/lib/php.ini
/usr/local/lib/php.ini-zend_optimizer.bak
and my php info says:

Code:
Configuration File (php.ini) Path  ../php
I tried to change upload_max_filesize in all that php.ini files and restarting lsws but it still remains 2M.

any advice?

thank you
 

mistwang

LiteSpeed Staff
#2
You should copy your php.ini to /opt/lsws/php/php.ini. I think upgrade your LSWS install from a earlier installation. You may need to create /opt/lsws/php directory.
 
Top