Wamp Server – The Service Has Not Been Started

By on March 6, 2013

Today i am going to talk about a WAMP (Windows Apache MySQL PHP) Server error.

This error is quite annoying as there’s no proper solution to it anywhere over the internet.

I searched a lot over the WAMP forums but i couldn’t find any proper solution to this. Every thread was kind of confusing and misguiding.

About the error: When i try to put WAMP Server Online, it returns an error as follows: Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started.

This is a very common error for Windows 8 users. I started facing this error since i switched to Windows 8. So if you are a Windows 8 user, this post is for you.

Below is a step by step guide to solve this problem. And i am very sure this is going to help you guys. If not, just drop a comment on this post, I will reply as soon as possible.

1) Putting the Server Online

Run your WAMP Server and try to put the server online as shown in the screenshot below.

put-online

2) An Error shows up

Putting the server online will give you an error as shown below

error

3) Port 80 is used by which service?

The error shows up because port 80 is used by some other service on your computer. So what you need to do is click on WAMP Tray icon, then select Apache > Service > Test port 80.

test-port-80

4) Port 80 is actually used by IIS

Once you click test port 80, you will discover that the port 80 is actually used by IIS (internet information services). This is a microsoft service. And in Windows 8 this service is running by default in the background. So port 80 is not available for WAMP server. And this causes the error with which we are dealing in this post.

port-used-by-iis

5) Find IIS Service in Task Manager

Now what we are going to do is find the IIS service and stop it. So port 80 will get vacant for WAMP Server.

Open up the Task Manager (CTRL+SHIFT+ESCAPE) and click on Services tab.

task-manager-services

Then find W3SVC Service, which is described as World Wide Web Publishing Service and has a group ‘iissvcs’ as shown in the image above. (The second last service in the image above)

6) Stop the Service

Right click on the W3SVC service and click Stop.

stop-iis-service

7) Repeat Step 3

On repeating step 3, You might get something like this:

port-80-not-used

8) Restart WAMP Services

Since IIS service is stopped and port 80 is vacant, Now you can run WAMP Services.

Click on WAMP tray icon, Click Restart All Services.

restart-all-services

9) Finally put the Server Online

( Notice the WAMP Server Tray icon turns Green on your Taskbar. )

Click on WAMP tray icon, Click on Put Online.

put-online-finally

10) Open localhost in your browser

Click on WAMP tracy icon > Click on Localhost.

select-localhost

11) You are done !

And you will see your WAMP Server is working perfectly fine.

localhost in wamp server

Do i have to turn off IIS every time to run WAMP ?

If you need IIS and WAMP, then yes you will have to turn off one of them to use the other.

But if you don’t need IIS, then you can shut it off forever.

If you are asking me – How to turn off IIS forever then i will answer that in some other post. Because at this moment its 1:20 AM and i am too sleepy. So see ya. Good night. If you have any questions, post them below.

About Omkar Bhagat

Omkar is the owner of Codefap.com. He writes blogs, makes video tutorials and love to learn new things about computers and programming.
Subscribe To Blog Feed
  • khushboo

    hello ,
    i want to use php scipt in iframe tag of html to fetch the playlist from the database ???
    i dont know how to use it…..plz suggest me something..

    • http://codefap.com/ Omkar Bhagat

      Hello,
      To use php script with iframe tag its simple (just a short example)
      And about fetching a playlist from the database, which playlist are you referring to? The playlist from a youtube channel?

      • Saurav Chaudhary

        i want to do the same thing . the playlist is nothing but the database itself