Re[2]: [PHP-WIN] php windows crashes with apache

From: Date: Tue, 10 Oct 2000 15:04:14 +0000
Subject: Re[2]: [PHP-WIN] php windows crashes with apache
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3108@lists.php.net to get a copy of this message
Holger: Your httpd.conf file should be like this: ScriptAlias /php4/ "c:/programme/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php4/php.exe" and you should not include the ExecCGI specification on the <Directory directive. Saludos, Pablo Vera _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Tuesday, October 10, 2000, 9:42:31 AM, Holger wrote: HB> Well it does even occur when using a plain html file without any php tags test.php: HB> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> HB> <HTML> HB> <HEAD> HB> <TITLE>Test PHP</TITLE> HB> </HEAD> HB> <BODY> HB> <H1>PHP HTML works</H1> HB> </BODY> HB> </HTML> HB> Maybe I did sth wrong with the configuration HB> I put the following lines in the apache httpd.conf: HB> <------------------ HB> AddType application/x-httpd-php .php HB> Action application/x-httpd-php c:/programme/php/php.exe ------------------>> HB> then I set the directory rights to the following: HB> <------------------ HB> # DocumentRoot left as default HB> DocumentRoot "C:/Programme/Apache Group/Apache/htdocs" HB> <Directory "C:/Programme/Apache Group/Apache/htdocs"> HB> Options Indexes FollowSymLinks MultiViews ExecCGI HB> AllowOverride None HB> Order allow,deny HB> Allow from all HB> </Directory> ------------------>> HB> I just added 'ExecCGI' HB> in the php.ini I added the following document root: HB> <------------------ HB> doc_root = "C:\Programme\Apache Group\Apache\htdocs" ------------------>> HB> now when trying to get the file test.php I get the following error: HB> <------------------ HB> Bad Request HB> Your browser sent a request that this server could not understand. HB> Invalid URI in request GET /test.php HTTP/1.1 ------------------>> HB> It seems that the file test.php is not found. HB> If I put test.php in the same dir as php.exe the error described first HB> occurs (the crash). HB> Running the file from the commandline HB> <------------------ HB> php.exe test.php ------------------>> HB> works fine.

« previous php.windows (#3108) next »