Apache 2.4 failing to start as non-privileged user can't write to /var/lock & /var/run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have just upgraded from apache 2.2 to apache 2.4 - running apache2 as (me)
a non-privileged user... as part of a development server....

When I start apache I get the following errors (to screen)..

mkdir: cannot create directory '/var/run/apache2': Permission denied
chown: changing ownership of '/var/lock/apache2.SflOHVQnC2': Operation not permitted
mkdir: cannot create directory '/var/run/apache2': Permission denied
chown: changing ownership of '/var/lock/apache2.LDivziHYgr': Operation not permitted

and in the error logs...

[Wed Dec 17 15:30:56.576419 2014] [core:info] [pid 6729] AH00096: removed PID file /www/tmp/js5/www-dev/logs/apache2.pid (pid=6729) [Wed Dec 17 15:30:56.576451 2014] [mpm_prefork:notice] [pid 6729] AH00169: caught SIGTERM, shutting down [Wed Dec 17 15:31:00.990415 2014] [core:emerg] [pid 6790] (13)Permission denied: AH00023: Couldn't create the proxy mutex (file /var/lock/apache2/proxy.6790) [Wed Dec 17 15:31:00.990492 2014] [proxy:crit] [pid 6790] (13)Permission denied: AH02478: failed to create proxy mutex

I have configured:

PidFile               ${PAGESMITH_SERVER_LOGS}/apache2.pid
Mutex               file:${APACHE_LOCK_DIR} default

where these point to directories in /www/tmp/js5, additionally APACHE_RUN_DIR is set to
a path in /www/tmp/js5

so don't expect Apache to be trying to write to the /var/run and /var/lock directories, are there any other locations/configuration directives that I need to change to stop
the site writing these files...

James


--
The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux