我正在使用Arch Linux 3.0-ARCH。我已將/etc/httpd/conf/httpd.conf
中的DocumentRoot
從/srv/http
更改爲/var/www
。然後我發出這樣的命令:編輯配置文件並重新啓動後,Apache搜索舊DocumentRoot
% sudo /etc/rc.d/httpd restart
:: Restarting Apache Web Server [BUSY]
Warning: DocumentRoot [/srv/http] does not exist
雖然如果我將文件複製到/var/www
,它們可以在本地主機上看到。 我已經設置了正確的權限 - /var/www
歸根,它的組是www
。我和Apache運行的http
用戶都是該組的成員。目錄上的權限是775
。
可能你有其他的.conf文件嗎?或者多個VirtualHost,其中一個包含舊的DocumentRoot路徑?您可能已經檢查過那些,但我認爲這並不妨礙問。 :) – Viccari