Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178407 - mod_fcgid and apache 2.2 can't work together
Summary: mod_fcgid and apache 2.2 can't work together
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-13 18:41 UTC by Victor Roman Archidona
Modified: 2007-07-30 08:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Roman Archidona 2007-05-13 18:41:29 UTC
Hi,

in previous versions of apache (apache < 2.2), mod_fcgid works without problems in apache.

Now, Apache2 do not create a symlink in /usr/lib/apache2/logs pointing to /var/log/apache.

If you do not configure your apache.conf adding something like this:

<IfModule mod_fcgid.c>
  SocketPath <path to socket>
  SharememPath <path to shared memory file>
</IfModule>

it tries to use both /usr/lib/apache2/logs/fcgid_shm (for shared memory) and /usr/lib/apache2/logs/fcgidsock (for socket). As it does not exists (remember, the symlink\directory 'logs' does not exists in /usr/lib/apache2), apache does not start.

There are some solutions for this:

1. Patch mod_fcgid: 
-------------------
Lines 19 and 20 of mod_fcgid.c has the links hardcoded:
#define DEFAULT_SOCKET_PREFIX "logs/fcgidsock"
#define DEFAULT_SHM_PATH "logs/fcgid_shm"

Here is the place to put the "new" right paths for it.

2. Modify apache's ebuild
----------..--------------
Apache's ebuild makes a symlink from /usr/lib/apache2/logs to /var/log/apache

3. Modify /etc/apache/modules.d/20_mod_fcgid.conf
-------------------------------------------------
Adding something like this to that file:
  SocketPath /var/log/apache2/fcgidsock
  SharememPath /var/log/apache2/fcgid_shm
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-05-23 20:13:51 UTC
(In reply to comment #0)
> Adding something like this to that file:
>   SocketPath /var/log/apache2/fcgidsock
>   SharememPath /var/log/apache2/fcgid_shm

Victor, I rev-bumped mod_fcgid-2.1 and included the above Path's with it. Hope that fixes your issues w/ apache-2.2.4. (Feel free to reopen if it isn't fixed as usual.)
Comment 2 Victor Roman Archidona 2007-05-25 11:06:37 UTC
Hi,

works fine now Christian. Thanks for all.
Comment 3 Victor Roman Archidona 2007-07-30 07:18:02 UTC
This bug has been added again in www-apache/mod_fcgid-2.1-r2. The way to fix it is the same that the previous.

Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-30 08:56:57 UTC
fixed again, sorry for removing it. just remeger -r2