Wordpress phpMyAdmin错误403
我在一年多前安装了phpMyAdmin。 几个月前我安装了WordPress 当时,我跟随添加虚拟主机: 现在,当我尝试使用该URL访问phpMyAdmin时,我有: 403禁止错误 您没有在此服务器上访问/phpmyadmin/的权限 在/etc/apache2/users/myuser.conf中:Wordpress phpMyAdmin错误403,wordpress,apache,phpmyadmin,localhost,virtualhost,Wordpress,Apache,Phpmyadmin,Localhost,Virtualhost,我在一年多前安装了phpMyAdmin。 几个月前我安装了WordPress 当时,我跟随添加虚拟主机: 现在,当我尝试使用该URL访问phpMyAdmin时,我有: 403禁止错误 您没有在此服务器上访问/phpmyadmin/的权限 在/etc/apache2/users/myuser.conf中: <Directory "/Users/myuser/Sites/"> AllowOverride All Options Indexes MultiViews FollowSymLi
<Directory "/Users/myuser/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>
Include /Users/myuser/Sites/httpd-vhosts.conf
然后在我的httpd-vhosts.conf中:
<Directory "/Users/myuser/Sites">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>
<VirtualHost _default_:80>
ServerName localhost
DocumentRoot /Library/WebServer/Documents
</VirtualHost>
<VirtualHost *:80>
ServerName site1.local
DocumentRoot "/Users/myuser/Sites/site1"
</VirtualHost>
所以我无法访问phpMyAdmin和localhost/Sites/site1,我想这是我访问WordPress网站的本地URL
答案是试试这里:我要试试。谢谢