Access forbidden
Posted by: MacNala (---.15-1.cable.virginm.net)
Date: July 31, 2016 04:52PM

I have installed Wampserver 3.0.4 successfully and have tested some simple PHP files.
I want to be able to view these files from different devices all on my LAN.
I have viewed many pages of hints and tips as to how to allow access to the Wampserver installation files.
Some of these do not appear to refer to the my versions of Apache, PHP or MySQL.
This has resulted in my being unable to get the access correct.

I run all my PCs with Windows 10 64bit.
They are all connected using a single router which has allocated static IPs to all the devices including the Wi-Fi devices I want to test access to the files from

Wampserver 3.0.4 32 bit.
Icon is green and has been put online.
I am using NetBeans IDE 8.1 to control my files.
I have added Virtual Hosts for the project PHPtesting which is in the path C:/wamp/www/phptesting.
I found that the access from another PC on the LAN was getting the response

Forbidden
You don't have permission to access /phptesting/adduser.php on this server.

--------------------------------------------------------------------------------

Apache/2.4.18 (Win32) PHP/5.6.19 Server at vbxwa2 Port 80

I also noted that the Apache error log had the entry

[Sun Jul 31 11:38:29.242177 2016] [authz_core:error] [pid 7828:tid 1188] [client 192.168.1.3:60105] AH01630: client denied by server configuration: C:/wamp/www/phptesting/adduser.php

and the Apache access log had the entry

192.168.1.3 - - [31/Jul/2016:11:38:29 +0100] "GET /phptesting/adduser.php HTTP/1.1" 403 313

I can provide the current httpd.conf, httpd-vhosts.conf and php.ini which I guess are too big to include here.

Win 10 Prof 64 bit
in a Windows 10 Prof virtual machine 64 bit

WAMP server v 3.0.6 64 bit
Apache v 2.4.23
PHP v 5.6.27
MySQL v 5.7.16
WAMP manager is GREEN
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: Access forbidden
Posted by: RiggsFolly (Moderator)
Date: July 31, 2016 07:03PM

Hi

Can I suggest you read [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Access forbidden
Posted by: MacNala (---.15-1.cable.virginm.net)
Date: July 31, 2016 10:02PM

I have read the suggested item again and think I have modified all the related files:
httpd.conf, httpd-vhosts.conf, HOSTS, and php.ini
to conform with its requirements
I have loaded them into dropbox you can check
[www.dropbox.com]
to see if I have done it correctly.
I am still getting the forbidden page if I try to access the phptesting server from another PC on the same LAN.
What can I do next?

Win 10 Prof 64 bit
in a Windows 10 Prof virtual machine 64 bit

WAMP server v 3.0.6 64 bit
Apache v 2.4.23
PHP v 5.6.27
MySQL v 5.7.16
WAMP manager is GREEN
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: Access forbidden
Posted by: RiggsFolly (Moderator)
Date: August 01, 2016 02:24AM

Try using the Apache 2.4 syntax instead of the Apache 2.2 syntax

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Access forbidden
Posted by: MacNala (---.15-1.cable.virginm.net)
Date: August 01, 2016 11:00AM

I know you are forcing me to read the manuals but could you be a little more specific which syntax for what.

Win 10 Prof 64 bit
in a Windows 10 Prof virtual machine 64 bit

WAMP server v 3.0.6 64 bit
Apache v 2.4.23
PHP v 5.6.27
MySQL v 5.7.16
WAMP manager is GREEN
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: Access forbidden
Posted by: RiggsFolly (Moderator)
Date: August 01, 2016 02:48PM

Yes

Use Require and not Allow

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.