08-01-2012, 11:58 AM
Join Date: Oct 2010
|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
3. Open LiteSpeed Web admin console, under "server"→"General" tab, change configurations in "Using Apache Configuration File" table.
- 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)
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.
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)
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 by webizen; 08-01-2012 at 01:26 PM..
Reason: added summary steps.