I just updated apache2 on a debian system to version 2.2.9. Before the update I was using mod_fcgid for all the websites on the box. After the update and after I rebooted the server, apache would no longer start. The error is..
[Mon Nov 09 07:46:48 2009] [emerg] (22)Invalid argument: mod_fcgid: Can't create share memory for size %zu byte
[Mon Nov 09 07:47:27 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Nov 09 07:47:27 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Nov 09 07:47:27 2009] [notice] Digest: done
Funny thing is I have another box with a very similar setup though on different hardware. That upgrade went great. One of the differences being that the broken server as an SSL cert installed.
Currently I've disabled mod_fcgid and set all websites to use CGI instead.
Here is Apache2 -V
Server version: Apache/2.2.9 (Debian)
Server built: Jul 14 2009 20:03:28
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-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=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
Comments
Submitted by JamieCameron on Mon, 11/09/2009 - 12:54 Comment #1
Is your system perhaps low on RAM? How much does it have, and how much is free?
Submitted by gte451f on Wed, 11/11/2009 - 09:41 Comment #2
Memory is 2 GB total with 381 MB used.
Submitted by gte451f on Wed, 11/11/2009 - 10:20 Comment #3
I also tried a couple of google fixes with no joy... http://www.mail-archive.com/mod-fcgid-users@lists.sourceforge.net/msg000...
I've had very little luck searching the Apache website to find a match.
Submitted by JamieCameron on Wed, 11/11/2009 - 12:24 Comment #4
So did you add
SharememPath /var/run/fcgid_shm
to /etc/apache2/apache2.conf as suggested on that page?Submitted by gte451f on Thu, 11/12/2009 - 13:58 Comment #5
So did you add SharememPath /var/run/fcgid_shm to /etc/apache2/apache2.conf as suggested on that page?
Yes, I also tried...
SharememPath /var/lib/apache2/fcgid/shm
...with no joy
I'm at a loss, there is very little on google beyond modifying SharememPath. Perhaps I can just revert back to a prior version of Apache et al?
Submitted by JamieCameron on Thu, 11/12/2009 - 15:02 Comment #6
Also, make sure that the directory /var/lib/apache2/fcgid exists and is world-writable..
Submitted by gte451f on Mon, 11/16/2009 - 10:18 Comment #7
Still no luck.
Perhaps I can remove the package and reinstall?
Does Virtualmin provide a way to roll back a package?
Submitted by JamieCameron on Mon, 11/16/2009 - 14:02 Comment #8
You can do a rollback from the command line, with a command like :
apt-get install package=version
Do you know what packages were installed, and what the old versions were?