Reputation:
Am trying to use php
I downloaded XAMPP
control panel v3.2.2
set the port to listen at 8080 and I set the localhost to 8080 too and apache
starts and runs fine.
The problem is that for any php file that I try to open by writing at my browser:localhost/thefile'sname.php
, even though I have saved it in C:\xampp\htdocs
, I get the error:HTTP Error 404. The requested resource is not found. Any ideas as to what could be causing this error to occur and how to fix it?
Upvotes: 0
Views: 8414
Reputation: 109
If it can't find the document it's most definitely with your apache config and your document root or possibly a .htaccess file in the document root?
check or post your apache config and check for .htaccess file.
ah also localhost will only map to port 80, http://localhost:8080/yourfile.php
Upvotes: 1