Access Forbidden
Posted by: Bogomip (171.250.231.---)
Date: January 30, 2016 10:25AM

Dear all,

I am getting a 'forbidden' error when I try to access my website locally using wamp server. This all worked fine until I upgraded to Windows 10.

I have disabled IIS and reconfigured the hosts file as was specified in the troubleshooting post. I have also checked my httpd.conf (to the best of my ability as it is poorly formatted for some reason - no line breaks!) and all seems to be as is recommended. Phpmymadmin works, its just my site that doesn't, and there is no reason my site should deny access to anybody.

I appreciate any help! The internet has lots of support for Windows 8 users but these dont seem to apply to Windows 10.

Thanks,
Alex



INFORMATION FOLLOWS!



Windows 10 64 bit
Wampserver version 2.5 (probably)
Apache : 2.4.9
MySQL : 5.6.17
PHP : 5.5.12
PHPMyAdmin : 4.1.14
SqlBuddy : 1.3.3
XDebug : 2.2.5
The button is GREEN

Windows event viewer has some errors for apache (none for mysql) but none relate to todays attempts to get it working... the ones from previous attempts are:

>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80 .
>>> AH00015: Unable to open logs .
>>> AH00451: no listening sockets available, shutting down

But as I have said, since I made some of the recommended changes today, I have no more errors.

The active lines in hosts are:

127.0.0.1 localhost
::1 localhost

I do not have access to the homepage (/), but I do have access to the phpmyadmin (/phpmyadmin/).

The EXACT error is:

Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80

I use AVG antivirus. Windows 10 firewall is running.

The full path to WAMP is C:\Program Files (x86)\wamp.

Options: ReplyQuote
Re: Access Forbidden
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 30, 2016 01:21PM

Hi

First it is recommended not to install WAMPServer into the Program Files folder.
I would suggest re-installing into the root folder of any drive C: D: etc but never Program Files


Unfortunately IIS comes with all sorts of other softwaer that also uses port 80, so when removeing IIS also look for these other applications

1. IIS
2. Web Deploy 2.0 (Web Deployment Agent Service)
3. MS Sql Server Reporting service.
4. BranchCache ( Windows 8.1 )
5. SQL Server VSS Writer

No line breaks in httpd.conf
This is because WAMPServer 2.5 was released with the httpd.conf containing UNIX line endings ( a small oversite) So I would recommend installing NOTEPAD++ as this editor understands unix line endings where notepad does not. Having edited httpd.conf with notepad will probably have corrupted httpd.conf


Also there is a new vesion of WAMPServer V3 available here on sourceforge [sourceforge.net]

If you are going to uninstall ans reinstall I would recommend moving to this version

Also when upgrading to WAMPServer 3 please read this post first Installing a new release of WAMPServer

---------------------------------------------------------------------------------------------
(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: Bogomip (171.250.231.---)
Date: February 02, 2016 01:52PM

Thanks so much for the reply, I installed wamp 3.0 in my base directory edited with NP++ and its all worked fine smiling smiley

Much appreciated!
Ta

Options: ReplyQuote


Sorry, only registered users may post in this forum.