moyse Posted December 20, 2009 Share Posted December 20, 2009 I installed PHP 5.2.12 on windows VISTA with Apache 2.2.14. After installing PHP I cannot start Apache, I get error ‘The requested operation has failed.’ In the error log file I get this [sun Dec 20 22:28:14 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? When I run the Test Configuration, it runs and disappears with no problems. If I delete the PHP part (see below) in the Apache config file it works but doesn’t load PHP files. #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL Can anyone help? Anything else I can check/test? Quote Link to comment https://forums.phpfreaks.com/topic/185771-problem-starting-apache-2214-after-installing-php-5212/ Share on other sites More sharing options...
molave Posted February 3, 2010 Share Posted February 3, 2010 Wow, it's eerie how similar my problem is to yours. Every detail is the same. Have you figured it out? I'd appreciate some insight. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/185771-problem-starting-apache-2214-after-installing-php-5212/#findComment-1005935 Share on other sites More sharing options...
wildteen88 Posted February 3, 2010 Share Posted February 3, 2010 Uninstall PHP and delete the C:/Program Files/PHP folder if its left behind. Also remove the following lines from the httpd.conf. #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL Go to http://php.net/downloads and download the PHP Zip distribution instead. Extract the zip file to C:\PHP. Add the following lines to Apache's httpd.conf file (at the bottom will do) LoadModule php5_module "C:/PHP/php5apache2_2.dll" PHPIniDir "C:/PHP" Add PHP to the PATH Environment Variable. Restart Apache. Apache should now be be running fine and be configured with PHP. To test go to C:/Program Files/Apache Software Foundation/Apache2.2/htdocs and delete any files in that folder. Create a new file called info.php and add the following code to it <?php phpinfo(); ?> Now open you web browser and go to http://localhost/info.php You should see page generated about PHP's configuration. PHP is now setup with Apache. To configure PHP go to C:\PHP and rename the file named php.ini-recommended to just php.ini. Dont forget to restart Apache after you have made any changes to the httpd.conf or php.ini <?php phpinfo(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/185771-problem-starting-apache-2214-after-installing-php-5212/#findComment-1006303 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.