Wamp Server Not Working

WAMP server, localhost is not working

Goto This link its working..

http://www.ttkalec.com/blog/resolving-yellow-wamp-server-status-freeing-up-port-80-for-apache/

Update: Using XAMP

After I’ve written this blog post I’ve figured out that XAMP, although very similar to WAMP, doesn’t force you to run Apache as a service, instead it can run it as a regular process. So I ended up using XAMP, and changed Apache port to 8080 so now everything works.

WAMP Issues

If you have Window 7 or later you may have come across issues with WAMP server trying to start Apache service on port 80 and failing.

There are many conflict and issues that might have come up.
Before you try anything, check if you have ZoneAlarm, Nod32, or any other program/firewall that might be blocking Apache server.
If you’re sure that firewall isn’t the problem here is a couple of fixes that you can try.

NOTE: After every fix you try, you must click on yellow WAMP icon and choose Restart All Services

Checking which process is causing the problem

Open Command Prompt window by typing cmd in Run command box or Start Search, and hit Enter.
Type in the following command:
netstat -o -n -a | findstr 0.0:80
The last column of each row is the process identified (process ID or PID).
Identify which process or application is using the port by matching the PID against PID number in Task Manager.
If you don’t see PID column in your Task Manager you need to go to Processes tab -> View Menu -> Select Columns and choose PID from the list
Now, you may have identified application that reserves port 80, or you may have found out that System is using your port 80. That means that one of internal services is using your port, in which case continue reading further.
Conflict with Skype

If you found out that Skype is using your port 80, you need to change some settings in Skype. On Windows, Skype reserves port 80 which is used for HTTP. Apache requires this port. So if you’re running Skype, you must go to Tools > Options. Then in the Advanced section, select Connection. Un-check the box that says “Use port 80 and 443 as alternatives for incoming connection“. Quit Skype and restart. The issue should be resolved.

Conflict with IIS Server

IIS Server and Apache are both web server that use port 80 so they might be in conflict. Try stopping IIS by:

Going into Control Panel -> Administrative Tools -> Internet Information Services
Right click on Default Web Site
Click on Stop option in the popup menu, and see of the listener on port 80 has cleared.
Conflict with MS SQL Server

MS SQL Server installs “SQL Server Reporting Services (MSSQLSERVER)” that apparently defaults to 80. You can try stopping it to free up port 80.

Go to Control Panel -> Administrative Tools -> Services
There find MSSQLSERVER (might be found also under SQL Server)
Double click it -> Click Stop
Under Startup type: choose Manual
Other Services that can cause conflicts

As described above for MS SQL Server:

Go to Control Panel -> Administrative Tools -> Services
You can try stopping:
Web Deployment Agent Service
Windows Remote Management
Autodesk EDM Server
World Wide Web Publishing Service
There are probably more of them, but this where the ones that I tryed.

Try turning off HTTP driver directly

If you’ve tried everything mentioned above and your WAMP server is still not working you could try this (which eventually helped me).

Right click on My Computer icon -> Properties
Go to Device Manager
Click on View menu and chooseShow hidden devices
Now from the list choose Non-Plug and Play devices
Double click HTTP -> go to Driver
For Type choose Disabled
Restart your computer
After your computer boots up you should be able to start up WAMP server.

If everything else fails

You could try changing Apache server to listen to some other port other than port 80.

Click on yellow WAMP icon in your taskbar
Choose Apache -> httpd.conf
Inside find these two lines of code:

Listen 80
ServerName localhost:80
and change them to something like this (they are not one next to the other):

Listen 8080
ServerName localhost:8080
Restart all services, and try typing localhost:8080 into your browser.
WAMP server should now be working.

WAMPServer not working properly on Windows 10, could not perform service action

You should also check the HOSTS file. It comes empty I think in W10.

Make sure you have at least

127.0.0.1  localhost
::1 localhost

without '#` comments in column 1

Also you may well have inadvertantly installed IIS. MS seem to think this is a good idea lately. Check and if you are not using it, uninstall it.

WAMP Server not working

Skype reserves port 80 for its incoming connection which conflicts with WAMP, so simply configure Skype to use another port by doing the following:

In Skype go to Tools|Options|Advanced|Connection uncheck the option --> Use port 80 and 443 as alternatives for incoming connections, that's it

For this change to take effect restart Skype and Restart all services on WAMP by doing the following:

Left-click WAMP tray icon > Restart All Services"

Now Wamp and Skype can co-exist together, hope this solves your problem!!

WAMP server doesn't work properly on Windows 10

Windows 10 does not come with all the older MSVC Runtimes installed.

You will also have to install any of these that are missing.

  • Microsoft Visual C/C++ Redistributable 2008 (VC9)
    32bit /
    64bit
  • Microsoft Visual C/C++ Redistributable 2010 (VC10)
    32bit /
    64bit
  • Microsoft Visual C/C++ Redistributable 2012 (VC11)
    32bit & 64bit selectable on this page
  • Microsoft Visual C/C++ Redistributable 2013 (VC13)
    32bit & 64bit selectable on this page
  • Microsoft Visual C/C++ Redistributable 2015 Update 1 (VC14)
    32bit & 64bit selectable on this page

  • VC15 Redistribuable (Visual C++ 2017)

    Visual C++ Redistributable Packages for Visual Studio 2017 x86

    Visual C++ Redistributable Packages for Visual Studio 2017 x64

VC2017 (VC15) is backward compatible to VC2015 (VC14). That means, a VC14 module can be used inside a VC15 binary. Because this compatibility the version number of the Redistributable is 14.1x.xx and after you install the Redistributable VC2017, VC2015 is removed but you can still use VC14.

UPDATE April 2017

Most of the MSVC runtimes are now available from this microsoft page

Which versions of the above you actually need to run WAMPServer, or rather Aapche, will depend upon the version of WAMPServer you are running, but installing all of them can do no harm as they are used by any software that has been compiled with the Microsoft compilers.

If you are using WAMPServer 64bit on Windows 10 64bit, you will need to install BOTH the 32 and 64bit versions of these libraries.

After you have checked you have all the runtime libraries, you may also need to re-install the Apache and MYSQL services as the upgrade to Windows 10 unfortunately sometimes (pretty much always) misses the fact that you have 2 services running that should be replaced after the upgrade i.e. wampapache and wampmysqld

All you need to do is, using the wampmanager menus system do this :

left click wampmanager -> Apache -> Services -> Install Service

left click wampmanager -> MySQL -> Services -> Install Service

Then

left click wampmanager -> Start All Services

Additional info

Also remember that for PHP to be interpreted, the code must exist in a file with a .php extension. If you are using notepad as an editor, that will add a .txt to a filename, so if you save tst.php it will actually get saved as tst.php.txt and therefore will not run. Get a decent editor notepad++ will do a great job and is free.

Also files with the .html or .htm that contain php code will not execute the php code as these files are not passed to the PHP interpreter, because they dont have the .php extension.

Using Explorer

Dont double click on the script file name in Windows Explorer. This works to test pure HTML pages, or HTML + Javascript pages, but it does not work if the page has PHP code in it However doing this does not go via Apache, and it is Apache that see's the <?php tags and therefore know to pass this code to the PHP interpreter.

You must enter the script file name into the browser address bar, as if it were a real web site, because of course it is

For example localhost/project1/test.php

Wamp Server not working in Windows

If the Wampmanager icon in the system tray is Orange then one of the services has not started.

Obviously MySQL in this case.

Look at your MySQL error log and Windows Event Viewer, for error messages from MySQL, that should tell you what the problem is.

If you tried installing Apache and MySQL independantly before you installed WAMPServer make sure they are both properly uninstalled. Also check there is no my.ini file anywhere on your system except inside the C:\wamp folder structure.

Wamp server Put Online is not working

 # # Virtual Hosts #
<VirtualHost *:80> ServerName localhost DocumentRoot D:/wamp/www <Directory "D:/wamp/www/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> #

wamp server not working on 8.1

Try checking that the Apache and MySQL services are still registered as services.

Look in Windows Services for services called - 'wampapache' and wampmysql'

Or if you have WAMPServer 64bit wampapache64 and wampmysqld64

If they dont exist do the following:-

wampmanager -> MySQL -> Service -> Install Service
wampmanager -> Apache -> Service -> Install Service

Then try to restart all services.



Related Topics



Leave a reply



Submit