php4 und php5

Alles, was den Apache betrifft, kann hier besprochen werden.

php4 und php5

Postby test022 » 17. August 2005 17:38

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
 
Posts: 11
Joined: 17. August 2005 12:06

Postby bgleie » 24. August 2005 08:58

Hallo

ich habe das bei mir, wie folgt gelöst:

httpd.conf:
...
ScriptAlias /php5app/ "/usr/local/php5/bin/"
<Directory "/var/www/html/php5/">
AddHandler php5-script .php
Action php5-script /php5app/php
</Directory>
...

Gruß
Bruno
bgleie
 
Posts: 10
Joined: 23. August 2005 12:51


Return to Apache

Who is online

Users browsing this forum: No registered users and 248 guests