[HELP] Where is php.ini in OLS

#1
My siystem:
ubuntu 16.004
OpenLiteSpeed 1.6.5
Lsphp7.3

Can anyone tell me, where is php.ini?

I try to modify some settings to my server.

root@myserver:~# find /usr/local/lsws/ -name "php.ini"
/usr/local/lsws/admin/misc/php.ini
/usr/local/lsws/admin/conf/php.ini

when I change some value on those files, it doesn't affect my web.
max_file_uploads = 128M

Can anyone tell me, where is php.ini?
 

mcbsys

New Member
#4
Tried adding a phpinfo.php to /usr/local/lsws/admin/html but it returns 403 Access Forbidden whether I am logged in to OpenLiteSpeed or not. I need php.ini at the server level, not the individual web site level.

Please either post the answer to the question or post exact steps for getting PHP info.
 
#5
Tried adding a phpinfo.php to /usr/local/lsws/admin/html but it returns 403 Access Forbidden whether I am logged in to OpenLiteSpeed or not. I need php.ini at the server level, not the individual web site level.

Please either post the answer to the question or post exact steps for getting PHP info.
Try here: sudo nano /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini

of course change both 74 and 7.4 with your version of php
 
Top