今天在Linux服務器上啟動apache,結果發現啟動不起來,打開log看,如下:
[Thu Apr 18 16:55:42 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 18 16:55:42 2013] [notice] Digest: done
[Thu Apr 18 16:55:43 2013] [warn] pid file /home/xxxx/xxxx/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Apr 18 16:55:43 2013] [error] (13)Permission denied: could not create /home/xxxx/xxxx/logs/httpd.pid
[Thu Apr 18 16:55:43 2013] [error] httpd: could not log pid to file /home/xxxx/xxxx/logs/httpd.pid
大致的意思是,pid文件權限不夠,那就給他權限,最后,apache正常啟動。原因待查。