Re: PHP4/Win98/Apache = Blank Screen

From: Date: Mon, 25 Jun 2001 00:10:17 +0000
Subject: Re: PHP4/Win98/Apache = Blank Screen
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-3328@lists.php.net to get a copy of this message
Julie, I'm afraid there are no hidden file extensions. The file extension is simply .php or .html if the php is contained within the HTML document. Neither work. Any other ideas? Thanks, Ed "Julie Meloni" <julie@thickbook.com> wrote in message news:3B363842.20703@thickbook.com... > look for a hidden file extension of txt on the end of your php script > filename. > > Ed Harris wrote: > > > I've seen this problem posted many times but with few responses. Assistance > > would be greatly appreciated. > > > > When I attempt to open the standard test PHP script containing in the Apache > > htdocs directory: > > <? php_info(); ?> > > I get a blank screen in the browser. A view source does reveal the code. PHP > > docs say this means the web server did not send the script to php for > > interpretation. So I have gone over all the needed settings in both the php > > docs and the Apache docs. All is as it should be. > > > > The Apache server tests as fully functional when doing a http://localhost in > > the browser. > > > > I will list what I have done and perhaps someone may see what I have missed: > > > > 1) Php is extracted into the C:\php directory. > > 1b) Apache is installed into the c:\apache directory. > > 2) "php.ini-dist" has been renamed "php.ini" and placed in the "c:\windows > > directory" per Win98 instructions. > > 3) The "php.ini" file was edited to change the 'extension_dir' setting to > > point to c:\php > > 4) The php.ini file was edited to set the 'doc_root' to point to > > "c:\apache\htdocs" (this is the installed location) > > CHANGES TO THE APACHE CONFIG FILE: > > ScriptAlias /php/ "c:/php/" > > AddType application/x-httpd-php .php > > Action application/x-httpd-php "/php/php.exe" > > 5) moved "php4ts.dll" to the windows/system directory (Win98) > > 6) Added to Apache config: LoadModule php4_module c:/php/sapi/php4apache.dll > > 7) Added to Apache config: AddType application/x-httpd-php .php > > > > Done. > > I REALLY WOULD APPRECIATE THE HELP OF AN EXPERIENCED INDIVIDUAL. I have done > > all that the documentation says to do, and beyond that I have no idea. > > > > Ed > > > > -- > +----------------------------------------+ > | Julie Meloni (julie@thickbook.com) | > | | > | "PHP Essentials" and "PHP Fast & Easy" | > | http://www.thickbook.com | > +----------------------------------------+ > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#3328) next »