Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I try to start the Apache server (with PHP and cURL extension), it says:

The Apache2.2 service is restarting.
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 192.168.1.8 for ServerName
[Tue Sep 07 14:30:57 2010] [warn] pid file C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

(I'm guessing that the fourth line should start something line "Determine"; probably a race condition.)

Then it terminates (and if I retry I get the same "unclean" message). If I comment out the extension=php_curl.dll in php.ini, httpd.exe works again. The PHP error log is empty.

When I run php-cli, cURL functions normally, so it must be caused by some magic behind the scenes that I don't know anything about.

Suggestions? Can I retrieve more information some way? Thanks!

Edit: Apache + PHP works nicely without cURL.

share|improve this question

migrated from stackoverflow.com Sep 7 '10 at 14:26

This question came from our site for professional and enthusiast programmers.

    
Does php_curl.dll in fact exist? –  Pekka 웃 Sep 7 '10 at 12:50
    
php_curl.dll exists (I just edited). Works with php-cli. –  Jonas Byström Sep 7 '10 at 12:52
    
I was hoping to keep it here since I've been spoiled with good answers here. :) –  Jonas Byström Sep 7 '10 at 12:54
2  
Surely to be closed but until then: Have you got the right versions of the relevant DLLs? Typically when I have Apache/PHP issues it's because I was using a wrong version of a library, whether that's different platforms, releases, etc. –  Rushyo Sep 7 '10 at 12:56

2 Answers 2

You might be using the wrong PHP version :

Which version do I choose?

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP

So first make sure you're using VC6 (Thread safe) and check if that solves the problem, or alternatively remove your current apache, php and mysql and install Zend Server CE.

share|improve this answer
    
I was already using VC6 TS for Apache 2.2 plug-in, but upgraded to PHP 5.3.3 and that did the trick for me. Thx! –  Jonas Byström Sep 7 '10 at 13:59

Looks like non-production server to me. You can install XAMPP or WAMPP, it has all the extensions already functioning out of the box. No need to waste time with server config.

[XAMPP] - http://www.apachefriends.org/en/xampp-windows.html

[WAMPP] - http://www.wampserver.com/en/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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