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

Stop worrying about your server.

cPanel/Plesk Server Management for just $59/mo with Unlimited tickets, Unlimited admin hours, Security audits, 24×7 monitoring and lot more 

cPanel Server Management  $59/mo Click here

Plesk Server Management $59/mo Click here

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

 

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

Server Management at just $59

 

Leave a Reply

Your email address will not be published. Required fields are marked *