phpMyAdmin错误403

时间:2015-09-30 09:11:38

标签: wordpress apache phpmyadmin localhost virtualhost

我在一年前安装了phpMyAdmin。 几个月前我安装了WordPress。

那时,我跟着this tutorial添加虚拟主机:

现在,当我尝试使用该网址http://localhost/phpmyadmin/访问phpMyAdmin时,我有:

  

403 Forbiden错误   您无权访问此服务器上的/ phpmyadmin /。

/etc/apache2/users/myuser.conf中的

<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。

答案是here

0 个答案:

没有答案