RE: [PHP-INSTALL] Re: PHP w/Apache on WinXP

From: Date: Tue, 30 Sep 2003 20:16:57 +0000
Subject: RE: [PHP-INSTALL] Re: PHP w/Apache on WinXP
Groups: php.install 
Request: Send a blank email to php-install+get-11980@lists.php.net to get a copy of this message
becarefull if you are using notepad to creat you .php file. I ran into this problem before and I use notepad in the window environment. What notepad did was append a .txt to your file name even if you named .php. Under window explore, it don't show the extension. save it as asci and double quote your file.php name. -----Original Message----- From: Jim [mailto:webmaster@doylepark.com] Sent: Monday, September 29, 2003 10:25 To: php-install@lists.php.net Subject: [PHP-INSTALL] Re: PHP w/Apache on WinXP I too am having much the same problem. I followed the installation instructions carefully. I installed Apache on WinXP system to the directory c:\apache. Documents are in c:\apache\htdocs. the php.ini is in both c:\windows and c:\apache (just in case). Apache is running as a service and it is running (plus I've tried stopping and starting and restarting). In c:\apache\conf the httpd.conf file has been modified to have these two directives LoadModule php4_module c:/apache/php/sapi/php4apache.dll AddType application/x-httpd-php .php The file I am trying to access is "test.php" in c:\apache\htdocs and has only one line (below) <?php phpinfo(); ?> I try to access it by opening a browser, (IE6) and opening document http://localhost/test.pnp I get the "FILE DOWNLOAD" dialog box asking me if I want to save or open the file and if I want to open it, open it with what. It's clear the system is not recognizing the PHP suffix. I know I've missed something or not changed something correctly but for the life of me I can't figure out what it is. It worked briefly on one system and then stopped working (same symptoms as above) after MYSQL was installed. I've just done a completely new Apache Install and PHP on another system. Unfortunately same problem. Any suggestions or areas I could check would be greatly appreciated. Thanks, Jim "Shadow" <shadow@shadowsnetwork.com> wrote in message news:20030918011753.90264.qmail@pb1.pair.com... > You didn't give much info...........did you configure Apache? Where is the > document root? Is that where you are saving or trying to access the files? > Did you configure PHP? Where is its document root? Is Apache running? What > do the error logs say for Apache and PHP? And so on. > Shadow

« previous php.install (#11980) next »