Enable litespeed custom php.ini on cPanel server
Once you switched your webserver to litespeed individual php.ini files wont work. Follow the below steps to make it working
First loin to the litespeed admin area.
http://YourServerIP:7080/config
To reset litespeed password please follow this link Reset Litespeed password
Once you are in Go to
Configuration => Server => External App =>lsphp5 => Edit
Now under Environment add the below line and click Save
PHPRC=$VH_ROOT
To place php.ini under /home/username/public_html use the cose
PHPRC=$VH_ROOT/public_html
Now restart litespeed after that you can use php.ini under /home/<user>/php.ini
/etc/init.d/lsws restart
Leave A Comment