Since port 80 was occupied when I installed wampserver, I changed the default port to 8080. Then the problem came. When I logged in to phpmyadmin, I always got the message "You don't have permission to access /phpmyadmin/ on this server." said that I do not have permission to access phpmyadmin.
Port 8080 is used for WWW proxy service, which can realize web browsing. Often when accessing a website or using a proxy server, the port number ":8080" will be added.
The reason for not having permission to access phpmyadmin: It is because phpmyadmin prohibits external network access.
Solution:
Open the httpd.conf file,
Change
# onlineoffline tag - don’t remove Order Deny,Allow Deny from all Allow from 127.0.0.1
to
# onlineoffline tag - don’t remove Order Allow,Deny Allow from all
Open XXX/ wamp/alias/phpmyadmin.conf file,
change
<Directory "F:/Software/wamp/alias/phpmyadmin3.5.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory>
to
<Directory "F:/Software/wamp/apps/phpmyadmin3.5.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all </Directory>
, save it, and then restart all Wamp services.
Recommended learning: phpmyadmin tutorial
The above is the detailed content of What is the reason for not having permission to access phpmyadmin?. For more information, please follow other related articles on the PHP Chinese website!