[Bug 1251939] [NEW] Chroot fails with "Cannot chroot when not started as root" error
Arul
1251939 at bugs.launchpad.net
Sun Nov 17 01:20:33 UTC 2013
Public bug reported:
I have set my chroot directory as shown below.
ChrootDir /var/www
When started with the above chroot setting, apache2 exits with the
following error
[Sat Nov 16 13:52:40.621872 2013] [unixd:alert] [pid 3747] (34)Numerical
result out of range: AH02158: Cannot chroot when not started as root
NOTE: apache2 is started as 'root' user. This was reported as a bug in apache.org earlier (link below) where it was confirmed this is fixed in a trunk.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55787
Details of my Ubuntu server:
-------------------------------------------------
root at gorilla:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.10
DISTRIB_CODENAME=saucy
DISTRIB_DESCRIPTION="Ubuntu 13.10"
root at gorilla:~# apache2ctl -v
Server version: Apache/2.4.6 (Ubuntu)
Server built: Aug 9 2013 14:31:04
root at gorilla:~# apache2ctl -l -M
Compiled in modules:
core.c
mod_so.c
mod_watchdog.c
http_core.c
mod_log_config.c
mod_logio.c
mod_version.c
mod_unixd.c
mod_unixd.c
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
** Tags: apache2
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in Ubuntu.
https://bugs.launchpad.net/bugs/1251939
Title:
Chroot fails with "Cannot chroot when not started as root" error
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/+subscriptions
More information about the Ubuntu-server-bugs
mailing list