Results 1 to 12 of 12
-
02-29-2008, 01:14 AM #1Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- India
- Posts
- 47
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
-
02-29-2008, 09:28 AM #2Junior Guru Wannabe
- Join Date
- Jun 2006
- Location
- Cheshire, UK
- Posts
- 67
Cool.. Thanks!
Could you put the steps inCode:code tags
-
02-29-2008, 04:31 PM #3Aspiring Evangelist
- Join Date
- Nov 2003
- Posts
- 350
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 Acceleration Platform by https://www.litespeedtech.com
Apache drop-in replacement. Triple server capacity with 10X performance increases.
Ultimate web serving platform for WordPress, Magento and other web applications.
Turbo charging all WordPress sites hosted on your server with a single click!
-
02-29-2008, 05:44 PM #4Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- India
- Posts
- 47
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.confunixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration
-
02-29-2008, 06:00 PM #5Newbie
- Join Date
- Dec 2007
- Location
- MD, USA
- Posts
- 9
Nice tutorial, litespeed and ruby on rails is a great combination, especially better than apache.
-
02-29-2008, 06:17 PM #6Aspiring Evangelist
- Join Date
- Nov 2003
- Posts
- 350
LiteSpeed Web Acceleration Platform by https://www.litespeedtech.com
Apache drop-in replacement. Triple server capacity with 10X performance increases.
Ultimate web serving platform for WordPress, Magento and other web applications.
Turbo charging all WordPress sites hosted on your server with a single click!
-
03-01-2008, 12:28 AM #7Web Hosting Master
- Join Date
- Feb 2006
- Location
- New York, NY
- Posts
- 706
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
-
03-04-2008, 12:04 PM #8Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- India
- Posts
- 47
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
-
03-05-2008, 01:01 AM #9Junior 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.
-
03-05-2008, 02:24 AM #10Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- India
- Posts
- 47
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
Code:tar -zxf php-litespeed-4.0.tgz cd ../ touch ac* ./buildconf --force
Code:php -i |grep config
'--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
Last edited by unixcares; 03-05-2008 at 02:27 AM.
unixcares@gmail.com
Red Hat Certified Engineer
--------------------------
Genius is ninety-nine percent perspiration and one percent inspiration
-
03-08-2008, 05:37 PM #11Junior 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
Any idea how to fix it ?
Thanks in advance.
-
04-05-2008, 12:34 PM #12Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 2,203
Why not just use the GUI to build PHP? It's easier than commandline.