httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens-U. Mozdzen" <jmozd...@nde.ag>
Subject Re: [users@httpd] Failure to start 2.4.4
Date Wed, 10 Apr 2013 12:17:24 GMT
Hi Steven,

Zitat von Redalert Commander <redalert.commander@gmail.com>:
> Hi Jens, thanks for having a look.
>
> 2013/4/10 Jens-U. Mozdzen <jmozdzen@nde.ag>:
>> Hi Steve,
>>
>> Zitat von Redalert Commander <redalert.commander@gmail.com>:
>>
> [...]
>>>
>>> # cat /var/log/httpd/error_log
>>> [Wed Apr 10 12:44:44.796571 2013] [suexec:notice] [pid 23907] AH01232:
>>> suEX= EC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Apr 10
>>> 12:44:44.819405 2013] [auth_digest:notice] [pid 23908] AH01757:=
>>> generating secret for digest authentication ...
>>> [Wed Apr 10 12:44:44.819655 2013] [auth_digest:error] [pid 23908]
>>> (13)Permi= ssion denied: AH01762: Failed to create shared memory
>>> segment on file /etc/=
>>> httpd/logs/authdigest_shm.23908
>>> [Wed Apr 10 12:44:44.819796 2013] [auth_digest:error] [pid 23908]
>>> (13)Permi= ssion denied: AH01760: failed to initialize shm - all
>>> nonce-count checking,=  one-time nonces, and MD5-sess algorithm
>>> disabled [Wed Apr 10 12:44:44.819807 2013] [:emerg] [pid 23908]
>>> AH00020: Configurati= on Failed, exiting
>>>
>>> In httpd.conf, both 'User apache' en 'Group apache' are specified.
>>
>>
>> I believe you have no or a wrong path set for the shared memory location...
>> it shouldn't point to "/etc/httpd/logs/authdigest_shm.23908", but more
>> probably to "/var/log/httpd/..." or even better to "/var/run/httpd/..." (or
>> similar)?
>
> /etc/httpd/logs is a symlink to /var/log/httpd.

ah, I should have thought of that.

In your original message you wrote that httpd is running as user (and  
group) "apache", and that /var/log/httpd is owned by root:root with  
700 permission.

Judging from that and the error message, httpd attempts to open the  
shm file as user "apache" (not "root") and thus fails. Is there any  
specific reason /var/log/httpd is not owned by your httpd user?

> Although /var/run/httpd does look like a better location for such a
> file, so where would I configure this?
> Is it a configure option when compiling or a directive in httpd.conf?
> I couldn't find a reference to it on a quick search.

Me neither - might be you'd have to look at the documentation written  
in that other language (I'm talking about the module's source code ;)  
) to see if it is configurable. The online man page at least lists *no  
hint at all* that you may influence the location. Sorry for putting  
you on that wrong track.

Regards,
Jens


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message