""Bruce A. Julseth"" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
I can't get Apache to restart after I've configured for PHP. I've upgraded my installation to 5.2. Now, Apache 2.2.3 runs fine without any PHP additions. 1) I added my PHP directory, C:/PHP5, to my PATH 2) I copied php.ini-recommended to my C:/windows directory and renamed it php.ini 3) I made the following changes to PHP.ini doc_root = "c:/inetpub/wwwroot" extension_dir = "c:/php5/ext" 4) I made the following changes to Httpd.conf After the last entry in the LoadModule section: LoadModule php5_module "c:/php5/php5apache.dll" AddModule mod_php5.c NOTE: If I comment out the above two statemens, Apache will start. In the <IfModule mime_module> Section, I added AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" And that's it. When I restart Apache, I get an error dialog with the message: The requested operation has failed. What have I missed or done wrong? Thanks for the help... Bruce Hello Bruce. I think your problem lies in the file name you are using. I use this line and have no problems. LoadModule php5_module "c:/Program Files/PHP/php5apache2_2.dll" I do not have the AddModule line. I use AddType application/x-httpd-php .php .html. (I want to parse .html files as well.) I do not use the Action line. Try taking out the Addmodule and Action lines. Change the LoadModule line. I forget where I bumped into the documentation that explained it to me. I still haven't forgotten how much time it took me to find it though. ;-) Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php