4

So yesterday i installed WAMP server and if I run it, the icon is green saying all of the services are running. I changed the port to the 8080 because 80 was used by some Windows process.

localhost:8080 

gets me to the WAMP homepage, but if I click any of my projects (they appear in the homepage), I get 404 not found error.

I tried

localhost:8080/test/index.php 

I'm pretty sure the solution for this is easy but I can't wrap my head around it, thank you.

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
Kelb56
  • 587
  • 3
  • 8
  • 21
  • make sure you project is in the same directory as the WAMP homepage. something like wamp-directory/yourproject/index.php – Luthando Ntsekwa May 13 '16 at 05:13
  • Its in "C:\wamp64\www\test\index.php" The funny thing is that my test folder appears on the homepage of wamp, meaning that it finds it – Kelb56 May 13 '16 at 05:17
  • Try to enable **mod_rewrite** module in **Apache** of your newly installed WAMP if not already enabled. – Chandresh M May 13 '16 at 05:22
  • Wamp -> Apache -> Apache modules -> rewrite_module was enabled before, tried this when trying to find a solution, sadly it was already enabled by the default, but still thank you – Kelb56 May 13 '16 at 05:24
  • If above solution will not resolved your issue, then try to change **ServerName localhost:80** to **ServerName localhost:8080** in your httpd.conf file (I hope this one also you already been done) – Chandresh M May 13 '16 at 05:25
  • try to check if theres a .htaccess file on the project folder.. sometimes.. it messes up the routes... – Joshua Belarmino May 13 '16 at 05:26
  • It would be easier to find out what is using port 80 `left click wampmanager -> Apache -> Test Port 80` Report back in your question what is reported on the screen – RiggsFolly May 13 '16 at 09:09
  • `Your port 80 is actually used by : Server: Apache/2.4.17 (Win64) PHP/5.6.16` – Kelb56 May 13 '16 at 10:34
  • I can access the Wampserver homepage by typing `localhost` , but when I click on my folder for the project (which contains index.php file in explorer) I get error: `Not Found The requested URL /test/ was not found on this server.` – Kelb56 May 13 '16 at 10:47
  • Please try here, http://www.steptoinstall.com/page-not-found-404-error-in-wamp-server-localhost.html – KarSho Mar 29 '20 at 07:59

2 Answers2

0

try this url to check the wamp work properly or not.

 localhost:8080/phpmyadmin

if it not work change the port after try it.and then

localhost:8080/test/index.php

Nandhakumar
  • 92
  • 1
  • 2
  • 12
0

If you have Skype installed and running, go on advanced settings and disable port 80.

Restart Skype and WAMP then retry with port 80

Romain Bouvet
  • 87
  • 1
  • 10