2013-02-26 125 views
2

調用sudo service httpd restart我收到以下錯誤後:錯誤重啓httpd,而安裝phpMyAdmin

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實例運行

回答

0

<Directory></Directory>標籤使用,而不是小於號小於和大於單箭頭引號。比較微小的差異:<

只需比正常少,大於替換這些字符,你應該罰款:

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

謝謝,這解決了這一問題!好眼睛。 – 2013-02-26 05:37:06