BLACK FRIDAY SALE IS LIVE !!!!!

Need Assistance?

In only two hours, with an average response time of 15 minutes, our expert will have your problem sorted out.

Server Trouble?

For a single, all-inclusive fee, we guarantee the continuous reliability, safety, and blazing speed of your servers.

Create custom php.ini in a Litespeed webserver

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. In a 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 be some steps that need to be done on the Litespeed admin panel on cPanel/WHM to enable custom php.ini.

Follow the steps below and if you face any issue or need any assistance, please contact our technical support team for a free consultation on live chat.

Creating custom php.ini in a Litespeed webserver

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

 

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Can't get what you are looking for?

Available 24x7 for emergency support.