Close Menu
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook X (Twitter) Instagram
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
My SiteMy Site
Home»Programming»PHP»How To Fix LocalHost 403 Forbidden Error in WAMP Server
PHP

How To Fix LocalHost 403 Forbidden Error in WAMP Server

Oscar FrankBy Oscar Frank2 Mins Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

WAMP Server no doubt is one of the must installs for several web developers in order to easily run and test PHP codes natively on their machines/browsers, but most often, people tend to get into little issues while installing this useful tool on their computers of which one of them is the 403 forbidden error.

Have you ever tried visiting localhost in your web browser after installing and starting the WAMP server engine and got a fail attempt with a page that returns 403 forbidden error such as shown below?

403 Forbidden WAMP error

Well, here’s how to easily get it all fixed in 5 minutes and get everything back up and running.

1. Click on the WAMP server icon in the tray icon area at the bottom-right corner of your screen on windows. Click on Apache > httpd.conf

httpd.conf

This would open the httpd.conf file in Notepad.

2. Search for

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

You need to change the last line from

Deny from all

to

Allow from all

Your new code should now look like this

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

3. Also search for

Allow from 127.0.0.1

Change this to

Allow from All

4. Save the file by pressing Ctrl + S, then Close.

Restart your WAMP Server engine by clicking the WAMP tray icon and selecting Restart All Services.

restart wamp engine

That’s it.

Reload localhost in your browser and you should see this page displayed.

working localhost in wamp server

I hope this helps.

403 Error php WAMP

Related Posts

Free PHP, HTML, CSS, JavaScript Editor (IDE) – Codelobster PHP Edition Review

November 7, 2017

How To Print/Echo a DateTime Object In PHP

January 3, 2017

7 Websites Every Web Designer Should Know

January 13, 2016
View 3 Comments

3 Comments

  1. Chukwuka Smart on January 13, 2015 11:08 pm

    Hi, pls I find it a bit difficult understanding the php video tutorial I ve. I would like to know if there is a way I get an easier ebook or get a more understandable video. Again, pls, can u code in c#?

    Reply
  2. tony on January 19, 2015 10:41 am

    Dear Oscar,
    I am having issues with my TECHNO H5 phone which i bought last year may 2014. Most times it goes BLANK & DARK BLIND when in idle mode. I will have to remove the battery & put it back before it will display and thereafter refuse to display contact or message inbox as it will be showing PHONE CONTACT UPDATING throughout the time it will display. After 1min, it goes back to the same blank and dark blind mode.
    Pls what do i do to rectify this anomally?
    Thanks.
    TONNY1

    Reply
    • Oscar Frank on January 20, 2015 7:59 am

      Hi Tony,
      Wrong post for this comment. Anyway, have you tried doing a factory reset? That might help.

      Reply
Leave A Reply Cancel Reply

Recent Posts
  • 6 Sports Apps You Must Have On Your Phone
  • Valencia Travel Guide: All You Need to Know About This Spanish Gem
  • TikTok Faces Unexpected Ban in Senegal, Sparks Global Curiosity
  • The Apple GPT & Apple’s Chatbot Mysterious Debut
  • Triller Takes on TikTok: Filing for Public Listing
Get Exclusive Tech Insights!
My Site
Facebook X (Twitter) Instagram YouTube
© 2025 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.