How install and config

#1
Hello

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?

Regards
 

webizen

Well-Known Member
#2
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.
Load Apache Configuration => Yes
Auto Reload On Changes => Use Apache Binary Wrapper
Apache Configuration File => /usr/local/apache/conf/httpd.conf
Apache Port Offset => 2000 (Try LiteSpeed on port 2080 and 2443 first, change to 0 later, do NOT use 8088 or 8008)
Apache IP Offset => 0
PHP suEXEC => Yes (Run PHP in suEXEC mode)
PHP suEXEC Max Conn => 5 (The maximum PHP processor each account can have)
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:
chkconfig httpd off
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:
#3
Hello

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.

Warmly
 

webizen

Well-Known Member
#4
Hello

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.

Warmly
/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.

http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:migration
 
Last edited:
Top