Apache2 fails to start with libapache2-mod-fcgid: No such file or directory: mod_fcgid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache2-mod-fcgid (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When I upgraded to saucy, Apache2 failed to start with the full error in /var/log/
[Sun Jan 05 07:32:52.418401 2014] [fcgid:emerg] [pid 15690:tid 3074378304] (2)No such file or directory: mod_fcgid: Can't create shared memory for size 1167812 bytes
This appears to be because the configuration directive for SharememPath used by mod_fcgid is not set correctly in the configuration files. That variable needs to be set to a directory that is created and empty. Such a directory seems to exist: /var/lib/
I was able to add this to my Apache configuration to solve the issue:
<IfModule mod_fcgid.c>
SharememPath /var/lib/
</IfModule>
This SharememPath setting should be made by default in /etc/apache2/
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: libapache2-
ProcVersionSign
Uname: Linux 3.11.0-14-generic i686
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: i386
Date: Mon Jan 6 04:14:00 2014
Dependencies:
gcc-4.8-base 4.8.1-10ubuntu9
libc6 2.17-93ubuntu4
libgcc1 1:4.8.1-10ubuntu9
multiarch-support 2.17-93ubuntu4
InstallationDate: Installed on 2011-06-16 (935 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MarkForUpload: True
SourcePackage: libapache2-
UpgradeStatus: Upgraded to saucy on 2014-01-02 (3 days ago)
SharememPath (aka FcgidProcessTab leFile) defaults to /var/lib/ apache2/ fcgid/shm. apache2/ fcgid exist on your system and is owned by www-data?
Does /var/lib/