Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

closed as off topic by MDMarra, mgorven, mdpc, Khaled, Michael Hampton Mar 2 at 12:59

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

3 Answers

WampUser probably needs additional privileges to listen on port 80. If you only put in in the Users group, you also will need to grant the extra privilege of "Act as part of the operating system.".

See: http://httpd.apache.org/docs/2.4/platform/windows.html#winsvc

share|improve this answer

in your OS ,you have a program that use port 80 and apache services cant start , you must change program port that work in this port

share|improve this answer

If you are using http://wampserver.com then sometimes there is a problem with that messing up my mysql processes. You might want to click in that and make sure that it is not interfering or trying to change the process user.

share|improve this answer

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