LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-25-2003, 10:52 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
appache servername


i tried to follow exactly what the help files said for apache as far as configuring my server name. its a little confusing. I'm using no-ip for my "dynamic dns partner".

here is what i interpret the server name to be according to the help
http://www.schrock.no-ip.info:80

here is the error I'm getting when i try to start the service

httpd failed. The error was: Starting httpd: Syntax error on line 323 of /etc/httpd/conf/httpd.conf:
The port number "http://www.schrock.no-ip.info:80" is outside the appropriate range (i.e., 1..65535).
[FAILED]

line no 323 says
ServerName http://www.schrock.no-ip.info:80


thanks for any advise,
AD
 
Old 02-25-2003, 11:28 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Try changing it to

ServerName www.schrock.no-ip.info

I don't think you have to specify port 80. Then do:

/etc/init.d/httpd restart

I think your problem was having the http:// before the server name.
 
Old 02-25-2003, 11:52 PM   #3
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
thanks, im getting a error after using your suggestion. when i restart the service by /etc/init.d/httpd restart. i do have the mod_ssl cryptography support for the apache web server installed on my red hat machine. should i have this installed i took a guess when i installed the apache web server.

here is the error

[joe@dhcp-487-17 joe]$ /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 116 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty
[FAILED]

thanks again,
AD
 
Old 02-25-2003, 11:56 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well that error is dealing with the ssl certificates. What you have to do is generate your digital certificates or comment out the lines dealing with ssl. If you just want to get the web server running comment out the lines. You won't have ssl but port 80 should work. Then find a nice little tutorial on creating digital certificates. I got mine out of a book.
 
Old 02-25-2003, 11:56 PM   #5
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
ok never mind i uninstalled the ssl and there is a new error

[joe@dhcp-487-17 joe]$ /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
[FAILED]
[joe@dhcp-487-17 joe]$
 
Old 02-25-2003, 11:58 PM   #6
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
huhhh never mind su
 
Old 02-26-2003, 12:18 AM   #7
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
OK I'm still getting errors but with no details to them when i restart apache. in the file:/var/log/httpd/error_log this is what it says

[Tue Feb 25 22:09:22 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "dhcp-487-17"
Configuration Failed

anyone have any ideas I'm hittin the sack ill give it some more sweat tomorrow

thanks,
AD
 
Old 02-26-2003, 09:43 AM   #8
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
http://www.linuxquestions.org/questi...d+IPv4+address

http://www.linuxquestions.org/questi...d+IPv4+address

http://www.linuxquestions.org/questi...d+IPv4+address

well ill give these a try when i get home hopefully one of them will work
 
Old 02-26-2003, 10:28 PM   #9
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
this worked except my sendmail is delayed teribly long when booting up.

http://www.linuxquestions.org/questi...d+IPv4+address
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache ServerName Matir Linux - Software 2 08-12-2005 09:18 PM
Upgrading Appache nyumedic2000 Linux - Newbie 1 03-19-2005 03:15 PM
Appache indexing NewtonIX Linux - Software 7 08-21-2004 08:46 PM
SSI and appache jax8 Linux - Newbie 1 03-23-2004 03:15 AM
apache servername agfaread Linux - Newbie 0 07-01-2003 01:47 AM


All times are GMT -5. The time now is 01:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration