php.de

Zurück   php.de > Webentwicklung > Server, Hosting und Workstations

Server, Hosting und Workstations Server-Konfigurationsdateien (.htaccess/httpd.conf) und Arbeiten auf Serverebene

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 17.08.2005, 18:36  
Erfahrener Benutzer
 
Registriert seit: 20.07.2004
Beiträge: 322
test022
test022 eine Nachricht über ICQ schicken
Standard php4 und php5 gleichzeitig

Hallo Forum,

wollte auf meinem Webserver php4 und php5 gleichzeitig nutzen.

Zum Webserver: Suse 9.0, apache2, php4 (4.3.3) als Modul installiert, php5 habe ich als CGI wie folgt installiert:
./configure --enable-memory-limit --enable-force-cgi-redirect \
--enable-track-vars --with-pcre-regex --with-mysql --without-sqlite \
--without-mm --enable-fastcgi --prefix=/usr/local/PHP5

Make

Make install


In httpd.conf habe ich folgendes zugefügt:

#php5 TEST
ScriptAlias /php/ "usr/local/PHP5/"
Action application/x-httpd-php5 "/php/php-cgi.exe"

AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php5 .php5

Action application/x-httpd-php "/php/php-5.0.4"
Action application/x-httpd-php4 "/php4/php-4.3.3"

#PHP5 TEST ENDE

Also so weit so gut, aber
Wenn ich info.php ausführe (<?php phpinfo(); ?> funktioniert alles. Infos werden angezeigt (php Version 4.3.3)

Und wenn ich versuche info.php5 auszuführen, passiert folgendes:
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403

Kann mir jemand helfen?

Was muss noch gemacht werden?
Vielen Dank im Voraus
test022 ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 17.08.2005, 18:48  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.039
Sclot befindet sich auf einem aufstrebenden Ast
Standard

funktioniert es denn wenn du die php mit dem cgi direkt aufrufst?
Sclot ist offline   Mit Zitat antworten
Alt 17.08.2005, 18:58  
Erfahrener Benutzer
 
Registriert seit: 20.07.2004
Beiträge: 322
test022
test022 eine Nachricht über ICQ schicken
Standard

meinst du im cgi-bin ordner?

also wenn ich von dort aus script ausfüher, kommt folgende:
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: info.php5

If you think this is a server error, please contact the webmaster.
Error 500
test022 ist offline   Mit Zitat antworten
Alt 18.08.2005, 00:02  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.039
Sclot befindet sich auf einem aufstrebenden Ast
Standard

nein ich mein nicht im cgi-bin ordner

nur zur info.. scripte im cgi-bin ordner funktionieren nur mit chmod 755, nicht 777

ich mein wenn in der ersten zeile von deinem script steht: #!/pfad/zum/php
Sclot ist offline   Mit Zitat antworten
Alt 18.08.2005, 00:13  
Erfahrener Benutzer
 
Registriert seit: 20.07.2004
Beiträge: 322
test022
test022 eine Nachricht über ICQ schicken
Standard

kommt folgendes:

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: info.php5

If you think this is a server error, please contact the webmaster.
Error 500
test022 ist offline   Mit Zitat antworten
Alt 18.08.2005, 01:19  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.039
Sclot befindet sich auf einem aufstrebenden Ast
Standard

mit chmod 755? sicher?

was steht dazu im error log vom apachen drin?
Sclot ist offline   Mit Zitat antworten
Alt 18.08.2005, 01:23  
Erfahrener Benutzer
 
Registriert seit: 20.07.2004
Beiträge: 322
test022
test022 eine Nachricht über ICQ schicken
Standard

tut mir leid für die dumme frage wo finde ich so einen error log?

oder meinst du dieses:
/srv/www/htdocs/web21/log/access_log

wenn ja, dann steht folgendes:
83.135.153.51 - - [18/Aug/2005:01:25:28 +0200] "GET /cgi-bin/info.php5 HTTP/1.1" 200 1076 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de) Opera 8.0"
83.135.153.51 - - [18/Aug/2005:01:25:28 +0200] "GET /favicon.ico HTTP/1.1" 404 1209 "http://meineurl.tld/cgi-bin/info.php5" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de) Opera 8.0"
test022 ist offline   Mit Zitat antworten
Alt 18.08.2005, 01:30  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.039
Sclot befindet sich auf einem aufstrebenden Ast
Standard

find / -name error
Sclot ist offline   Mit Zitat antworten
Alt 18.08.2005, 01:46  
Erfahrener Benutzer
 
Registriert seit: 20.07.2004
Beiträge: 322
test022
test022 eine Nachricht über ICQ schicken
Standard

gabs nur 3 Treffer:
1. /var/spool/postfix/private/error
2. /usr/lib/postfix/error
3. /usr/share/apache2/error (hier sind 20 Dateien, und 1 Ordner)

welche genau meinst du?
test022 ist offline   Mit Zitat antworten
Alt 18.08.2005, 02:05  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.039
Sclot befindet sich auf einem aufstrebenden Ast
Standard

/usr/share/apache2/error

^^ da.. error_log oder error-log ?
Sclot ist offline   Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
von php4 zu php5 nixdorf Server, Hosting und Workstations 1 15.08.2007 16:57
php5 braucht 4 mal so lange wie php4? CC84 PHP Tipps 2006 4 12.04.2006 09:55
php5 -> modul, php4 -> cgi flooooo Server, Hosting und Workstations 4 03.03.2006 19:34
Php4 vs php5 PHP-Fortgeschrittene 10 27.10.2005 00:38
php4 auf php5 Server, Hosting und Workstations 2 20.10.2005 22:26
PHP4 vs PHP5 PHP-Fortgeschrittene 16 06.10.2005 11:58
OOP -> PHP4 oder PHP5? WarrenFaith PHP Tipps 2005-2 4 09.08.2005 03:29
php4 und php5 auf einem indianer Server, Hosting und Workstations 2 22.05.2005 18:06
PHP4 / PHP5 || Xdebug + Debug-Client PHP Tipps 2005 2 09.05.2005 18:39
PHP4 und PHP5 parallel als Apache2-Modul PHP-Fortgeschrittene 9 04.02.2005 13:33
[Erledigt] Unterschiedliche Ergebnisse: PHP4 / PHP5 PHP-Fortgeschrittene 2 03.01.2005 00:45
php4: kopiert objekte --- php5: korrektes handling [solved] PHP-Fortgeschrittene 10 27.12.2004 14:11
PHP4 in PHP5 umwandeln PHP-Fortgeschrittene 1 20.12.2004 16:22
[Erledigt] Unterschied zw. PHP4 und PHP5 PHP Tipps 2004 5 23.08.2004 08:42
PHP4 und 5 gleichzeitig? (Linux) PHP-Fortgeschrittene 3 08.08.2004 23:12

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php5 test, php4 und php5 gleichzeitig, php4 php5 parallel, php cgi without alias, php5 und php4 gleichzeitig, \premature end of script headers: php-cgi\, fastcgi you don\'t have permission to access php4 php5, php handle php3 php5 htaccess, http://www.php.de/server-hosting-und-workstations/29345-php4-und-php5-gleichzeitig.html, php 5 paralllel cgi, suse php4 php5 parallel, wie kann man php3 in php5 umwandeln, you don\'t have permission to access the requested object. it is either read-protected or not readable by the server., php4-cgi download, php4 php5 gleichzeitig 1 1, addhandler fcgid-script .php you don\'t have permission to access, php 5 testen, was muß ich umwandeln bei php4 zu php5, php4 und php5 eigene testumgebung, seite mit php 5 testen lokal

Alle Zeitangaben in WEZ +1. Es ist jetzt 20:49 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.