How install and config

Discussion in 'Install/Configuration' started by Metalik, Aug 1, 2012.

  1. Metalik

    Metalik Member


    We have a CentOS 5.8 64bit server and installed apache webserver (without any control panel or mysql database or ..., only a apache server)

    We would like to install LiteSpeed on it that uses current apache httpd config file.

    Please let us know how can we do it?

  2. webizen

    webizen Well-Known Member

    You just install LSWS Enterprise Edition with defaults, build matching PHP, import Apache httpd.conf into LSWS. Once test in LSWS is OK, turn off Apache and have LSWS take over HTTP/HTTPS traffic.

    Here are the detailed steps:
    1. Install LSWS Enterprise Edition with default settings.
    2. Build matching PHP in LSWS
    • Get a complete list of compile options of existing Apache PHP (type 'php -i' and look for 'Configure Command =>').
    • Compile PHP from LSWS admin console with Apache PHP compile options (note: make sure use the same --prefix)
    3. Open LiteSpeed Web admin console, under "server"→"General" tab, change configurations in "Using Apache Configuration File" table.
    Note: "PHP suEXEC Max Conn" can be adjusted based how many and how big the sites has been hosted. For a server dedicated for a large Wordpress or vBulletin site, you can safely increase it to "10", "15" or "20", try different value and see what is the best for you.

    4. Restart LSWS and try web sites hosted on port 2080 and secured sites on 2443. If all sites work properly, stop Apache, change "Apache Port Offset" to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.

    Note: Remember to change rc script configuration to remove httpd from the services that get started automatically during a reboot. For example, On CentOS, try this from a root shell:
    5. If you have a script that monitors for the web server process, remember to update it to reflect the location of LSWS.
    Last edited: Aug 1, 2012
  3. Metalik

    Metalik Member


    There are some problems:

    1. /usr/local/apache/conf/httpd.conf does not exists on my server.

    2. IP:2080 does not open. IP:8088 opens default LiteSpeed page.

    Please help me more.

  4. webizen

    webizen Well-Known Member

    /usr/local/apache/conf/httpd.conf is for WHM/cPanel platform. Different system/platform, default Apache location is different. For example, for CentOS, default Apache httpd.conf is located at /etc/httpd/conf/httpd.conf.

    IP:8088 is the default vhost comes with LSWS. If you see it, it means your LSWS install is successful.
    Last edited: Aug 7, 2012

Share This Page