[solved] how to run apache as a service?

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

[solved] how to run apache as a service?

Postby n9mfk » 18. October 2013 19:40

Hi all,
Im try to make apache run as a services
under win7 here the error

Installing Apache2.4 as an Service
The system cannot find the path specified.
Now we Start Apache2.4 : )
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Press any key to continue . . .

here the batch file
Code: Select all
@echo off

if "%OS%" == "Windows_NT" goto WinNT

:Win9X
echo Don't be stupid! Win9x don't know Services
echo Please use apache_start.bat instead
goto exit

:WinNT
echo Installing Apache2.4 as an Service
bin\httpd -k install
echo Now we Start Apache2.4 :)
net start Apache2.4

:exit
pause



what do i need to do? Beau
n9mfk
 
Posts: 15
Joined: 18. October 2013 19:24
Operating System: windows 7

Re: how to run apache as a service?

Postby Altrea » 21. October 2013 15:50

Hi n9mfk,

What is the install path of XAMPP?
Do you have tried to register the service from the XAMPP control panel?
What is the full output in your XAMPP control panel log window?

best wishes,
Altrea
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: how to run apache as a service?

Postby n9mfk » 21. October 2013 17:29

Today I found the problem the control panel was not run as admin
I have now fixed it
n9mfk
 
Posts: 15
Joined: 18. October 2013 19:24
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 141 guests