I'm having problem with running Apache2.2 on my Vista machine. When I clean install Apache it works just fine, but after I installed PHP, I'm getting this error message in logs.

[Fri Oct 23 21:29:02 2009] [warn] pid file C:/Dev/Apache2.2/logs/httpd.pid 
overwritten -- Unclean shutdown of previous Apache run?

Apache service was stopped when installing PHP. I did only one shutdown before instalation via Apache Service Monitor.

Deleting httpd.pid and starting again doesn't help. I even tried to lookup process with PID in that file, but there is no such process.

link|improve this question

feedback

6 Answers

up vote 3 down vote accepted

As pointed out by some posters - the problem is caused because by default php.ini has not commented out all the extension modules.

I installed php-5.2.13 on Vista Home and experienced the exact problem that Darth came across.

The only extensions I needed were...

extension = php_mysql.dll extension = php_mysqli.dll

The rest, I commented out by placing a ";" a start of each line.

This got Apache starting for me.

link|improve this answer
feedback

I am not totally sure what the issue is... need more information to solve this. Try increasing the loglevel in Apache and post more detailed logs. But from what you posted my guess is that Apache is crashing with PHP installed, probably due to a misconfigured or mismatches library...

link|improve this answer
feedback

I had the same problem previously, it is caused by some php extension module were not loaded properly. I commented the module loading to prevent this error, as i don't need them time being. If you have to run that module, maybe you have to check the documentation of installing the module. hope it helps.

link|improve this answer
feedback

I solved it by removing php_pgsql.dll-module from the php.ini file.

link|improve this answer
feedback

I solved this problem on my installation by commenting the line ;extension=php_sybase_ct.dll

to see wich dll cause error on your windows machine just try to launch the php.exe and it will tell you wich dll rase error

link|improve this answer
feedback

Thank you, this solve my problem as well.

I installed Apache2.2, mysql, and php

During installation of PHP, I added all the extension. (Do not add all the extension, just add mysql only)

I opened httpd.conf from Apache2.2\conf folder remove the #

ServerRoot "C:/webroot/Apache Software Foundation/Apache2.2"
ServerAdmin hongkildong@yahoo.com
ServerName MYCOMPUTERNAME:80

and added the 4 lines at the end.

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/webroot/PHP/"
LoadModule php5_module "C:/webroot/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Whenever, I restated the ApacheServer, I get the errors. so, I opened the error.log from Apache log folder. "Apache Unclean shutdown of previous apache run"

After removing all extensions except mysql, it works.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.