apache2.2-common: mod_cgid fills error.log with [error] lines

Asked by Paolo Dina

Hi, I'd be ready to submit a bug report for apache2.2-common (version 2.2.3-3.2build1) but I'd just like to be sure the problem really exists and doesn't depend on my specific configuration.

Well, I found that on my Ubuntu 7.04, Apache's error.log contains a lot (many per second) of error lines like:
[Thu Aug 09 19:08:45 2007] [error] cgid daemon process died, restarting
[Thu Aug 09 19:08:45 2007] [error] (2)No such file or directory: Couldn't bind unix domain socket /var/run/apache2/cgisock.544

Disabling mod_cgid (that was installed by default on my Feisty, can you confirm this?) and restarting Apache stops the file growth.
Digging into the problem I noticed that /etc/apache2/mods-enabled/cgid.conf contains this configuration:
# Socket for cgid communication
ScriptSock /var/run/apache2/cgisock

but, /var/run/apache2/ doesn't exist. Creating it or a change in cgid.conf specifying a valid directory has solved the problem.
To reproduce this behaviour it's enough to run Apache and look at the above cited lines in error.log.

Does it happen the same to others too?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Paolo Dina
Solved:
Last query:
Last reply:
Revision history for this message
Licheng Fang (sandorf) said :
#1

Hi, I got the same problem just now. Thanks for your post!
the problem's solved by creating the /var/run/apache2/ directory

Ubuntu 6.06LTS Apache/2.0.55

Revision history for this message
Paolo Dina (paolodina) said :
#2

I have filled a bug report (#131632) the proposed fix, thanks!