Configuring LiteSpeed Webserver with a hosting cPanel

by Herman Tarigan on December 18, 2008

LiteSpeed Web Server

LiteSpeed Web Server

Configuring LiteSpeed Webserver with a hosting cPanel

[root@nagan ~]# pwd
/root
[root@nagan ~]# mkdir litespeed
[root@nagan ~]# cd litespeed/

Download LiteSpeed Web Server

[root@nagan litespeed]# wget http://www.litespeedtech.com/packages/3.0/lsws-3.3.22-ent-i386-linux.tar.gz

–20:21:37–  http://www.litespeedtech.com/packages/3.0/lsws-3.3.22-ent-i386-linux.tar.gz

=> `lsws-3.3.22-ent-i386-linux.tar.gz’

Resolving www.litespeedtech.com… 209.151.227.121
Connecting to www.litespeedtech.com|209.151.227.121|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 5,204,674 (5.0M) [application/gzip]
100%[====================================>] 5,204,674      7.39K/s    ETA 00:00
20:31:07 (8.94 KB/s) – `lsws-3.3.22-ent-i386-linux.tar.gz’ saved [5204674/5204674]

[root@nagan litespeed]# tar zxf lsws-3.3.22-ent-i386-linux.tar.gz

  • get trial key : http://www.litespeedtech.com/trial/license/ and move to ~/litespeed/lsws-3.3.22

Install LiteSpeed Web Server

[root@nagan lsws-3.3.22]# ./install.sh

End-User License Agreement for LiteSpeed Software
IMPORTANT READ CAREFULLY
This End-User License Agreement (“EULA”) is a legal agreement between
“You”, the end user (either an individual or a single entity) and Lite
Speed Technologies Inc. a company registered in New Jersey, United
States (“LITESPEED”) for a software product (“SOFTWARE PRODUCT”).

YOU MUST READ THE TERMS BELOW BEFORE DOWNLOADING, INSTALLING, OR
OTHERWISE USING THE SOFTWARE PRODUCT. BY DOWNLOADING, INSTALLING, OR
USING THE SOFTWARE PRODUCT YOU AGREE TO BE AND WILL BE BOUND BY THE
TERMS OF THIS EULA. IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA, DO
NOT DOWNLOAD, INSTALL, OR USE THE SOFTWARE PRODUCT AND YOU SHOULD
DESTROY OR DELETE THE SOFTWARE PRODUCT.

……………..

…………….

IMPORTANT: In order to continue installation you must agree with above

license terms by typing “Yes” with capital “Y”!

Do you agree with above license? Yes

Please specify the destination directory. You must have permissions to
create and manage the directory. It is recommended to install the web server

at /opt/lsws, /usr/local/lsws or in your home directory like ‘~/lsws’.

ATTENTION: The user ‘nobody’ must be able to access the destination directory.

Destination [/opt/lsws]: /usr/local/lsws

[OK] Your trial license key will expire in 14 days!

Please specify the user name of the administrator.
This is the user name required to log into the administration web interface.

User name [admin]: titik

Please specify the administrator’s password.
This is the password required to log into the administration web interface.

Password:
Retype password:

[ERROR] Sorry, passwords does not match. Try again!

Password:
Retype password:

Please specify administrators’ email addresses.It is recommended to specify a real email address, Multiple email addresses can be set by a comma delimited list of email addresses. Whenever something abnormal happened, a notificiation will be sent to emails listed here.

Email addresses [root@localhost]: admin[at]titik[dot]org

Will you use LiteSpeed Web Server with a hosting contorl panel?

0. NONE
1. cPanel
2. DirectAdmin
3. Plesk

Please select (0-3) [0]? 1

Would you like to run LiteSpeed along side with Apache on another port
to make sure everything work properly? If yes, please set “Port Offset”
to a non-zero value, LiteSpeed will run on Port 80 + “Port Offset”,
otherwise, set to “0″ to replace Apache.

Port Offset [2000]?

PHP suEXEC will run php scripts of each web site as the user who own the document root directory,
LiteSpeed PHP suEXEC does not have any performance penalty like other PHP suEXEC implementation, and .htaccess configuration overriden has been fullysupported.
Note: You may need to fix some file/directory permissions if phpSuexec orsuphp was not used with Apache.

Would you like to enable PHP suEXEC?

0. No
1. Yes
2. Only in user’s home directory (DirectAdmin should use this)

Please select (0-2)? [2]

Installing, please wait…
LiteSpeed Web Server Plugin for WHM Installed.
You can access it from WHM web console plugins section.
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script – “/usr/local/lsws/bin/lswsctrl”
can be used to start or stop the server.
It is recommended to limit access to the web administration interface.
Right now the interface can be accessed from anywhere where this
machine can be reached over the network.
Three options are available:

1. If the interface needs to be accessed only from this machine, just
change the listener for the interface to only listen on the loopback
interface – localhost(127.0.0.1).

2. If the interface needs to be accessible from limited IP addresses or sub
networks, then set up access control rules for the interface accordingly.

3. If the interface has to be accessible via internet, SSL (Secure Sockets
Layer) should be used. Please read respective HOW-TOs on SSL configuration.

To change configurations of the interface, login and click
“Interface Configuration” button on the main page.
The administration interface is located at http://localhost:<ADMIN_PORT>/
or http://<ip_or_Hostname_of_this_machine>:<ADMIN_PORT>/

Would you like to have LiteSpeed Web Server started automatically

when the server restarts [Y/n]? Y

[OK] The startup script has been successfully installed!

The default configuration file contain support for both PHP4 and PHP5,
A prebuilt PHP4 binary comes with this package, however, we recommend
you to build your own PHP4 and PHP5 binaries though our web console with
the same configuration parameters as your current PHP installation. You
can check your current PHP configuration via a phpinfo() page.

Press [ENTER] to continue

When you replace Apache with LiteSpeed, remember to stop Apache completely.
On most Linux servers, you should do:

service httpd stop
chkconfig httpd off

or
service apache stop
chkconfig apache off

If “Port Offset” has been set to 0, you should do it now.

Press [ENTER] to continue

Would you like to start it right now [Y/n]? Y

[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=22556

LiteSpeed Web Server started successfully! Have fun!

LiteSpeed PHP

LiteSpeed PHP

download and extract php

[root@nagan lsws-3.3.22]# wget http://us.php.net/distributions/php-4.4.9.tar.gz
[root@nagan lsws-3.3.22]# tar -xzf php-4.4.9.tar.gz

download and extract LiteSpeed SAPI

[root@nagan lsws-3.3.22]# cd php-4.4.9/sapi/
[root@nagan sapi] # wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.8.tgz
[root@nagan sapi]# tar zxf php-litespeed-4.8.tgz
[root@nagan sapi]# cd ../
[root@nagan php-4.4.9]# touch ac*

Forcing buildconf
[root@nagan php-4.4.9]# ./buildconf –force

Configure and install PHP
[root@nagan php-4.4.9]# ./configure ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-dbase”–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml’ ‘–enable-magic-quotes’ ‘–enable-sockets’ ‘–prefix=/usr/local’ ‘–with-curl=/opt/curlssl/’ ‘–with-expat-dir=/usr’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-iconv’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’ ‘–with-jpeg-dir=/usr’ ‘–with-kerberos’ ‘–with-libxml-dir=/opt/xml2/’ ‘–with-mcrypt=/opt/libmcrypt/’ ‘–with-mysql=/usr’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-png-dir=/usr’ ‘–with-ttf’ ‘–with-xmlrpc’ ‘–with-xpm-dir=/usr’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’ ‘–with-litespeed’

[root@nagan php-4.4.9]# make
[root@nagan php-4.4.9]# make install
[root@nagan php-4.4.9]# cd /usr/local/lsws/fcgi-bin/
[root@nagan fcgi-bin]# mv lsphp lsphp.old
[root@nagan fcgi-bin]# cp /root/litespeed/lsws-3.3.22/php-4.4.9/sapi/litespeed/php lsphp
Copy file php.ini
[root@nagan fcgi-bin]# cp /usr/local/lib/php.ini .
[root@nagan fcgi-bin]# ls -al
total 8944
drwxr-xr-x   2 root root    4096 Dec  2 20:48 .
drwxr-xr-x  15 root root    4096 Dec  2 20:35 ..
-r-xr-xr-x   1 root root    3317 Dec  2 20:35 lsperld.fpl
-rwxr-xr-x   1 root root 7048849 Dec  2 20:47 lsphp
lrwxrwxrwx   1 root root       7 Dec  2 20:35 lsphp4 -> ./lsphp
lrwxrwxrwx   1 root root       7 Dec  2 20:35 lsphp5 -> ./lsphp
-r-xr-xr-x   1 root root 2031832 Dec  2 20:35 lsphp.old
-rw-r–r–   1 root root   39046 Dec  2 20:48 php.ini
-r-xr-xr-x   1 root root     737 Dec  2 20:35 RailsRunner.rb

Start LiteSpeed Web Server
[root@nagan fcgi-bin]# /usr/local/lsws/bin/lswsctrl start
[OK] Send SIGUSR1 to 22556

Switch LiteSpeed Webserver to Apache Webserver
root@nagan lsws_whm_plugin]# pwd
/usr/local/lsws/add-ons/cpanel/lsws_whm_plugin
[root@nagan lsws_whm_plugin]# sh switchToApache.sh

Configuring LiteSpeed Webserver with a hosting cPanel

Configuring LiteSpeed Webserver with a hosting cPanel

Related site from :

- http://ogisigit.blogspot.com/2008/10/installin-litespeed.html

Herman Tarigan

Pernah menjadi Operator warnet, Customer Service Webhosting, System Administrator Webhosting, Website (SEO) Consultant, Operational Manager, Marketing dan sekarang memilih menjadi FREELANCE :)

Incoming search terms for the article:

license terms by typing Yes with capital Y, how to configure litespeed web server to work with cpanel, mikrotik backup mail localhost error, litespeed on cpanel web admin not working, how to install litespeed on cpanel
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Live
  • Print this article!
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word