2015-04-06 123 views
0

我希望在名爲app_user的用戶下運行apache。爲此,我在httpd.conf文件中更改了以下內容Apache更改默認用戶

User app_user 
Group app_user 

app_user是此服務器上的有效用戶和組。

app_user具有寫入/ var/log/httpd目錄的正確權限。

現在,當我啓動Apache時,它給了我這個錯誤。

[[email protected] conf]$ service httpd start 
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName 
(13)Permission denied: make_sock: could not bind to address [::]:80 
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 
no listening sockets available, shutting down 
Unable to open logs 
                  [FAILED] 

對此感謝一些幫助。

回答

1

只有'root'用戶可以將連接綁定到小於1024的端口。有關更多信息,請參閱here。將apache配置爲使用different端口號(該端口號高於1024)或sudo作爲root用戶。以後的選項不建議。