Page 1 of 1

Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 18. January 2016 19:00
by wlsetzer
How do I start apache and mysql as a service in xampp version 7.0.1. Installed on Windows10.

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 18. January 2016 21:38
by Nobbie
There is an option for that in the Xampp Control Panel.

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 18. January 2016 22:54
by wlsetzer
Could not get that to work in the Xampp control panel. Keeps coming back with errors.
After much searching have come up with how to start apache server as a service.
1. Run CMD as administrator
2. cd to c:\xampp\apache\bin
3. at the command prompt, type in httpd.exe -k install
4. exit out of CMD
5. restart the PC

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 18. January 2016 23:20
by Nobbie
wlsetzer wrote:1. Run CMD as administrator


Of course the same for Xampp Control Panel - did you run it as Administrator?

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 19. January 2016 01:37
by wlsetzer
Here is the error I get. I am running the apache_installservice.bat as administrator. This is all on a windows10 pc.

Installing Apache2.4 as an Service
The system cannot find the path specified.
Now we Start Apache2.4 :)
The Apache2.4 service is starting.
The Apache2.4 service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.

Press any key to continue . . .

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 19. January 2016 10:09
by Altrea
wlsetzer wrote:Here is the error I get. I am running the apache_installservice.bat as administrator.

This will not work, because if you run this bat file as Administrator by rightclick menu, the httpd.exe is expected in a different path (C:\Windows\System32).

Instead run your XAMPP control panel as Administrator (rightclick -> run as Administrator) and click in the red cross of the module you want to install as service.

Alternatively you can open a Windows cmd as Administrator, navigate to the path the apache_installservice.bat is saved and execute it.

Re: Starting Apache webserver as a service with xampp 7.0.1

PostPosted: 20. January 2016 15:09
by wlsetzer
Thank you very much. That works.