安装phpmyadmin时重启httpd时出错

时间:2013-02-26 03:45:14

标签: amazon-ec2 phpmyadmin apache

调用sudo service httpd restart后,我收到以下错误:

Starting httpd: Syntax error on line 2 of /etc/httpd/conf.d/phpmyadmin.conf:
Invalid command '\xe2\x80\xb9Directory', perhaps misspelled or defined by a module not included in the server configuration

这是我的/etc/httpd/conf.d/phpmyadmin.conf:

Alias /phpmyadmin /var/www/phpmyadmin
‹Directory "/var/www/phpmyadmin"›
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
#SSLRequireSSL
‹/Directory›

有什么想法?我的网站现在已经关闭,似乎无法找到问题。

FWIW这是在EC2 Linux实例上运行

1 个答案:

答案 0 :(得分:0)

您的<Directory></Directory>代码使用的是单箭头引号,而不是小于和大于符号。比较略有差异: <

只需用适当的小于和大于的字符替换这些字符,你应该没问题:

Alias /phpmyadmin /var/www/phpmyadmin
<Directory "/var/www/phpmyadmin">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    #SSLRequireSSL
</Directory>