Step 01
First, open the httpd.conf file of your apache version by a text editor such as Notepad or Notepad++. It’s usually located at \wamp\bin\apache\<your apache version>\conf\httpd.conf or you can use the quick menu of Wamp manager to open it. Find these snippet before modify it:
# First, we configure the “default” to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
Replace the Deny from all with Allow from all and save the file.We have not finished yet. Find another snippet
# onlineoffline tag – don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Step 02
Replace Deny from all with Allow from all again. The localhost runs correctly now.After do all above thing, I believe that you can locate to localhost and your local web project with your browser. However, if you navigate to http://localhost/phpmyadmin, you will continue getting the Forbidden error. The reason is you did not modify the alias configuration file to allow access from your localhost. Let open this file by using Wamp manager or finding it in \wamp\alias\phpmyadmin.conf, find this snippet
<Directory “c:/wamp/apps/phpmyadmin3.4.10.1/”>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
Change Allow from 127.0.0.1 to Allow from ::1 or you can do as above, change Deny from all into Allow from all. Now, that’s all.
About Author
Rangana Dissanayake
Working as a lead consultant(software) at well reputed IT company in Sri Lanka, I have been involved in UID, UXD, graphic design, website design & development, eCommerce and WordPress for over 10 years. I'm proficient with React JS, Angular, Node JS, Java Script, HTML5, CSS3, Responsive Web Design, Adobe CC and PHP. I also specialize in all forms of digital marketing including SEO, AdSense, Affiliate marketing and blogging.