Page 1 of 1

[solved] how to run apache as a service?

PostPosted: 18. October 2013 19:40
by n9mfk
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

Re: how to run apache as a service?

PostPosted: 21. October 2013 15:50
by Altrea
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

Re: how to run apache as a service?

PostPosted: 21. October 2013 17:29
by n9mfk
Today I found the problem the control panel was not run as admin
I have now fixed it