Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/09/2007, 20:24
MrAndersonWEB
 
Fecha de Ingreso: enero-2005
Mensajes: 34
Antigüedad: 19 años, 3 meses
Puntos: 0
Busqueda Re: Php5 Cgi - Apache2

Hola amigos

Sigo aqui intentando configurar. Veo que en otro post http://www.forosdelweb.com/f18/probl...e-php5-521498/ tambien estan con problemas, y me parece extraño porque yo he configurado php +
apache muchas veces antes con la version 4 y no sufri tanto como ahora.

Mi archivo test.php, contiene un <?php phpinfo(); ?>

Cuando estas eran mis líneas

ScriptAlias /php/ "C:/PHP/"
Action application/x-httpd-php "C:/PHP/php-cgi.exe"

el error en el borwser era error 400 BAD REQUEST. Your browser sent a request that this server could not understand, y en el log decía Invalid URI in request GET /demo/test.php HTTP/1.1


Luego, me puse a leer el archivo install.txt y he verificado que tengo en el PATH a PHP, y de acuerdo al manual cambie lo siguiente

ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
#Action application/x-httpd-php "C:/PHP/php-cgi.exe"
SetEnv PHPRC "C:/PHP/"

Y en el browser me aparece Forbidden, You don't have permission to access /php/php-cgi.exe/demo/test.php on this server. En el log dice, client denied by server configuration: C:/PHP/php-cgi.exe

Por favor, si alguien me pudiera ayudar con alguna idea.

Mr. Anderson