No installed service named Apache2

2006 Oct 2

If you came across to this error while installing apache2, well, heres the fix.

Goto your apache installation folder its usually at:

C:\Program Files\Apache Group\Apache2\bin

Execute this command:

Apache.exe -k install -n "Apache2"

-k install -- tells apache to install an Apache service
-n "Apache2" -- sets its service name to be Apache2
-k start -- Start Apache server
-k restart -- Tells Apache to do a restart

You can then test your installation by typing in http://localhost/ to your browser address bar.

5 Comments

in the same problem these r what i did and worked:

1. i wrote my email adress to htpd.conf near the serveradmin line.
example:
serverADMIN example@example.com

2. i did what is written above

if u dont do the first the above may not work

Well..... It finally worked for me too. Only after I read the "Read Me" file that comes with Apache.
Nowadays you have to CD to BIN and then do:
"To install and start the service after you have corrected the httpd.conf file, use the command

bin\httpd.exe -k install
bin\httpd.exe -k start "

That's from "Read Me" file. Here is how to do it:
1. Go to Start - Run - type cmd - press Enter.

2. Type cd C:\Program Files\Apache Software Foundation\Apache2.2\bin (or the exact location of YOUR Apache bin folder) and press Enter.

3. Type httpd.exe -k install press Enter
Now type
httpd.exe -k start press Enter

It works !


Oh.... And forget about IIS or any other server or program already running on port 80. Just change it to 8080 during Apache installation, or later in configuration file, so there will be no conflict. Later, to use your Apache server you would need to type that port # in a browser, like this:
localhost:8080

I tried installed Apache2 as a service. But it didn't install. I gave up.

With your solution, it worked perfectly fine. Thanks so much..

ive tried what u guys recommend.
i use the cmd n type the apache bin file location.followed by the intallation command .
but,it reply," httpd.exe "is not recognized as internal @ external command.

can anyone please help me.

@syamin you will need to check if the file you are trying to run actually exist by typing in the list all files command "DIR" like this:

C:\>DIR

then look for the file httpd.exe if its there, if its not, then your in the wrong folder.

Leave a comment


About Me


Alfredo Sanchez is an internet professional focusing on the study search engines behavior in particular. Supports Free Open Source Software and currently develops applications with it using XAMPP.

Recent Entries

Close