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: "Joseph Chow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 7:34 AM Subject: [PHP-INST] HELP!!! a problem of configure php with apache on windows xp > Dear all, > > I have a hard time to configure php-4.3.0-win32 with apache 1.3 on windows > xp. Before I tried on windows xp, I suceeded in my first try on windows > 2000 (another machie) by following php install.txt. In my effort on windows > xp machine, apache server came with ORACLE 9i database which I downloaded > before. I am trying to configure php with apache which came with oracle. > > Please look through what I did (install php as apache module) step by step > and give me some suggustions: > > (1) downlaod php package and extract all file to c:\php > (2) copy c:\php\php.ini-dist to c:\windows and change name to php.ini > (3) modify php.ini as "extension_dir = c:\php\extensions" > (4) copy php4apache.dll from c:\php\sapi to c:\php (just put it with > php4ts.dll in the same directory) > (5) add following codes to apache httpd.conf > LoadModule php4_module c:/php/php4apache.dll > AddModule mod_php4.c > AddType application/x-httpd-php .php > (6) restart apache server > (7) create a phpinfo.php which had only one line "<?php phpinfo();?>" in > apache htdos dir > (8) open url localhost/phpinfo.php in IE > > The result from step (8) return me "<?php phpinfo();?>" instead of a php > info HTML page. > > thanks for your time and responce > > Joe > > > > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php