LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error while starting httpd (https://www.linuxquestions.org/questions/linux-software-2/error-while-starting-httpd-76393/)

freenet 07-27-2003 01:46 PM

error while starting httpd
 
hello,

I installed apache and when I launch it :

sh-2.05a$ /usr/sbin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(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

what this means ?

regards,

Mara 07-27-2003 02:08 PM

What user are you when you try to run Apache? Try as root, should be better.

Error about fully qualified domain name means you've not configured Apache properly. Find 'Server Name' line in httpd.conf and insert the proper name.

megaspaz 07-27-2003 02:10 PM

as far as the first part with the httpd: line, it looks like you need to make some modifications of the httpd.conf file. it's in your /"apache install directory"/conf/ directory.

apache also needs to be run as root. if invoking apache manually.

edit: mara types too damn fast! :mad: :p :D

OceanSurf 08-16-2003 10:59 AM

just cd .. up a level and run

#> bin/apachectl start

you must not be in the same dir as the apachectl!!!

e1000 05-02-2004 06:44 PM

isnt it suposed to be bad to run apache as root? I mean people complain about logging in as root to much, but screw that tiny infraction if you have a public service running with root privs, right?

is there any way to run apache on port 80 w/o having root privs?

nodger 05-03-2004 12:29 AM

i never work in anything BUT root mode.

as for your original question, freeNet, you can`t bind to 0.0.0.0 because thats an invalid IP. probably have to edit your httpd.conf and change the servername to localhost then edit your etc/hosts and add "127.0.0.1 localhost"

Mara 05-03-2004 05:46 PM

Usually you're not able to use port 80 without beeing root. Apache tries to change the user it runs as and it usually runs as user 'apache'.


All times are GMT -5. The time now is 01:10 PM.