Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
I just compiled a new apache server on my redhat 7.1. All the process went just fine. Now when I'm trying to start the service I'm gettting the folowing error:
highperformance-std.conf magic ssl-std.conf
[root@localhost httpd]# /etc/rc.d/init.d/httpd start
Syntax error on line 289 of /etc/httpd/httpd.conf:
Invalid command '10.1.1.10:80', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/rc.d/init.d/httpd start: httpd could not be started
Well, I went to httpd.conf and instead of ServerName line added ip address of my local server. Why is it not starting I don't understand. Can anyone explain what should I do next.
Thats the part of my httpd.conf file...
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
10.1.1.10:80
Hello.
Thank you for all the anserws. Now I'm getting a diffrent error.
[root@localhost httpd]# /etc/rc.d/init.d/httpd start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
/etc/rc.d/init.d/httpd start: httpd could not be started
Hello, I read that page... there is nathing about my problem... and I went through installation process just as is written down there. ;<<< I don't know what to do with it....
It still does the same problem
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
/etc/init.d/httpd restart: httpd could not be started
Well, I just changed the port # on which apache should listen from 80 to 10000 and httpd started with no any problems... I think that it is sort of the socket is locked or something like that. I am really confused now... can someone please help me.... I was running the old version of apache before... Meaby thats what couses all trouble. I did get rid of all apache rpmS from before...
Well, when I placed port 80 back on again it still shows me that problem again. Can someone please help me out ?
Originally posted by jakublgz I was running the old version of apache before... Meaby thats what couses all trouble. I did get rid of all apache rpmS from before...
Bingo.
The RPM are for installing the package not running it. Your old version of apache is still runnning and is using port 80. You need to stop it from starting. check in inetd.conf or xinetd.conf and the rc.d for start scripts. perhaps you have it in rc.local or boot.local?
hello,
I'm sorry for confusing you by saying "get rid of rpmS". I meant I did uninstall old apache using command rpm -e apache 1.3*****.
Old apache does not exist on my system anymore. New version of it was compiled and installed. Now I can turn it on only on diffrent ports than 80. When I did command
ps -ef | grep httpd
Did not show any httpd process running at hat time....I also scaned port 80 if any aplication is using it currently .... nothing showed up.
[root@localhost httpd]# fuser -vn tcp 80
[root@localhost httpd]#
Well, I don't know what to do with this problem anymore. Can someone please help me ?
this is the error_log
[Sun May 19 08:53:23 2002] [crit] (98)Address already in use: make_sock: could not bind to address 10.1.1.10 port 80
[Tue May 21 19:29:21 2002] [crit] (98)Address already in use: make_sock: could not bind to address 10.1.1.10 port 80
[Wed May 22 14:11:17 2002] [crit] (98)Address already in use: make_sock: could not bind to address 10.1.1.10 port 80
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.