WormTongue Posted June 2, 2003 Share Posted June 2, 2003 I\'m am getting this error... (13)Permission Denied: make_sock: cound not bind to address 0.0.0.0:80 no listening sockets availalbe, shutting downUnable to open logs Now, i am not root when i start the webserver, but when i become root and run it, everything works fine. So, my guess is that i don\'t have permission to open up port 80. Does anybody know how to fix this error? Someone told me that you can\'t open port 80 when you aren\'t root, so you have to run apache as root. This is really bad because i do not want to run apache as root, since that is a major security problem. Thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/ Share on other sites More sharing options...
shivabharat Posted June 3, 2003 Share Posted June 3, 2003 Try this http://www.phpfreaks.com/forums/viewtopic.php?t=3796 Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/#findComment-1810 Share on other sites More sharing options...
gizmola Posted June 3, 2003 Share Posted June 3, 2003 I\'m am getting this error... (13)Permission Denied: make_sock: cound not bind to address 0.0.0.0:80 no listening sockets availalbe, shutting downUnable to open logs Now, i am not root when i start the webserver, but when i become root and run it, everything works fine. So, my guess is that i don\'t have permission to open up port 80. Does anybody know how to fix this error? Someone told me that you can\'t open port 80 when you aren\'t root, so you have to run apache as root. This is really bad because i do not want to run apache as root, since that is a major security problem. Thanks for your help. Although you start Apache as root, it immediately forks children as the user you specify in the apache http.conf file. This is most typically set to be nobody. Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/#findComment-1811 Share on other sites More sharing options...
WormTongue Posted June 3, 2003 Author Share Posted June 3, 2003 If i do start the webserver as root, and even though the child process are set to nobody, won\'t the parent stay as root? So, even if somebody hacks into my webserver, they can still get to the parent and evenutally get into my system because the parent is root. Is my thinking correct? Thanks for the help. I set it up on a port greater than 1024 and everything worked fine. Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/#findComment-1819 Share on other sites More sharing options...
shivabharat Posted June 4, 2003 Share Posted June 4, 2003 Port 80 is used by HTTP and u cant assign it to any other application. That why its dont work for u. The command I showed u will show u the port that is being used netstat -AN Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/#findComment-1822 Share on other sites More sharing options...
WormTongue Posted June 4, 2003 Author Share Posted June 4, 2003 I know that port 80 is HTTP, so i set it up at 1500 since i am not root. Now, is it really safe to startup apache as root because of the child processes? Then i can get to port 80 and everything works smoothly? Does anybody have any references to the potential security issues with apache? Quote Link to comment https://forums.phpfreaks.com/topic/539-apache-2046-rh9-startup-error/#findComment-1833 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.