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.
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.
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.
I solved this problem on my installation by commenting the line
To see which dll causes the error on your windows machine just try to launch
php.exe and it will tell you which dll raises an error.
If you dont know which extension you need you can comment out everything and try to run your application (process). It will prompt for the required extension to be present. Just uncomment it and it will run.
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…
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.
I solved it by removing php_pgsql.dll-module from the php.ini file.
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.2conf folder remove the #
ServerRoot "C:/webroot/Apache Software Foundation/Apache2.2"ServerAdmin [email protected] MYCOMPUTERNAME:80
and added the 4 lines at the end.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLPHPIniDir "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.