Sunday, 12 August 2012

Creating custom Php.ini file in Litespeed webserver


Select Litespeed Web Server  >  Litespeed Configuration > Admin Console > Configuration > Server > External App > lsphp5

Click on Edit . In the  “Environment “ section,  add

 “ PHPRC=$VH_ROOT ”

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

Then, save the changes.

Main > Litespeed Web server > Quick Configuration of PHP suEXEC settings

Enable PHP suExec should be ‘yes.”

Then, Restart litespeed webserver from back end:

# /etc/init.d/lsws restart

Then, put custom php.ini file in the user’s home directory.

Put info.php page in public_html  to test whether it is loading fine.

No comments:

Post a Comment