-rwxr-xr-x 1 root root 5583568 2007-11-12 19:01 /usr/bin/php5-cgi
Das sieht soweit ok aus. Dann poste mal:
ls -la /var/www/web10/web/index.php
-rwxrwxr-x 1 web10_1 web10 8491 2007-03-30 16:05 /var/www/web10/web/index.php
x und schau bitte in das error.log der Webseite, welcher Fehler dort geloggt wird. Stelle bitte auch sicher, dass das Wrapperscript ausführbar ist.
[Wed Dec 12 10:36:24 2007] [info] removed PID file /var/run/apache2.pid (pid=23532)
[Wed Dec 12 10:36:24 2007] [notice] caught SIGTERM, shutting down
[Wed Dec 12 10:36:26 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Dec 12 10:36:26 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Dec 12 10:36:26 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Dec 12 10:36:26 2007] [info] Init: Initializing (virtual) servers for SSL
[Wed Dec 12 10:36:26 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8c
[Wed Dec 12 10:36:26 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Dec 12 10:36:26 2007] [info] mod_unique_id: using ip addr 81.95.0.138
[Wed Dec 12 10:36:27 2007] [notice] ModSecurity for Apache 2.1.1 configured
[Wed Dec 12 10:36:27 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Dec 12 10:36:27 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Dec 12 10:36:27 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Dec 12 10:36:27 2007] [info] Init: Initializing (virtual) servers for SSL
[Wed Dec 12 10:36:27 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8c
[Wed Dec 12 10:36:27 2007] [info] mod_unique_id: using ip addr 81.95.0.138
[Wed Dec 12 10:36:28 2007] [notice] Apache configured -- resuming normal operations
[Wed Dec 12 10:36:28 2007] [info] Server built: Jun 17 2007 20:24:06
[Wed Dec 12 10:36:40 2007] [error] [client 58.65.237.153] File does not exist: /var/www/sharedip/index, referer: XXXXX
[Wed Dec 12 10:37:06 2007] [info] removed PID file /var/run/apache2.pid (pid=16660)
[Wed Dec 12 10:37:06 2007] [notice] caught SIGTERM, shutting down
[Wed Dec 12 10:37:08 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Dec 12 10:37:08 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Dec 12 10:37:09 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Dec 12 10:37:09 2007] [info] Init: Initializing (virtual) servers for SSL
[Wed Dec 12 10:37:09 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8c
[Wed Dec 12 10:37:09 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Dec 12 10:37:09 2007] [info] mod_unique_id: using ip addr 81.95.0.138
[Wed Dec 12 10:37:10 2007] [notice] ModSecurity for Apache 2.1.1 configured
[Wed Dec 12 10:37:10 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Dec 12 10:37:10 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Dec 12 10:37:10 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Dec 12 10:37:10 2007] [info] Init: Initializing (virtual) servers for SSL
[Wed Dec 12 10:37:10 2007] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8c
[Wed Dec 12 10:37:10 2007] [info] mod_unique_id: using ip addr 81.95.0.138
[Wed Dec 12 10:37:11 2007] [notice] Apache configured -- resuming normal operations
[Wed Dec 12 10:37:11 2007] [info] Server built: Jun 17 2007 20:24:06
Das Wrapperscript muss ja durch suphp gestartet werden, dazu benötig es ausführungs Berechtigungen.
#!/bin/sh
BASEDIR=`/usr/bin/dirname ${DOCUMENT_ROOT}`
TMPDIR=${BASEDIR}/phptmp
SESSDIR=${TMPDIR}
if [ X"${php_safe_mode}" != X"On" ]; then
SAFE_MODE="Off"
else
SAFE_MODE="On"
fi
exec /usr/bin/php5-cgi -d open_basedir=${BASEDIR} -d upload_tmp_dir=${TMPDIR} -d session.save_path=${SESSDIR} -d safe_mode=${SAFE_MODE}
SetEnv php_safe_mode On
if($go_info["server"]["apache2_php"] == 'suphp'){
$php .= "suPHP_Engine on\n";
$php .= "suPHP_UserGroup ".$webadmin." web".$web["doc_id"]."\n";
$php .= "AddHandler x-httpd-php .php .php3 .php4 .php5\n";
$php .= "suPHP_AddHandler x-httpd-php\n";
if ($web["web_php_safe_mode"]) {
$php .= "SetEnv php_safe_mode On\n";
} else {
$php .= "SetEnv php_safe_mode Off\n";
}
}
if [ X"${use_pear}" == X"On" ]; then
BASEDIR=${BASEDIR}:/usr/share/php
fi
#!/bin/sh
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec"
BASEDIR=`dirname ${DOCUMENT_ROOT}`
TMPDIR=${BASEDIR}/phptmp
SESSDIR=${TMPDIR}
if [ X"${php_safe_mode}" != X"On" ]; then
SAFE_MODE="Off"
else
SAFE_MODE="On"
fi
if [ X"${use_pear}" == X"On" ]; then
BASEDIR=${BASEDIR}:/usr/share/php
fi
exec php-cgi -d open_basedir=${BASEDIR} -d upload_tmp_dir=${TMPDIR} -d session.save_path=${SESSDIR} -d safe_mode=${SAFE_MODE}
#!/bin/sh
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec"
BASEDIR=`dirname ${DOCUMENT_ROOT}`
TMPDIR=${BASEDIR}/phptmp
SESSDIR=${TMPDIR}
if [ X"${php_safe_mode}" != X"On" ]; then
SAFE_MODE="Off"
else
SAFE_MODE="On"
fi
BASEDIR=${BASEDIR}":/var/www/typo3"
exec php-cgi -d open_basedir=${BASEDIR} -d upload_tmp_dir=${TMPDIR} -d session.save_path=${SESSDIR} -d safe_mode=${SAFE_MODE}
habt Ihr vielleicht eine Ahnung, wo ich den Fehler habe?
Was mir in diesem Zusammenhang noch aufgefallen ist... php-Skripte aus dem web-root klappen, aber bei php-Skripten aus dem web eines Benutzers (www.domain.tld/~webnutzer) bieten die Browser nur zum Download an
Wir verwenden essentielle Cookies, damit diese Website funktioniert, und optionale Cookies, um den Komfort bei der Nutzung zu verbessern.
Siehe weitere Informationen und konfiguriere deine Einstellungen