[php-maint] Bug#341700: Options ExecCGI is off in this directory
Rainer Zocholl
UseNet-Posting-Nospam-74308- at zocki.toppoint.de
Thu Dec 1 21:39:00 UTC 2005
Package: php4
Version: 4:4.3.10-16
or
Package: tutos
Version: 1.1.20031017-2
Package: apache
Version: 1.3.33-6sarge1
Hello
Installed "tutos" package without any problem, but when ever i try to
open the URL i get:
Forbidden
You don't have permission to access /tutos/php/mytutos.php on this server.
Apache/1.3.33 Server at ... Port 80
In apache.log i can read:
# [Thu Dec 1 14:17:45] [error] [..] Options ExecCGI is off in this directory:
/usr/share/tutos/php/mytutos.php
# /etc/init.d/apache restart
Restarting apache.
[05] [notice] SIGHUP received. Attempting to restart
[05] [warn] module mod_php4.c is already added, skipping
[05] [warn] module mod_encoding.c is already added, skipping
[05] [warn] module mod_headers.c is already added, skipping
[05] [warn] module mod_dav.c is already added, skipping
[05] [warn] module mod_auth.c is already added, skipping
[06] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[06] [notice] Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 mod_auth_pam/1.1.1 DAV/1.0.3 configured -- resuming normal operations
[06] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[06] [notice] Accept mutex: sysvsem (Default: sysvsem)
I tried to disable suexec by renaming or chmod: it does not matter
the message is still generated.
# ll /usr/lib/apache/suexec
lrwxrwxrwx 1 root root 15 Dec 1 11:57 /usr/lib/apache/suexec ->
suexec.disabled
# /usr/lib/apache/suexec -V
-D DOC_ROOT="/var/www"
-D GID_MIN=100
-D HTTPD_USER="www-data"
-D LOG_EXEC="/var/log/apache/suexec.log"
-D SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D UID_MIN=100
-D USERDIR_SUFFIX="public_html"
# chmod 00 /usr/lib/apache/suexec
# ll /usr/lib/apache/suexec*
---------- 1 root root 13304 Sep 6 15:13 /usr/lib/apache/suexec
-rwsr-xr-x 1 root root 13304 Sep 6 15:13 /usr/lib/apache/suexec.disabled
# ll /usr/lib/apache/suexec*
---------- 1 root root 13304 Sep 6 15:13 /usr/lib/apache/suexec
-rwsr-xr-x 1 root root 13304 Sep 6 15:13 /usr/lib/apache/suexec.disabled.x
apache still happily say:
suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
Rainer
More information about the pkg-php-maint
mailing list