![重启apache2后出现错误](https://linux22.com/image/1054076/%E9%87%8D%E5%90%AFapache2%E5%90%8E%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我使用 ubuntu 14.04,
我删除了 phpmyadmin 然后再次安装 phpmyadmin
在 etc/apache2/apache2.conf 中我添加以下内容:
Include /etc/phpmyadmin/apache.conf
当我尝试使用下一个命令重新启动 apache 时:
sudo service apache2 restart
我收到此错误:
# sudo service apache2 restart
* Restarting web server apache2
[Wed Jan 20 23:32:22.925567 2016] [alias:warn] [pid 29418]
AH00671: The Alias directive in /etc/apache2/conf.d
/phpmyadmin.conf at line 3 will probably never
match because it overlaps an earlier Alias.
[ OK ]
答案1
去除
Include /etc/phpmyadmin/apache.conf
从/etc/apache2/apache2.conf
。
该软件包已经创建了要包含的phpmyadmin
符号链接。/etc/apache2/conf.d/phpmyadmin.conf
/etc/phpmyadmin/apache.conf
您收到此警告是因为您/etc/phpmyadmin/apache.conf
现在包含两次。