Deathangel
Registered User
Ich habe jetzt auch von Suse 10 auf Suse 9.3 gewechselt, werde wen ich gleich die HP´s usw wieder laufen habe mich mal drann setzen, und Poste Euch wie es funktioniert hat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
[DATUM] [warn] Cannot get media type from 'php5-cgi'
[DATUM] [warn] Cannot get media type from 'php5-cgi'
[DATUM] [warn] Cannot get media type from 'php5-cgi'
[DATUM] [error] [client IP] failed to open log file
[DATUM] [error] [client IP] fopen: No such file or directory
[DATUM] [error] [client IP] Premature end of script headers: php
[DATUM]: uid: (10001/user) gid: (10001/10001) cmd: php
[DATUM]: command not in docroot (/usr/bin/php5/php)
#ifndef AP_DOC_ROOT
#define AP_DOC_ROOT "/usr/bin/php5"
#endif
.#define AP_LOG_EXEC "/var/log/apache2/suexec.log" /* Need me? */
[DATUM]: uid: (10001/user) gid: (10001/10001) cmd: php
[DATUM]: target uid/gid (10001/10001) mismatch with directory (0/0) or program (0/0)
10001/10001 gehört./var/www/vhosts/domain.tld/httpdocs
/*
* Error out if the target name/group is different from
* the name/group of the cwd or the program.
*/
if ((uid != dir_info.st_uid) ||
(gid != dir_info.st_gid) ||
(uid != prg_info.st_uid) ||
(gid != prg_info.st_gid)) {
log_err("target uid/gid (%ld/%ld) mismatch "
"with directory (%ld/%ld) or program (%ld/%ld)\n",
uid, gid,
dir_info.st_uid, dir_info.st_gid,
prg_info.st_uid, prg_info.st_gid);
exit(120);
}
/*
* Error out if the program is not executable for the user.
/*
* Error out if the target name/group is different from
* the name/group of the cwd or the program.
*/
/* suexec ist doof und darf nicht wissen wem das File und der Ordner gehört
if ((uid != dir_info.st_uid) ||
(gid != dir_info.st_gid) ||
(uid != prg_info.st_uid) ||
(gid != prg_info.st_gid)) {
log_err("target uid/gid (%ld/%ld) mismatch "
"with directory (%ld/%ld) or program (%ld/%ld)\n",
uid, gid,
dir_info.st_uid, dir_info.st_gid,
prg_info.st_uid, prg_info.st_gid);
exit(120);
}
*/
/*
* Error out if the program is not executable for the user.
Deswegen zuerstmake suexec
ausführen!make clean
cp suexec /usr/sbin/suexec2
(Den restart des Apaches könnt ihr euch sparen, da suexec jedesmal neugestartet wird, wenn es aufgerufen wird.chmod 4755 /usr/sbin/suexec2
<Directory "/usr/bin/php5">
AllowOverride None
Options +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /php5-cgi /usr/bin/php5
Action application/php5-cgi /php5-cgi/php
AddType application/php5-cgi .php5
h913875:~/httpd-2.0.53 # cp suexec /usr/sbin/suexec2
cp: cannot stat `suexec': No such file or directory
h913875:~/httpd-2.0.53 #
h913875:~/httpd-2.0.53 #
waren, damit ich das Tutorial dahin gehend noch mehr verfeinern kann.anfänglichen Problemen
h913875:~/httpd-2.0.53/support # cp suexec /usr/sbin/suexec2
cp: cannot stat `suexec': No such file or directory
h913875:~/httpd-2.0.53/support #
ls -la ~/httpd-2.0.53/support/
h913875:~ # ls -la ~/httpd-2.0.53/support/
total 456
drwxr-xr-x 4 501 cdrom 4096 Aug 20 00:44 .
drwxr-xr-x 11 501 cdrom 4096 Aug 20 00:44 ..
-rw-r--r-- 1 root root 0 Aug 20 00:44 .deps
-rw-r--r-- 1 501 cdrom 701 Nov 24 2004 .indent.pro
-rw-r--r-- 1 root root 2248 Aug 20 00:44 Makefile
-rw-r--r-- 1 501 cdrom 2054 Nov 24 2004 Makefile.in
-rw-r--r-- 1 501 cdrom 4502 Nov 24 2004 NWGNUab
-rw-r--r-- 1 501 cdrom 4489 Nov 24 2004 NWGNUhtdbm
-rw-r--r-- 1 501 cdrom 4503 Nov 24 2004 NWGNUhtdigest
-rw-r--r-- 1 501 cdrom 4508 Nov 24 2004 NWGNUhtpasswd
-rw-r--r-- 1 501 cdrom 4511 Nov 24 2004 NWGNUlogres
-rw-r--r-- 1 501 cdrom 4195 Nov 24 2004 NWGNUmakefile
-rw-r--r-- 1 501 cdrom 4458 Nov 24 2004 NWGNUrotlogs
-rw-r--r-- 1 501 cdrom 1755 Nov 24 2004 README
drwxr-xr-x 2 501 cdrom 4096 Feb 7 2005 SHA1
-rw-r--r-- 1 501 cdrom 65646 Feb 4 2005 ab.c
-rw-r--r-- 1 501 cdrom 4093 Nov 24 2004 ab.dsp
-rw-r--r-- 1 501 cdrom 4957 Nov 24 2004 abs.dsp
-rw-r--r-- 1 root root 3126 Aug 20 00:44 apachectl
-rw-r--r-- 1 501 cdrom 3099 Feb 4 2005 apachectl.in
-rw-r--r-- 1 root root 22789 Aug 20 00:44 apxs
-rw-r--r-- 1 501 cdrom 22782 Feb 4 2005 apxs.in
-rwxr-xr-x 1 501 cdrom 466 Nov 24 2004 check_forensic
-rw-r--r-- 1 501 cdrom 2791 Feb 4 2005 checkgid.c
-rw-r--r-- 1 501 cdrom 3333 Nov 24 2004 config.m4
-rw-r--r-- 1 root root 8729 Aug 20 00:44 dbmmanage
-rw-r--r-- 1 501 cdrom 8725 Feb 4 2005 dbmmanage.in
-rw-r--r-- 1 root root 831 Aug 20 00:44 envvars-std
-rw-r--r-- 1 501 cdrom 839 Feb 4 2005 envvars-std.in
-rw-r--r-- 1 501 cdrom 17100 Feb 4 2005 htdbm.c
-rw-r--r-- 1 501 cdrom 4120 Nov 24 2004 htdbm.dsp
-rw-r--r-- 1 501 cdrom 7771 Feb 4 2005 htdigest.c
-rw-r--r-- 1 501 cdrom 4195 Nov 24 2004 htdigest.dsp
-rw-r--r-- 1 501 cdrom 18693 Feb 4 2005 htpasswd.c
-rw-r--r-- 1 501 cdrom 4195 Nov 24 2004 htpasswd.dsp
-rwxr-xr-x 1 501 cdrom 2888 Nov 24 2004 list_hooks.pl
-rw-r--r-- 1 root root 2447 Aug 20 00:44 log_server_status
-rw-r--r-- 1 501 cdrom 2443 Feb 4 2005 log_server_status.in
-rw-r--r-- 1 501 cdrom 10040 Feb 4 2005 logresolve.c
-rw-r--r-- 1 501 cdrom 4245 Nov 24 2004 logresolve.dsp
-rw-r--r-- 1 root root 6736 Aug 20 00:44 logresolve.pl
-rw-r--r-- 1 501 cdrom 6732 Feb 4 2005 logresolve.pl.in
-rw-r--r-- 1 root root 1419 Aug 20 00:44 phf_abuse_log.cgi
-rw-r--r-- 1 501 cdrom 1415 Feb 4 2005 phf_abuse_log.cgi.in
-rw-r--r-- 1 501 cdrom 8338 Feb 4 2005 rotatelogs.c
-rw-r--r-- 1 501 cdrom 4245 Nov 24 2004 rotatelogs.dsp
-rw-r--r-- 1 root root 2243 Aug 20 00:44 split-logfile
-rw-r--r-- 1 501 cdrom 2239 Feb 4 2005 split-logfile.in
-rw-r--r-- 1 501 cdrom 17429 Aug 20 00:51 suexec.c
-rw-r--r-- 1 501 cdrom 3563 Aug 20 00:49 suexec.h
-rw-r--r-- 1 501 cdrom 37 Nov 24 2004 utilitiesnw.def
drwxr-xr-x 2 501 cdrom 4096 Feb 7 2005 win32
h913875:~ #
make clean
make suexec
cp suexec /usr/sbin/suexec2
ScriptAlias /usr/bin/php5 /home/zum/vhost/html
Action application/php5-cgi /home/zum/vhost/html
AddType application/php5-cgi .php
ScriptAloas /home/zum/vhost/html /usr/bin/php5
Action application/php5-cgi /home/zum/vhost/html
AddType application/php5-cgi .php
<Directory "/usr/bin/php5">
AllowOverride None
Options +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAloas /home/zum/vhost/html /usr/bin/php5
Action application/php5-cgi /home/zum/vhost/html
AddType application/php5-cgi .php
Sprechen wir von Confixx?/home/zum/vhost/html
/home/zum/vhost/html finde ich hierbei am interessantesten...!?!ScriptAlias /usr/bin/php5 /home/zum/vhost/html
Action application/php5-cgi /home/zum/vhost/html
AddType application/php5-cgi .php
<Directory "/usr/bin/php5">
AllowOverride None
Options +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /php5rocks /usr/bin/php5
Action php5-cgi /php5rocks/php
AddType php5-cgi .php5
We use essential cookies to make this site work, and optional cookies to enhance your experience.