Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

You don't have permission to access /test on this server. (no replies)

$
0
0
I am trying to set up a site using WAMPserver.


Windows Version: Windows Server 2016
WAMP version 3.1.3 (32 bit)
Apache version -2.4.33
PHP version - 7.2.4
MySQL version - 5.7.21

The WAMP icon is green

The following lines are in my host file:
127.0.0.1 localhost
::1 localhost

127.0.0.1 sitename
::1 sitename


When trying to access localhost from the server, I get the following error: Port used for the VirtualHost is not an Apache Listen port

I am able to access my site fine from the host server, but any other PC on the same network will get the following error message:


Forbidden

You don't have permission to access /sitename on this server.

Apache/2.4.33 (Win32) PHP/7.2.4 Server at XXX.XX.XX.XXX Port 80



I do have access to phpMyAdmin

The firewall is not turned on

Wamp is installed here: D:\wamp

Here are my virtual host definitions:

<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 sitename
DocumentRoot "d:/wamp/www/sitename"
<Directory "d:/wamp/www/sitename/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Is there any reason (obvious or otherwise) why this site would not be accessible from another machine?

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>