You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/05/12 01:25:41 UTC
DO NOT REPLY [Bug 19833] New: -
httpd fails without error when LockFile cannot be written to
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19833>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19833
httpd fails without error when LockFile cannot be written to
Summary: httpd fails without error when LockFile cannot be
written to
Product: Apache httpd-2.0
Version: 2.0.45
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: Normal
Priority: Other
Component: prefork
AssignedTo: bugs@httpd.apache.org
ReportedBy: eddy@bsd.sh
CC: eddy@bsd.sh
In trying to configure httpd-2.0.45 on FreeBSD 5.0-Release to spawn all
processes as an unprivelaged user, I came across the following behavior. When
you have set file permissions, binding port, and User in httpd.conf and then
execute httpd via apachectl thus 'su -m www -c "/usr/local/apache/bin/apachectl
start"' the command exits, no httpd instances are spawned, and no debugging
information is written to Error_Log. This occurs even with the error log
setting set to "debug". Upon investigation I found that the issue was the
default location of LockFile was not user writeable and easily corrected the
situation (go truss). However, some sort of logging should be enabled if
possible on that file and written to Error_Log or stderr as with all other
EPERM issues. Thanks.
www# su -m www -c "/usr/local/apache/bin/apachectl start"
www# ps auxwww|grep apache|grep -v grep
www# ls -al *error_log
-rw-r--r-- 1 www wheel 0 May 12 00:36 apt.antinode.net-error_log
www# su -m www
www# truss -f /usr/local/apache/bin/apachectl start
<snip>
58630: open("/usr/local/apache/logs/accept.lock.58630",0xa01,0600)
ERR#13 'Permission denied'
SIGNAL 11
SIGNAL 11
Process stopped because of: 16
process exit, rval = 11
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org