可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
Hi Friends previously I am using XAMP Server but when I install joomla Templates it creates alots of error. Now I installed the WAMP, but the issues are: 1. I can access with 127.0.0.1, but I cant access with "localhost". 2 When i access phpmyadmin i get this error.
Forbidden You don't have permission to access /phpmyadmin/ on this server.
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.4.5/" # to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all # Allow from 127.0.0.1 # # by # # Order Allow,Deny # Allow from all #
After changing, it will look like this
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all
After this just restart Wamp
回答1:
Go to C:\wamp\alias
. Open the file phpmyadmin.conf
and change
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1
to
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all
problem solved
回答2:
Change httpd.conf file as follows:
from
AllowOverride none Require all denied
to
AllowOverride none Require all granted
回答3:
So none of the above stuff worked for me. Except this: edit httpd.conf,
find the line
Listen 80
and change to
listen 0.0.0.0:80
if you are running windows 8, its got something to do with using ipv6 instead of ipv4
回答4:
Go to C:\wamp\alias. Open the file phpmyadmin.conf and add
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from MACHINE_IP
回答5:
Change in following file \bin\apache\apache2.2.22\conf\httpd.conf
Replace Listen 80 with Listen 0.0.0.0:80
Replace
Options FollowSymLinks AllowOverride None Order deny,allow Deny from all
with
Options FollowSymLinks AllowOverride None Order deny,allow Allow from all
Replace
onlineoffline tag - don't remove
Order Deny,Allow Deny from all Allow from 127.0.0.1
with
onlineoffline tag - don't remove
Order Deny,Allow Allow from all Allow from 127.0.0.1
in \wamp\alias\phpmyadmin.conf replace
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1
with
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from ::1
Tested on windows localhost. Note : Please consider RigsFolly's comment also.
回答6:
For WampServer 2.2 with Apache 2.4.2 I ended up with:
Options Indexes FollowSymLinks MultiViews AllowOverride all Require local
回答7:
To solve this, I opened httpd.conf
and changed the following line:
Allow from 127.0.0.1
to:
Allow from 127.0.0.1 ::1
回答8:
I faced this problem
Forbidden You don't have permission to access /phpmyadmin/ on this server
Some help about this:
First check you installed a fresh wamp or replace the existing one. If it's fresh there is no problem, For done existing installation.
Follow these steps.
- Open your wamp\bin\mysql directory
- Check if in this folder there is another folder of mysql with different name, if exists delete it.
- enter to remain mysql folder and delete files with duplication.
- start your wamp server again. Wamp will be working.
回答9:
just add following line in wamp/alias/phpmyadmin.conf
Allow from ::1
so it will look something like this depending your phpmyadmin version.
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from ::1
回答10:
If its possible uninstall wamp then run installation as administrator then change you mysql.conf file like that
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all Allow from all
Not: Before I reinstall as admin the solution above didn't work for me
回答11:
Change the file content of c:\wamp\alias\phpmyadmin.conf
to the following.
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all
Here my WAMP installation is in the c:\wamp folder. Change it according to your installation.
Previously, it was like this:
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1
Restart your Apache server after making these changes.
回答12:
I had done below changes for new phpmyadmin4.0.4 in httpd.conf
file
AllowOverride none Require all granted
and phpmyadmin.conf
Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all
and restart my server.
回答13:
None of the above answers worked for me, or where unsafe (as some pointed out, using Allow from all
can make your files and data accessible to the outside world).
Open the c:\wamp\alias\phpmyadmin.conf
file and change
Allow from 127.0.0.1
to
Allow from 127.0.0.1 ::1
Explanation:
- On most computer systems, localhost resolves to the IP address 127.0.0.1, which is the most commonly used IPv4 loopback address, and to the IPv6 loopback address ::1 (source: https://en.wikipedia.org/wiki/Localhost)
The resolution of the name localhost into one or more IP addresses is configured by the following lines in the operating system's hosts file:
127.0.0.1 localhost ::1 localhost
to see your hosts file, go to c:\Windows\System32\drivers\etc\HOSTS
- notice the above lines are commented out with the note:
# localhost name resolution is handled within DNS itself.
On my machine, on Win7, I also noticed the following:
localhost\phpmyadmin
did not work on Chrome, but worked on IE11 127.0.0.1\phpmyadmin
worked on Chrome
回答14:
comment Require local from httpd.conf
"#Require local"
回答15:
In your apache config file (../bin/apachex.y.z/cong/httpd.conf)
Just change
...
...
"Require local" ===> "Require all granted"
This allows other pc's to access (to read) your web folder.