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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Keeping Apache really dead (not mostly dead)

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2013, 01:32 PM
theRKF theRKF is offline
Member
 
Join Date: Apr 2012
Posts: 31
Default [solved] Keeping Apache really dead (not mostly dead)

We have a recurring problem where Apache keeps getting set to start on boot. This leads to a conflict between httpd and lsws whenever the server is rebooted.

We've used chkconfig to set httpd to "off", and even gone so far as to chmod /etc/init.d/httpd to 000.

I think the problem is that cPanel's scripts keep reviving Apache during their auto-upgrades.

I know this isn't specifically a LiteSpeed issue, but since everyone here has opted for LiteSpeed over Apache it's probably that someone has had to deal with this before, right?

Last edited by NiteWave; 03-18-2013 at 06:56 PM..
Reply With Quote
  #2  
Old 03-18-2013, 10:47 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
You do not chkconfig httpd to 'off'. Instead, you still need it to be on.

What you should do is set below in LSWS Admin Console (Configuration => Server => General => Using Apache Configuration File)
Quote:
Load Apache Configuration: Yes
Auto Reload On Changes: Use Apache binary wrapper
Apache Binary Path: /usr/local/apache/bin/httpd
Reply With Quote
  #3  
Old 03-18-2013, 11:39 AM
theRKF theRKF is offline
Member
 
Join Date: Apr 2012
Posts: 31
Ok, thank you. I still had Auto Reload set to the deprecated (yes) option that was set when the LiteSpeed team first installed LSWS. Never changed it.

I've changed to your suggested settings and restarted LSWS.

The problem I'm trying to combat is that when the server starts up Apache starts serving sites instead of LiteSpeed, so I have to killall Apache and restart LSWS to get sites functioning properly.

Is there another setting I'm missing?
Reply With Quote
  #4  
Old 03-18-2013, 12:24 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Upon you changed to the suggested settings, a wrapper script should be created and replace apache binary. you can run following command to check. It should show it a script text instead of ELF executable. The actual Apache binary should be renamed to /usr/local/apache/bin/httpd_ls_bak.
Quote:
# file /usr/local/apache/bin/httpd
/usr/local/apache/bin/httpd: POSIX shell script text executable

# file /usr/local/apache/bin/httpd_ls_bak
/usr/local/apache/bin/httpd_ls_bak: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
Use WHM plugin gui to switch to LSWS and then you should be ok ('service httpd restart' will bring up lsws instead of apache).
Reply With Quote
  #5  
Old 03-18-2013, 01:45 PM
theRKF theRKF is offline
Member
 
Join Date: Apr 2012
Posts: 31
Confirmed, file is reporting exactly as you said (thanks!!).

WHM plugin appears to be correct: http://strider.clarify-it.com/d/eykcjy
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 09:37 AM.



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