Re: PHP4 won't display page

From: Date: Mon, 16 Apr 2001 03:56:44 +0000
Subject: Re: PHP4 won't display page
Groups: php.windows 
Request: Send a blank email to php-windows+get-6765@lists.php.net to get a copy of this message
Ok, first as mentioned on another email, change your AddType application/x-httpd-php .phtml .phps to: AddType application/x-httpd-php .phtml .php also, try putting your php scripts in your script alias, in your case c:\php4 and call them by using yourdomain/php4/scriptname hope this helps ~Jeff I have installed apache and PhP4 on a win 2000 machine. The apache server will start up saying that PHP is running. I have created a test page in the htdocs folder with the extention .php and saved as an ANSI endcoding. When I view the apache server everything looks good, but when I put the test page onto the URL all I see is the PHP code I wrote. Anyone have any suggestions on how to fix this? The httpd.conf file is correct. I have loaded this module LoadModule php4_module c:/php4/sapi/php4apache.dll, and have the correct addtypes in place. The php.ini file is in the WINNT folder, and the php4ts.dll is in the system32 folder. I have tried all the help docs and have tried all the books I could find. This all the editing I did to the httpd.conf file: LoadModule php4_module c:/php4/sapi/php4apache.dll ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" ScriptAlias /php4/ "C:/php4/" AddType application/x-httpd-php .phtml .phps AddType application/x-httpd-php-source .phps Action application/x-httpd-php /php4/php.exe Can anyone tell my why the page is not loading correctly?

« previous php.windows (#6765) next »