Pages: 12Next
Current Page: 1 of 2
Forbidden You don't have permission to access / on this server.
Posted by: tjzorder (198.144.116.---)
Date: April 21, 2013 12:14PM

I am having "Forbidden

You don't have permission to access / on this server." when i am trying to open open local host... i have xp with 32 bit system....

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: April 22, 2013 10:37AM

Does it work when you use 127.0.0.1/ as the address instead of localhost??


If so do this:

Edit c:\windows\system32\drivers\etc\hosts

make sure there is a line like this in the file

127.0.0.1 localhost



HOW TO EDIT THE HOSTS FILE
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: webbydu (---.jetstream.xtra.co.nz)
Date: April 26, 2013 09:14AM

This line of code 127.0.0.1 localhost is there in this file (the hosts file) -
I can see it when I use address 127.0.0.1 but not when I use localhost

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: April 26, 2013 10:49AM

Try this:

edit httpd.conf using the wampmanager -> Apache -> httpd.conf link

Find
Listen 80

and chage to

Listen 0.0.0.0:80

Does that solve it

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: banuka.vikas (115.240.35.---)
Date: April 29, 2013 03:22PM

tjzorder Wrote:
-------------------------------------------------------
> I am having "Forbidden
>
> You don't have permission to access / on this
> server." when i am trying to open php myadmin... i have windows7 with 32 bit system....

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: April 29, 2013 03:46PM

Can you clarify: Are you trying to allow access to phpmyadmin from any external ip address i.e. the internet ??

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: newdaydre (---.telwestnet.net)
Date: April 30, 2013 09:18PM

Thank you. I was having this problem too and this fixed it for me. Found my way here from a youtube video that had poor advice about making other changes to httpd.conf that would open up the server to any IP address. Another viewer commented about the wampserver forum and I'm glad I followed the advice. Thanks again.

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: cybermama (---.albq.qwest.net)
Date: December 12, 2013 03:25AM

I, too, am having this problem. Win 7/64 bit, Apache 2.4.4, PHP 5.4.12, MySQL 5.6.12. WAMP icon is green and all services appear to be running.

Using the XAMP icon, I can get to localhost and phpMyAdmin. I cannot open a local file in the browser (Firefox 25.01, though. I get this message:
403 Forbidden: You don't have permission to access /C:/Users/Sharon/My Documents/MM_php/CH01/sayHello.php on this server

In access.log I get these messages: (Showing all info only on the 1st line until it changed)
127.0.0.1 - - [11/Dec/2013:19:06:04 -0700] "GET /C:%5CUsers%5CSharon%5CMy%20Documents%5CMM_php%5CCH01%5CsayHello.php HTTP/1.1" 404 251
"GET /C:/Users/Sharon/My%20Documents/MM_php/CH01/sayHello.php HTTP/1.1" 403 255
127.0.0.1 - - [11/Dec/2013:19:10:07 -0700] "GET / HTTP/1.1" 200 4167
"GET /index.php?img=favicon HTTP/1.1" 200 1429
"GET /index.php?img=gifLogo HTTP/1.1" 200 4549
"GET /index.php?img=pngPlugin HTTP/1.1" 200 548
"GET /index.php?img=pngWrench HTTP/1.1" 200 741
"GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
"GET /index.php?img=favicon HTTP/1.1" 200 1429

On the apache_error.log file I get:
[Wed Dec 11 19:06:39.402999 2013] [core:error] [pid 4816:tid 1484] (20023)The given path was above the root path: [client 127.0.0.1:50338] AH00127: Cannot map GET /C:/Users/Sharon/My%20Documents/MM_php/CH01/sayHello.php HTTP/1.1 to file

The php_error.log is empty.

Any thoughts? I've been looking at this forum for quite awhile and cannot get my first little php script to run at all! HELP!

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 12, 2013 10:59AM

Put your code in a folder under the \wamp\www folder

So for example

C:\wamp\www\project1\sayhello.php


Then in the browser use this address to run it 'localhost/project1/sayhello.php'

---------------------------------------------------------------------------------------------
(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: Forbidden You don't have permission to access / on this server.
Posted by: cybermama (---.albq.qwest.net)
Date: December 12, 2013 08:35PM

Thanks! It's working now. :-)

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: saxoon (---.228.20.172.dynamic.altibox.net)
Date: December 13, 2013 10:07AM

Hi, i have a small PHP form running, if a use a hard coded PHP scipt link in my action (html) it works fine, if i try to use the PHP self command in my HTML, i gives me a error like Forbidden You dont have acces to / on this server... cant figure out why .....

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 13, 2013 10:19AM

Hi saxoon


Please answer these questions and then post the code you are having problems with


- [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: Forbidden You don't have permission to access / on this server.
Posted by: saxoon (---.228.20.172.dynamic.altibox.net)
Date: December 13, 2013 10:36AM

ok.
wampserver 2.4
PHP 5.4.12
Wnn 7 home
mysql 5-6-12
apache 2.4.4

this line is working and runs the script fine.

<form enctype="multipart/form-data" method="post" action="file_upload_script.php" class="form">

this is not:
<form enctype="multipart/form-data" method="post" action="<?php $_SERVER['PHP_SELF']; ?>" class="form">

i get this

Forbidden

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

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 13, 2013 02:05PM

<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" class="form">

---------------------------------------------------------------------------------------------
(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: Forbidden You don't have permission to access / on this server.
Posted by: saxoon (---.228.20.172.dynamic.altibox.net)
Date: December 13, 2013 03:23PM

No still the same.. : You don't have permission to access /uploader/< on this server. !!! uploader is the name on the folder that contains the files. Why does it wants to open \< ???

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: saxoon (---.228.20.172.dynamic.altibox.net)
Date: December 14, 2013 12:10PM

anything on this... i have tried to change permissions in httd.conf... but still nothing. I have re-installed original settings... nothing... sad smiley ??? HELP!!

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: mjd1953 (---.cumberland.org)
Date: December 17, 2013 12:07AM

I have this issue as well... Funny thing is (actually, not so funny) this thing has been working fine using 'localhost' for two or three years now, and all the sudden, I don't have permission. Yes, 127.0.0.1 works, and I checked the hosts file (it had the correct entry) and made the suggested change to the httpd.conf. I'm only using this locally as a development machine. I have not updated/upgraded wamp in well over a year. I'm running Windows Vista, 64-bit. Apache 2.2.22. PHP 5.4.3. and MySQL 5.5.24.

What gives? Windows has done the automatic update thing recently, but that's the only change that might relate to this problem. It's driving me nuts...

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 17, 2013 10:59AM

When you say 'Yes 127.0.0.1 works' Do you mean that using 'http://127.0.0.1' will run browser to the wamp home page?


If so, this could be a IPV6 issue.

Check httpd.conf and anywhere you see

Allow from localhost

Make sure it says

Allow from localhost 127.0.0.1 ::1


You will also have to check the c:\wamp\alias\ all 3 .conf files in here and do the same thing.
Also check any VHOST definitions you may have.


It sounds like something has turned on IPV6 on your machine and the loopback i.e. the equivalent of 127.0.0.1 in IPV6 is '::1', so you just need to add this to the Apache security syntax so you are allowed to access Apache from an IPV6 address.

---------------------------------------------------------------------------------------------
(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: Forbidden You don't have permission to access / on this server.
Posted by: mjd1953 (---.cumberland.org)
Date: December 18, 2013 05:06PM

Outstanding! That did the trick. Now, to figure out how IPv6 got turned on...

Options: ReplyQuote
Re: Forbidden You don't have permission to access / on this server.
Posted by: rkevinburton (---.sonicfoundry.com)
Date: December 18, 2013 09:22PM

I was only able to get it to work by adding

Require all granted

Is there a way to avoid opening it up like this?

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.