Copy of message sent out last time someone had a similar problem: Chances are you've not put the commands in the correct place, instead just copy and pasted them into the config file.
LoadModule php4_module C:\PHP\sapi\php4apache.dll This has to be in the same place as all the other LoadModule commands. If you look through your httpd.conf file for Apache, you will see a whole load of LoadModules with #'s in front of them. You need to place the above line at the end of that list. If you then scroll down a bit the next section should be 'AddModule'. In this section, you have to put the line AddModule mod_php4.c at the bottom of the list. Both commands are needed to properly load PHP. Once that is done, you will need to run a search for '# AddType allows you to tweak mime.types without actually editing it, or to' Below that line should be a series of AddType commands. Again, you need to put AddType application/x-httpd-php .php at the end of the list. AddType application/x-httpd-php-source .phps is an optional feature, I personnally do not use it as I do not want people to be able to view my source code. However it is up to you. If you do include it, put it in the same section as the other file. If that doesn't solve your problem, or you've done all that already, then remember you need to restart Apache for it to take effect. Also check that php is installed in the path you've set in httpd.conf (In this case C:\PHP\). Also check that C:\PHP\sapi\php4apache.dll is present in the correct folder, and that the following two files are in the SAME directory as php4apache.dll : php4ts.dll php4ts.lib Good Luck, let me know how it goes Stephen ----- Original Message ----- From: "news" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 4:51 PM Subject: [PHP-INST] I get a "File Download" dialogue box > I am trying to configure run PHP4 on Apache on Windows XP. > > When I type http://localhost/ all I get is a "File Download" dialogue box, > instead of the normal Apache server page. > > Does anyone know whats is going on here? > > Please tell me if you need any more information. > > -Nelson > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php