I have installed WAMP 2 and am using firefox 3.6. I have saved my php file test.php in C:\wamp\bin\apache\Apache2.2.11\htdocs and I now open http://localhost/test.php in my firefox browser but I get a file not found error

Not Found

The requested URL /test.php was not found on this server.

What am I doing wrong?

1 Answer 1


Place your files in the www directory. Right click on the WAMMP icon on the taskbar > Click on www directory to launch the directory and place your php files there.

Also don't forget to start all services


Alternatively you can also use XAMPP. In XAMPP you have to place the files directly in XAMPP > htdocs folder.

XAMPP also has a plugin for TOMCAT so that you can test java apps locally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.