I am a reasonably experienced IT person but am new to WAMP.
I have a brand-new PC running Win 10 Pro 64-bit at latest 1903 level. No other software installed.
My objective is to run the new machine as a web server. I have a fixed public IP address and have a domain name not yet pointed at my IP. On the new machine I want to use WordPress to build a site. I have forwarded incoming Port 80 to my new machine’s internal IP address. I have turned off Windows Firewall. I have a second PC on the same LAN as the web server.
I want the resulting webserver site to be always live on the internet – even as I build and test it locally on the server. That’s what I want!!
I have installed WAMP 3.1.9 64-bit and ensured all the C++ thingies are installed. I have used the default location C:/wamp and have installed WordPress 5.2.4 as recommended in c:/wamp/www/wordpress/
Wampserver starts fine with the green symbol. If I go to localhost I see the WampServer Config page as expected. If I go to localhost/wordpress I see the WP sample page.
So far, so good. I now go to another PC on the same LAN and enter the local IP address of the server PC. I get the well-known and very well reported message “you don’t have permission to access / on this server’. I read as many hits as I can on this forum but am not any wiser.
Clearly WAMP is setup by default to only work locally. Good. I understand that. But I want to change it.
I also attempted access from the internet using my fixed public IP address and get the same message (just as I expected)
Now to the problem. I did not set up a Virtual Host. This seems to be the answer to many of the instances of this error message. So, I ask – what is a Virtual Host? Nowhere can I find a simple explanation of this concept. I can see in the various config files, statements which appear to limit things to local access (DENY ALLOW etc etc) but I am reluctant to start changing any of these without understanding what it’s all about. I did try reading the official docs but lost the will!!
I would appreciate please a short explanation or a pointer to where I can find a longer one!!
Or even better, what to change to get access from other than local.
I did try adding a “virtual host” - see below for resulting conf file.
But it’s the open access that I really want to achieve. Just that.
I do well appreciate that this is not a problem with WAMP but rather my limited understanding!
Thank you.
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName testwp
DocumentRoot "c:/wamp/www/wordpress"
<Directory "c:/wamp/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
I have a brand-new PC running Win 10 Pro 64-bit at latest 1903 level. No other software installed.
My objective is to run the new machine as a web server. I have a fixed public IP address and have a domain name not yet pointed at my IP. On the new machine I want to use WordPress to build a site. I have forwarded incoming Port 80 to my new machine’s internal IP address. I have turned off Windows Firewall. I have a second PC on the same LAN as the web server.
I want the resulting webserver site to be always live on the internet – even as I build and test it locally on the server. That’s what I want!!
I have installed WAMP 3.1.9 64-bit and ensured all the C++ thingies are installed. I have used the default location C:/wamp and have installed WordPress 5.2.4 as recommended in c:/wamp/www/wordpress/
Wampserver starts fine with the green symbol. If I go to localhost I see the WampServer Config page as expected. If I go to localhost/wordpress I see the WP sample page.
So far, so good. I now go to another PC on the same LAN and enter the local IP address of the server PC. I get the well-known and very well reported message “you don’t have permission to access / on this server’. I read as many hits as I can on this forum but am not any wiser.
Clearly WAMP is setup by default to only work locally. Good. I understand that. But I want to change it.
I also attempted access from the internet using my fixed public IP address and get the same message (just as I expected)
Now to the problem. I did not set up a Virtual Host. This seems to be the answer to many of the instances of this error message. So, I ask – what is a Virtual Host? Nowhere can I find a simple explanation of this concept. I can see in the various config files, statements which appear to limit things to local access (DENY ALLOW etc etc) but I am reluctant to start changing any of these without understanding what it’s all about. I did try reading the official docs but lost the will!!
I would appreciate please a short explanation or a pointer to where I can find a longer one!!
Or even better, what to change to get access from other than local.
I did try adding a “virtual host” - see below for resulting conf file.
But it’s the open access that I really want to achieve. Just that.
I do well appreciate that this is not a problem with WAMP but rather my limited understanding!
Thank you.
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName testwp
DocumentRoot "c:/wamp/www/wordpress"
<Directory "c:/wamp/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>