Starting Apache webserver as a service with xampp 7.0.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Starting Apache webserver as a service with xampp 7.0.1

Postby wlsetzer » 18. January 2016 19:00

How do I start apache and mysql as a service in xampp version 7.0.1. Installed on Windows10.
wlsetzer
 
Posts: 4
Joined: 18. January 2016 18:46
Operating System: windows10

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby Nobbie » 18. January 2016 21:38

There is an option for that in the Xampp Control Panel.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby wlsetzer » 18. January 2016 22:54

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
wlsetzer
 
Posts: 4
Joined: 18. January 2016 18:46
Operating System: windows10

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby Nobbie » 18. January 2016 23:20

wlsetzer wrote:1. Run CMD as administrator


Of course the same for Xampp Control Panel - did you run it as Administrator?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby wlsetzer » 19. January 2016 01:37

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 . . .
wlsetzer
 
Posts: 4
Joined: 18. January 2016 18:46
Operating System: windows10

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby Altrea » 19. January 2016 10:09

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Starting Apache webserver as a service with xampp 7.0.1

Postby wlsetzer » 20. January 2016 15:09

Thank you very much. That works.
wlsetzer
 
Posts: 4
Joined: 18. January 2016 18:46
Operating System: windows10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 142 guests