You will be asked a few questions and need to select the following options:
* Do you agree with above license? Yes
* Destination [/opt/lsws]: /opt/lsws [ /usr/local/lsws can also be used]
* User name [admin]: admin
* Password: youradminpassword
* Retype password: youradminpassword
* User [nobody]: nobody [use a non-system user that doesn't have a shell access and home directory]
* Group [nobody]: nobody [group the webserver will be running as]
* HTTP port : 80 [you can give any port you wish to run lsws. If any other webserver ( httpd ) is running on this port, stop it before starting lsws ie; /etc/init.d/httpd stop then run the command chkconfig httpd off]
* Admin HTTP port : 7080
* Both these ports should be enabled in the firewall
* Setup up PHP [Y/n]: Y
* Suffix for PHP script(comma separated list) [php]: php
* Would you like to change PHP opcode cache setting [y/N]? N
* Would you like to install AWStats Add-on module [y/N]? N
* Would you like to import Apache configuration [y/N]? N
* Would you like to have LiteSpeed Web Server started automatically when the machine restarts [Y/n]? Y
* Would you like to start it right now [Y/n]? Y
LiteSpeed Web Server started successfully! Have fun!
To check whether litespeed is working use the following command
To replace Apache with LSWS :-
Login to admin panel at http://<serverIP>:7080 and with the admin username and password.
Goto Configurations >> Server >> General.
Keeping the cursor against the button along with each option will give you a small definition about the same.
Scroll down to "Using Apache Configuration File"
Load Apache Configuration => Yes
Auto Reload On Changes => Yes (Changes made in WHM/cPanel will be applied automatically)
Apache Configuration File => /usr/local/apache/conf/httpd.conf
Apache Port Offset => 0
Apache IP Offset => 0
PHP suEXEC => Yes (Run PHP in suEXEC mode)
PHP suEXEC Max Conn => 8 (The maximum PHP processor each account can have)
Scroll back up to "Index Files" and set it as follows:
Index Files index.html, index.php, index.php5, index.php4, index.htm
Auto Index Not Set
Auto Index URI Not Set
scroll down to "HT Access"
Allow Override Tick the check box: Limit, Auth, FileInfo, Indexes,
Options Uncheck: None
Access File Name .htaccess
Goto Configurations >> Server >> Listeners
delete all current listeners.
Now restart the webserver
service lsws restart
Enjoy lite speed on plesk! Similarly you can install it on cpanel and DA too.
Red Hat Certified Engineer
Genius is ninety-nine percent perspiration and one percent inspiration