WAMP starts Apache or Mysql, but not both?

Posted by ladenedge on Server Fault See other posts from Server Fault or by ladenedge
Published on 2010-02-09T19:31:57Z Indexed on 2012/06/16 15:18 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

When I install WAMP, the Apache and Mysql services are set to run as the LocalService user and all works well. However, because I need to access remote UNC paths in my PHP code, I need to run at least Apache as a user that exists on both the local host and the remote host - I'll call him WampUser.

When both Apache and Mysql are set to start as WampUser, I cannot start both at the same time. If both are stopped, I can start either successfully. When I attempt to start the other, I get

Error 1053: The service did not respond to the start or control request in a timely fashion.

This error appears immediately - there is no timeout.

When at least one of the services is set to start as LocalService, both start fine. I can, therefore, solve my problem by setting Apache to WampUser and Mysql to LocalService, but I'm more interested in why this is happening in the first place. I'm especially curious because this situation does not occur on other servers - something I've done to this server has made these two services exclusive when running as the same user.

Here are some miscellaneous data points:

  • I am using Windows Server 2003.
  • I've provided recursive Full Control to the C:\wamp directory for WampUser.
  • Nothing appears in the event log after the service fails.
  • No log entries appear in either the Mysql log or the Apache error log.
  • Neither application appears in the process list when the appropriate service is stopped.

Any ideas?

© Server Fault or respective owner

Related posts about apache2

Related posts about mysql