Jump to content

Archived

This topic is now archived and is closed to further replies.

WormTongue

Apache 2.0.46 + RH9 startup error

Recommended Posts

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 down

Unable 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.

Share this post


Link to post
Share on other sites
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 down

Unable 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.