我的操作系統是Ubuntu 12.04,我已經分別安裝了Apache,Php和Mysql。我從來沒有遇到過問題,但在Ubuntu更新後,當我嘗試訪問我的Web服務器上的一個PHP文件時,總是會出現「404 Not Found」錯誤。Apache環境變量錯誤(Ubuntu)
當我寫我的控制檯上 「的Apache2 -S」 我得到這個:
[Sat Feb 22 16:15:16.983766 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Sat Feb 22 16:15:16.983871 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Feb 22 16:15:16.983914 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Feb 22 16:15:16.983936 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Feb 22 16:15:16.983966 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.987930 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Sat Feb 22 16:15:16.988259 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988433 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988456 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 75 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
誰能幫助我嗎?
我不知道,謝謝。我的日誌說:AH00094:命令行:'/ usr/sbin/apache2'...我真的不知道問題是什麼,自2周前我一直在努力。沒有PHP錯誤。只是404錯誤。在這個Ubuntu更新之前,一切正常。 –
嗯,我會建議你刪除所有的堆棧,然後全新安裝。這裏有一個很好的指南http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-13.04-lamp – carousel