Results 1 to 12 of 12
  1. #1
    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

  2. #2
    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. #3
    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!

  4. #4
    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.conf
    unixcares@gmail.com
    Red Hat Certified Engineer
    --------------------------
    Genius is ninety-nine percent perspiration and one percent inspiration

  5. #5
    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. #6
    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 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!

  7. #7
    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

  8. #8
    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

  9. #9
    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.

  10. #10
    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
    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!!
    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

  11. #11
    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.

  12. #12
    Join Date
    Jan 2005
    Posts
    2,203
    Why not just use the GUI to build PHP? It's easier than commandline.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •