Create custom php.ini in a Litespeed webserver

Posted by Skynats Technologies on February 14th, 2020

LiteSpeed Web Server is proprietary web server software. It is the 4th most popular web server, conserves resources without sacrificing performance, security, compatibility, or convenience. Litespeed web server is used in many of the hosting servers to accelerate the performance of the websites hosted in it.


Click here to get more info about:managed cloud service provider


In hosting environment with cPanel servers, it is necessary to edit the PHP variables for each domain or customer and this can be done using by creating a custom php.ini for each user’s home directory. So the clients can change the PHP values according to their requirements. There should some steps need to be done on Litespeed admin panel on cPanel/WHM to enable custom php.ini and you can follow the below steps to enable it.


For more info visit here: digitalocean server management


Login to WHM
Select Litespeed Web Server
Litespeed Configuration > Admin Console > Configuration > Server > External App > lsphp5
Under Environment section >> add “PHPRC=$VH_ROOT”
Under “suEXEC User ” section >> add the account username for which custom php.ini has to be enabled.
Under “suEXEC Group ” section >> add the group name of the same account.
Click save and return to Main >> Litespeed Web server
Under Quick Configuration of PHP suEXEC settings,>> Set Enable PHP suExec to yes.
Restart lightspeed web server
After that put custom php.ini in the user’s home directory and check it using a phpinfo page.

Like it? Share it!


Skynats Technologies

About the Author

Skynats Technologies
Joined: January 13th, 2020
Articles Posted: 4

More by this author