2015-04-06 119 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用户。以后的选项不建议。