I used the file wampserver3_x86_x64_update3.0.4.exe which I downloaded today, 2016-06-20 1734 CDT (GMT-6)
I scanned it for malware, none was found, and then I ran it and selected the \wamp32 directory where I had installed WAMP 3.0 32 bit
The About after the upgrade is:
WampServer Version 3.0.4 32bit
Created by Romain Bourdon
Maintainer / Upgrade to 2.5 by Herve Leclerc
Upgrade 2.5 to 3.0.0 by Otomatic (wampserver@otomatic.net)
Multi styles for homepage by Jojaba
Installer by Inno Setup
[
forum.wampserver.com]
______________________ Versions used ______________________
Apache 2.4.17 - PHP 5.6.15 - MySQL 5.7.9
PHP 5.6.15 for CLI (Command-Line Interface)
I am still getting the same error when I try to create a virutalhost:
- I first enable the VirtualHosts sub-menu
- I then uncomment the line Include conf/extra/httpd-vhosts.conf in httpd.conf and save the file.
- I restart the services
- I try to go the the Localhost page by left clicking the WAMP icon and left clicking the Localhost menu item.
I get error message:
"Forbidden
You don't have permission to access / on this server.
Apache/2.4.17 (Win32) PHP/5.6.15 Server at localhost Port 80"
If I look at it with Firefox/Firebug debugger, it shows as:
"NetworkError: 403 Forbidden - [
localhost];
I have WAMP 3.0.4 running correctly in the directory \wamp64. I have created virtual hosts without any problems and they work as they should.
But with WAMP 3.0.4 32 bit I get the Forbidden error when I try to go to Localhost after enabling the sub-menu and uncommenting the line in httpd.conf
If I re-comment the line in httpd.conf, I can then get to the Localhost page but still have the message telling me to uncomment the line in httpd.conf
Thus - uncommenting that line in httpd.conf causes the problem.
I can at least load the Localhost page whether the VirtualHost sub-menu is on or off.
Uncommenting the line causes the error, regardless of whether the VirtualHost sub-menu is on or off.
BY THE WAY - when I uncomment or re-comment the line in httpd.conf, I always restart the services after saving it and trying to get to Localhost..
Here is the Windows hosts file, all of the virtual host material was put in there by the WAMP 64 bit version
-------------------------
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 bob
::1 bob
127.0.0.1 novell
::1 novell
127.0.0.1 justblog
::1 justblog
Here is the C:\wamp32\bin\apache\apache2.4.17\conf\extra\httpd-vhosts.conf file:
-------------------------------
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[
httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin
webmaster@dummy-host.example.comDocumentRoot "c:/Apache24/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
webmaster@dummy-host2.example.comDocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
I have made no other changes to the Apache conf except for uncommenting and re-commenting the line Include conf/extra/httpd-vhosts.conf while trying to pin down the exact symptoms.
To repeat:
With the line #Include conf/extra/httpd-vhosts.conf in httpd.conf uncommented, I get:
"Forbidden
You don't have permission to access / on this server.
Apache/2.4.17 (Win32) PHP/5.6.15 Server at localhost Port 80"
The VirtualHosts sub-menu can be on or off - doesn't make any difference. Uncommenting that line causes the 403 error.
Where do I go from here?
Do you want to see the C:\wamp32\bin\apache\apache2.4.17\conf\httpd.conf file? I'll post it if you want to see it.
I'll post anything you want to see, just tell me what you need.