Apache-Win-PHP 500 Internal Error but page served

From: Date: Thu, 01 May 2003 23:06:17 +0000
Subject: Apache-Win-PHP 500 Internal Error but page served
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19745@lists.php.net to get a copy of this message
It will not gripe about a ; unless you go into another function/command. This is fine: ## BEGIN HTML/PHP ## <? echo "Hello" ?> ## END HTML/PHP ## That is OK if that is all that you have on your site, period. If you have other PHP or html, then you will need to end the line with a ';'. Regards, Nick H. nickh@supportteam.net PGP Fingerprint: D507 15FA E277 FD61 4210 69C0 BDE3 793C 2A1E 3D6F ----- Original Message ----- From: "Kit DeKat" <kitdekat@earthlink.net> To: <php-windows@lists.php.net> Sent: Thursday, May 01, 2003 3:03 PM Subject: Re: [PHP-WIN] Apache-Win-PHP 500 Internal Error but page served > do you have PHP running as a service or CGI executable. > i had to tell Apache how to handle PHP files for parsing. > i think something similar is needed for CGI install also. > > # Add PHP4 support to Apache2.0.4x > # > LoadModule php4_module D:/var/php/sapi/php4apache2.dll > AddType application/x-httpd-php .php .php3 .phtml > AddType application/x-httpd-php-source .phps > > b/c it looks like the PHP parser is running, > only Apache complains about what it did. > > At 11:13 AM 5/1/2003 +0100, you wrote: > > >A requests made via telnet to localhost port 80 using > >GET /t.htm HTTP/1.0 > >GET /t.php HTTP/1.0 > > > >typical response headers for .htm file > >--start---------------------- > >HTTP/1.1 200 OK > >Date: Thu, 01 May 2003 09:59:52 GMT > >Server: Apache/1.3.24 (Win32) > >Last-Modified: Thu, 01 May 2003 09:59:34 GMT > >ETag: "0-48-3eb0f006" > >Accept-Ranges: bytes > >Content-Length: 72 > >Connection: close > >Content-Type: text/html > > > ><?php echo "Hello" ?> > >--finish-------------------- > > > >typical response headers for .php file > >--start---------------------- > >HTTP/1.1 500 Internal Server Error > >Date: Thu, 01 May 2003 10:01:23 GMT > >Server: Apache/1.3.24 (Win32) > >X-Powered-By: PHP/4.2.3 > >Connection: close > >Content-Type: text/html; charset= > > > >Hello > >--finish-------------------- > > Best regards, > Kit DeKat > mailto:kitdekat@earthlink.net > Systems Programmer > > -----BEGIN PERL GEEK CODE BLOCK----- > Version: 0.01 > P++>+++@$c---P6-R >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$ > D++S++>+++@X>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m! > ------END PERL GEEK CODE BLOCK------ > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#19745) next »