Reputation: 1866
I did the following steps to setup Wamp, but not able to access the server from different machine in the network. What am I doing wrong?
Menu item : Online / Offline
under Wamp settings
Put Online
You don't have permission to access / on this server
I directly edited httpd-vhosts.conf file and restarted all the service, still getting the same error. Below is the content of httpd-vhosts.conf file and my system IP
httpd-vhosts.conf
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/Users/dinesh/Softwares/Wamp64/www
<Directory "C:/Users/dinesh/Softwares/Wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 100.97.67
</Directory>
</VirtualHost>
System IP
mintty> ipconfig | grep IPv4
IPv4 Address. . . . . . . . . . . : 100.97.67.11
mintty>
Upvotes: 2
Views: 13755
Reputation: 1
I had an irritating problem. Windows firewall had a rule to let apache through, but it was a previous version of apache, and therefor didn't work for the new. Had to update the version of apache in the rule and add it to private-section. Windows 10.
Upvotes: 0
Reputation: 70
If you have done everything suggested by other answers but still it is not working then make sure your port 80 is not used by other application.
To check it quickly run netstat -a -b command in Command Prompt.
In my case Skype was using port 80, that I could stop by going into Skype's advanced settings.
Upvotes: 0
Reputation: 86
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
REPLACE BY
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
</Directory>
</VirtualHost>
#
Upvotes: 6
Reputation: 94642
The Put Online/ Offline
menu item has been made optional, and invisible by default, as it basically has no function anymore in WAMPServer 3.
In WAMPServer 3 there is now a Virtual Hosts defined for localhost
and that takes presidence over the localhost defined in the httpd.conf
file.
If you look at the new menus structure there is a new menu item in the Apache menu called httpd-vhosts.conf
see below
This will load the Apache Virtual Host definition file into your defautl editor. It should look like this :
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
To allow access from specific machines on your network add for example
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.1.100
Require ip 192.168.1.101
</Directory>
</VirtualHost>
Or to allow all the PC's in your network access add just the first 3 of the 4 quartiles to the require
and any ip will be allowed within that subnet
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.1
</Directory>
</VirtualHost>
If you do not see this menus then you will need to upgrade to WAMPServer 3.0.5 from here https://sourceforge.net/projects/wampserver/files/WampServer%203/WampServer%203.0.0/Updates/wampserver3_x86_x64_update3.0.5.exe/download It is a simple upgrade over WAMPServer 3.0.4
Alternatively, just edit the \wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.conf
file directly.
Dont forget to restart Apache after changing this file.
Upvotes: 2