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, |
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. |
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 |
just cd .. up a level and run
#> bin/apachectl start you must not be in the same dir as the apachectl!!! |
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? |
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" |
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. |