LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > How install and config

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2012, 03:49 AM
Metalik Metalik is offline
Member
 
Join Date: Aug 2012
Posts: 17
Default How install and config

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
Reply With Quote
  #2  
Old 08-01-2012, 10:58 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
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.
Quote:
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:
Quote:
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 by webizen; 08-01-2012 at 12:26 PM.. Reason: added summary steps.
Reply With Quote
  #3  
Old 08-04-2012, 03:52 AM
Metalik Metalik is offline
Member
 
Join Date: Aug 2012
Posts: 17
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
Reply With Quote
  #4  
Old 08-07-2012, 11:21 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by Metalik View Post
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...ache:migration

Last edited by webizen; 08-07-2012 at 11:33 AM.. Reason: added wiki link
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:57 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.