Friday, January 14, 2011

Install Litespeed on CPanel

# cd /usr/src

# wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh

# chmod 700 lsws_whm_plugin_install.sh

# ./lsws_whm_plugin_install.sh

# rm -f lsws_whm_plugin_install.sh

  • Login to WHM and click the ‘LiteSpeed Web Server’ button.
  • Click ‘Install LiteSpeed’ and let it run through the installation procedure.
  • Enter your license information & assign an administrator password (Don’t tick the box to start LiteSpeed immediately)
  • Click ‘Build matching PHP Binary’
  • Click ‘Switch to LiteSpeed’
  • Click ‘Admin Web Console’ and login

Final stages of setup

  • Configuration > General > Index Files > Edit

Set the following and save.

Index Files: index.html, index.php, index.php5, index.htm

Auto Index: Yes

Auto Index URI => /_autoindex/default.php

  • In SSH Type:

# ln -sf /usr/local/lib/php/autoindex /usr/local/lsws/share/autoindex

  • Configuration > Log > Server Log > Edit

Set the following:

Log Level: Info

Debug Level: None

  • Now click ‘Actions > Graceful Restart’ to make these changes permanent.


Want your users to be able to use Frontpage Extensions?

Run this command from SSH:

sed -rie ‘s/(safe_)?chmod\(( )?0600,( )?(“\$\{myuid\}”,)?( )?”\$(\{)?homedir(\})?\/public_html\$\{subweb\}\/_vti_pvt\/service.pwd”( )?\);/\1chmod(\20644,\3\4\5″$\6homedir\7\/public_html${subweb}\/_vti_pvt\/service.pwd”\8);/’ /scripts/fp-auth /usr/local/frontpage/version5.0/apache-fp/fp-auth /usr/local/cpanel/bin/convertfppassthrough /scripts/fixfrontpageperm

Then run this command from SSH:

/scripts/fixfrontpageperm

Forgot your LiteSpeed admin pass?

Run this within SSH to reset your LiteSpeed Admin Pass: /usr/local/lsws/admin/misc/admpass.sh



No comments:

Post a Comment