How do i run a simple php file with wamp?

It is after much frustration that I write this question here. Couldn’t possibly figure it out on my own. I recently downloaded the book ‘Head first PHP and MySQL’ and I’m trying to run the php files from a local webserver. For that I’ve downloaded wamp server 2.5 (Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12) in order to simplify the installation process of installing all the software components separately.
I’ve gone all over the possible tutorials online and nothing has worked for me. Tried using Virtual hosts as well, but to no avail. Whenever I try to load any page through localhost or through a Virtual host, I get the 404 Forbidden: 403 Forbidden You don't have permission to access / on this server error.

Can someone please give me a beginner instructions as to what exactly I have to do? Consider the fact that I’ve just installed wampserver with all its default settings.


Source: wampserver

Leave a Reply