1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Scott Mutter
  2. Thursday, 24 March 2016
  3.  Subscribe via email
mod_lsapi-0.3-30 breaks Apache graceful restarts
Rate this post:
  1. 24.03.2016 18:03:52
  2. # 1
Scott Mutter Accepted Answer
Posts: 56
Joined: 23.04.2014
0
Votes
Undo
Using mod_lsapi-0.3-30 seems to break Apache when doing a graceful restart.  I have installed mod_lsapi-0.3-30 on a few servers, but any attempts to do a graceful restart brings Apache down.

To duplicate this, install mod_lsapi-0.3-30, and then issue a graceful restart:

/usr/local/apache/bin/apachectl -k graceful

Apache will go down and has to be restarted.

I have rolled all of these servers back to mod_lsapi-0.3-29 which doesn't present the same problem.
  1. 25.03.2016 03:03:15
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
I have just tried the same on a test server and it works properly after graceful restart. Was there any errors on screen or in /usr/local/apache/logs/error_log ?

Let me know.
  1. 25.03.2016 06:03:12
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
We are really interested to have this issue sorted out. Please create a support ticket at https://helpdesk.cloudlinux.com and ask to assign it directly to me.
  1. 25.03.2016 07:03:15
  2. # 4
Tapan Bhanot Accepted Answer
Posts: 10
Joined: 10.03.2014
0
Votes
Undo
Hi,

I don\'t know how it works ? I ran the install commands and it disabled mod_ruid2 etc. What PHP handler you use ?? If i change to fcgi then websites stop loading up and give error. If I change to DSO then websites load up but CSF firewall keeps on saying that I should be using suphp etc. So after trying a lot, I un-installed it.


Thanks.
  1. 25.03.2016 08:03:14
  2. # 5
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Tried following:

# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: fcgi
SUEXEC: enabled
RUID2: not installed



# httpd -V
Server version: Apache/2.4.16 (Unix)
Server built:   Nov 29 2015 14:12:10
Cpanel::Easy::Apache v3.32.5 rev9999 +cloudlinux
Server's Module Magic Number: 20120211:47
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

You should always use suphp or fcgid for PHP. With DSO module users are not placed in cagefs and you can not use selector.

Most probably after switch you have to run 'cagefsctl --force-update' to put binaries into cagefs inside.
  1. 28.03.2016 15:03:00
  2. # 6
Scott Mutter Accepted Answer
Posts: 56
Joined: 23.04.2014
0
Votes
Undo
Sorry, I was out for most of the weekend.

I do see where you just release mod_lsapi-0.3-31 and that appears to have fixed the issue on a test server.  I'll leave it there for a little while before rolling this out to other servers.

On a somewhat related note, any plans to push mod_lsapi out to the production CloudLinux repositories?  That would seem to alleviate some of these issues, having a safe and secure version in the production repo and testing versions in the testing repo.
  1. 30.03.2016 11:03:12
  2. # 7
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
We are really planning to move mod_lsapi to production, there are no exact ETA on this however definitely it will be done soon.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.