hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : Install configure Litespeed webserver on Plesk
Reply

Forum Jump

Install configure Litespeed webserver on Plesk

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-29-2008, 01:14 AM
unixcares unixcares is offline
Junior Guru Wannabe
 
Join Date: Jan 2008
Location: India
Posts: 46

Install configure Litespeed webserver on Plesk


Hi,

Use the following steps to install litespeed web server on your vps

cd /usr/src/

wget http://www.litespeedtech.com/package...6-linux.tar.gz

tar xzf lsws-3.3.4-ent-i386-linux.tar.gz

cd lsws-3.3.4/

(Upload the key)

sh install.sh

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 [8088]: 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]: 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

netstat -apnt |grep lhttpd
server2:~ # netstat -apnt |grep lshttpd
tcp 0 0 0.0.0.0:7080 0.0.0.0:* LISTEN 26256/lshttpd
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 26256/lshttpd



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.

__________________
unixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration



Sponsored Links
  #2  
Old 02-29-2008, 09:28 AM
L3-Carl L3-Carl is offline
Junior Guru Wannabe
 
Join Date: Jun 2006
Location: Cheshire, UK
Posts: 67
Cool.. Thanks!

Could you put the steps in
Code:
 code tags
tho

__________________
Carl Pickering, Line3 Internet
http://www.line3.co.uk
UK VPS Provider; 99.98% uptime


  #3  
Old 02-29-2008, 04:31 PM
mistwang mistwang is offline
Web Hosting Guru
 
Join Date: Nov 2003
Posts: 304
UnixCares,

Thanks for the nice tutorial.

To my experiences, Plesk usually put Apache configuration file at /etc/httpd/conf/httpd.conf, cPanel use /usr/local/apache/conf/httpd.conf. I could be completely wrong if Plesk changed it.

Also, there are jump start configuration files available for cPanel, Plesk and DirectAdmin in the Enterprise Edition installer, could be a little bit easier than configuring everything from scratch.

__________________
LiteSpeed Web Server by http://www.litespeedtech.com
Best PHP and Ruby On Rails hosting platform,
Completely Apache interchangeable
Compatible with all hosting control panels.

Sponsored Links
  #4  
Old 02-29-2008, 05:44 PM
unixcares unixcares is offline
Junior Guru Wannabe
 
Join Date: Jan 2008
Location: India
Posts: 46
For plesk please find the correct path of apache configuration file and add it under Configurations >> Server >> General. For vps plesk it may be as follows

/etc/apache2/conf.d/zz010_psa_httpd.conf

__________________
unixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration

  #5  
Old 02-29-2008, 06:00 PM
sleepinggiant08 sleepinggiant08 is offline
Newbie
 
Join Date: Dec 2007
Location: MD, USA
Posts: 9
Nice tutorial, litespeed and ruby on rails is a great combination, especially better than apache.

  #6  
Old 02-29-2008, 06:17 PM
mistwang mistwang is offline
Web Hosting Guru
 
Join Date: Nov 2003
Posts: 304
Quote:
Originally Posted by unixcares View Post
For plesk please find the correct path of apache configuration file and add it under Configurations >> Server >> General. For vps plesk it may be as follows

/etc/apache2/conf.d/zz010_psa_httpd.conf
That's the configuration file holding all virtual host configurations. I think the main configuration file should be /etc/apache2/conf/httpd.conf for Apache2 installation.

__________________
LiteSpeed Web Server by http://www.litespeedtech.com
Best PHP and Ruby On Rails hosting platform,
Completely Apache interchangeable
Compatible with all hosting control panels.

  #7  
Old 03-01-2008, 12:28 AM
r00ter r00ter is offline
Web Hosting Master
 
Join Date: Feb 2006
Location: New York, NY
Posts: 704
I have to say, I love LiteSpeed. It does have such a higher capability standard then with Apache, and not a big resource hog. Good work, and nice tutorial. Has my bookmark.

PS - 400th Post

  #8  
Old 03-04-2008, 12:04 PM
unixcares unixcares is offline
Junior Guru Wannabe
 
Join Date: Jan 2008
Location: India
Posts: 46
Thank you all Litespeed can be integrated with LXAadmin control panel and it makes hosting very economical

__________________
unixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration

  #9  
Old 03-05-2008, 01:01 AM
lamnk lamnk is offline
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 65
Do you need to recompile php in order to make PHP sites work ? I have a wordpress blog and it refused to work when i replaced apache with litespeed.

__________________
Ngo Ky Lam

  #10  
Old 03-05-2008, 02:24 AM
unixcares unixcares is offline
Junior Guru Wannabe
 
Join Date: Jan 2008
Location: India
Posts: 46
Yes, we need to recompile php

Yes, we need to recompile php. Following steps help you to recompile php

Download latest version of php from php.net. ( php-5.2.5) to /usr/src and untar it. Then change directory to sapi

Code:
 cd /usr/src/php-5.2.5/sapi
Then download the php-litespeep tar file (php-litespeed-4.0.tgz) in sapi directory and untar it. After downloading the file execute the following command .
Code:
tar -zxf php-litespeed-4.0.tgz

cd ../

touch ac*

./buildconf --force
To get the old configuration run the following command

Code:
php -i |grep config
Then remove configure option "--with-apxs=/usr/local/apache/bin/apxs" and add the the following configure options

'--prefix=/php5' '--with-litespeed' '--with-config-file-path=../php'

Next we can configure using the following command. Please note that configure options may be different for different servers, which depends on the old config.

Code:
'./configure'  '--disable-cgi' '--disable-mbregex' '--disable-path-info-check' '--disable-pdo' '--disable-posix' '--enable-libxml' '--prefix=/usr/local' '--with-litespeed' '--with-config-file-path=../php' '--with-dom=shared,/usr' '--with-curl=/opt/curl/' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--without-iconv' '--without-pear'

Code:
make

make install

cd /opt/lsws/fcgi-bin/

mv lsphp lsphp.old.again

cp /usr/src/php-5.2.5/sapi/litespeed/php lsphp
 
cp /usr/src/src.bk/php-5.2.5/sapi/litespeed/php lsphp

/etc/init.d/lsws restart

/opt/lsws/fcgi-bin/lsphp -v
Enjoy!!

__________________
unixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration


Last edited by unixcares; 03-05-2008 at 02:27 AM.
  #11  
Old 03-08-2008, 05:37 PM
lamnk lamnk is offline
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 65
Uhm, i have following problem when configure PHP:
Code:
configure: error: The PCRE extension requires PCRE library version >= 6.6
Although i installed the newest PCRE 7.6 from source.

Any idea how to fix it ?

Thanks in advance.

__________________
Ngo Ky Lam

  #12  
Old 04-05-2008, 12:34 PM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,119
Why not just use the GUI to build PHP? It's easier than commandline.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Media Temple Rolls Out Parallels Plesk 12 to VPS Hosting Accounts Web Hosting News 2014-07-21 12:58:47
Parallels Simplifies WordPress Management and Security with Parallels Plesk 12 Web Hosting News 2014-06-26 16:50:35
IT Monitoring Solution Anturis Adds Parallels Plesk Integration Web Hosting News 2014-02-26 09:58:52
Web Hosting Sales and Promos Roundup – August 30, 2013 Web Hosting News 2014-05-23 15:42:50
Cirrus Tech Improves Plesk Integration, Expands OS Offerings with VPS Services Web Hosting News 2012-09-28 14:21:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?