Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
When you install Apache on Windows 8, you might see some problems when you try to reach the server. Here are some of the symptoms you might see. I've installed WampServer 2.2, and you might see this symptom depending on the version of WampServer you have and your Windows configuration. I'll try to go to localhost and I'll see the message forbidden. You don't have permission to access the root folder on this server. That's what it looks like in Chrome. I'll also do the same thing in Internet Explorer. Just as I did in Chrome, I'll type http://localhost and Internet Explorer shows the message, The website declines to show this webpage.
And under More information, it shows HTTP 403 forbidden. So here's what's going on and how to fix it. The problem is that Windows 8 uses IPv6, a new IP address numbering scheme, and some versions of Apache have configuration files that prohibit using this scheme. You have to change the Apache files to make it work. Here's what's happening on Windows. I'm going to go to a command prompt. On Windows 8, I'll move the cursor to the lower-left hot corner, right-click, and choose Command Prompt.
And I'll type ping localhost. On Windows 7 and earlier versions, under the Reply from messages, I would've seen 127.0.0.1. That's the local IPv4 address. The equivalent in IPv6 is ::1. When I make a request to Apache, that's the requesting IP address, and the Apache configuration file is not allowing that through. Here's how I'll fix it. I'll go to my Apache folder, with WampServer that's under c:wamp/bin.
Then I'll go to the Apache folder to the Apache version which here is 2.2.22 and then to the Conf or the Configuration folder. And I'm looking for this file, the httpd.conf file, and I'll open that. You can open it in any text editor. Then, I'm going to search for 127.0.0.1, and I'll find this line, Allow from 127.0.0.1. This is not working because my request is not coming from that IP address, it's coming from ::1.
So I'll fix it by copying and then pasting that line and I'll change it to ::1 just like that. I'll search for any other instances of 127.0.0.1. I don't find any so I'll save the change and close the file. Now I'm going to restart the server. I'll go to the WampServer icon in the system tray. Click it and then select Restart All Services. Then once again, I'll navigate to localhost, and this time, I get to the Homepage successfully.
But now, if I try to go to phpmyadmin, I'll see exactly the same problem. And that's because there's a special alias configuration file that's controlling access to this folder. So, I'll once again go to File Explorer, and I'll go to the wamp folder. And I'll look under the alias folder where I'll find alias files for each of the 3 applications that are installed automatically. I'll show you how to deal with phpmyadmin, and you can deal with the other aliases in the same way. I'll open this file, and I'll make exactly the same change that I made in the main configuration file.
I'll make a copy of the Allow from command, and I'll change the new one to ::1. I'll save and close the file, I'll once again restart the services. Then I'll come back to the browser and Refresh, and now I can successfully get to phpmyadmin. So the root problem is that Windows 8 has IPv6 instead of IPv4. And if you know that and you know how to configure a Apache, it's an easy problem to get around.
Just allow access from the default local IP address under IPv6::1. And then, Apache and all of your web applications will work the same way they did in older versions of Windows.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 97083 Viewers
61 Video lessons · 84399 Viewers
71 Video lessons · 68609 Viewers
56 Video lessons · 101095 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.