LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-29-2002, 12:07 AM   #1
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Rep: Reputation: 15
Angry apache


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



Jakub.

Last edited by jakublgz; 05-29-2002 at 12:09 AM.
 
Old 05-29-2002, 12:56 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Herm I'm not sure but I don't think you should assign a port at this place

try 10.1.1.10 (without the :80)

there are another place in config where you can set your port.
 
Old 05-29-2002, 01:27 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
make sure you read all the logs to get additional feedback, and look through generic httpd.conf provided with installation
 
Old 05-29-2002, 05:01 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
looks like you deleted a bit... it should look like this...

#
# Server name comments here...
#
ServerName the.name.of.my.server:80

Of course you can have your servers IP address here if there is no DNS available.
 
Old 05-29-2002, 01:20 PM   #5
glalu
LQ Newbie
 
Registered: May 2002
Location: Trivadrum/Kerala/India
Distribution: RedHat 7.2
Posts: 13

Rep: Reputation: 0
The problem may be u forgot to enter the ServerName key jsut before the IP Adresss just try it , hope this works for u
 
Old 05-29-2002, 03:46 PM   #6
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
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

I don't know what to do with it now...

Please help me out. Thank you.

Jakub,
 
Old 05-29-2002, 07:20 PM   #7
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
http://www.rocketry.org/~tim/geek_stuff/mysql.php
 
Old 05-29-2002, 08:14 PM   #8
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Arrow

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


:<<<
Hope to hear something from you guys.

Jakub.
 
Old 05-29-2002, 08:39 PM   #9
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
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 ?

Thank you.

Jakub

Last edited by jakublgz; 05-29-2002 at 08:53 PM.
 
Old 05-30-2002, 05:12 AM   #10
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Quote:
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?
 
Old 05-31-2002, 08:54 AM   #11
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Exclamation

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

Jakub.

Hello again...
fuser -vn tcp 80 nothing showed up
ps -ef | grep httpd > nothing showed up
netstat tcp 0 0 *:http *:* LISTEN
lsof -i | grep httpd >>>nothing

well I don't know what to do next with it... DO I HAVE TO COMPILE new kernel ?

Thank you.

Jakub

Last edited by jakublgz; 05-31-2002 at 10:41 AM.
 
Old 01-01-2003, 11:55 PM   #12
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 385

Rep: Reputation: 32
did u try your firewall settings!??

as root type: 'setup' and go into firewall options...
also check ur router if u got one ;-)
 
Old 01-02-2003, 11:09 PM   #13
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Lightbulb

I solved a problem long time ago. I dont use no redhat. I prefer slackware. I will never go back to rh. )
thank you.
bye
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration