How to create custom php.ini file in a Litespeed Web-server

Posted: 3p in litespeed

create the custom php.ini file for a particular domain.

1) Login to your WHM >> Select “Litespeed Configuration” >> Admin Console >> Configuration >> Server >> External App >> lsphp5

2 ) Here, click the ‘Edit’ option

In the “Environment “ section, add “ PHPRC=$VH_ROOT

In the “suEXEC User “ section, add the account’s username for which custom php.ini has to be enabled and for “suEXEC Group “ section, add the group name of the account.

save the changes.

3) Now proceed as Main >> Litespeed Webserver >> Quick Configuration of PHP suEXEC settings

Here, “Enable PHP suEXEC” should be ‘yes‘.

4) Restart your Litespeed Web server now,

===================
#/etc/init.d/lsws restart
===================

Then create the custom php.ini file in the user’s home directory.
——-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s