LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2008, 05:45 PM   #1
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Rep: Reputation: 0
Apache Test page isn't working


Hi,

first post for me,

when I open a browser I do not get the Apache 2 Test Page
powered by CentOS. I have taken a look through my httpd.conf file but cannot work out how i get this working.

I installed Contos 5.2 and included apache, so I can start the httpd service OK.
 
Old 11-03-2008, 06:42 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Are you sure that apache is running at all? Did you use localhost:80 as the address?
 
Old 11-03-2008, 07:05 PM   #3
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
No apache test page :(

thankyou for the fast reply

yes my apache starts up OK and I have reloaded it/restarted it many times after editing the httpd.conf file.

from what i can see I have added port 80 for my servers Ip address. pls see below


# redirections work in a sensible way.
#
ServerName xx.xx.xx:80 <-- -IP HIDDEN

#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off


I have the following for servername and Serveradmin

ServerAdmin root@hostname.domainname.co.nz <-- DETAILS HIDDEN

#
# 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.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName 172.xx.xx.xx:80 <-- -IP HIDDEN
 
Old 11-03-2008, 07:39 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Hmm, so are you trying to access from the server or from a client? If the latter, you may have port 80 closed.
 
Old 11-03-2008, 08:14 PM   #5
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
well i have made some more changes to the httpd.conf file but still no joy.

I've changed it to listen on local port 80 -

Listen 127.0.0.1:80
#
# Dynamic Shared Object (DSO) Support

and changed the Serername to localhost

# redirections work in a sensible way.
#
ServerName localhost:80


when i run a netstat -na

# netstat -na | grep 80
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN
udp 0 0 fe80::20d:60ff:fe9a:123 :::*
udp 0 0 fe80::20d:60ff:fe9a:123 :::*
unix 2 [ ] DGRAM 1680 @/org/kernel/udev/udevd
[root@wklmon02 conf]#


this doesn't look as good as one of my other servers, this has lots of port 80's in TIME_WAIT

netstat -na | grep 80
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63948 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63949 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63950 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63951 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63952 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63980 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63981 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63982 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63978 TIME_WAIT
tcp 0 0 ::ffff:172.x0.xx.6:80 ::ffff:202.xx.x9.46:63979 TIME_WAIT
unix 3 [ ] STREAM CONNECTED 5880 @/var/run/hald/dbus-jvBMjSjvrA
unix 2 [ ] DGRAM 5801
unix 2 [ ] DGRAM 4809
[root@metmanl1 logs]#

i only want to open a firefox browser,put the IP of my server in and hey presto - apache 2 config page for centos will appear

it does it on anotherserver when i start httpd service, and i dont need it running on that one (
 
Old 11-03-2008, 10:22 PM   #6
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
ok I have it working now, thanks for the reply, IPtables was only allowing port 22.

so i will crack on with configuring bigsister - which is a daunting task
 
  


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 test page carlos22 Linux - Newbie 10 01-14-2007 12:53 PM
Getting Apache Test Page ApachePadowan Linux - Software 4 04-20-2005 10:28 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM
Sorry, that Apache test page is at it again. Hal Linux - Newbie 4 10-26-2003 06:53 PM
Apache test page...Now what? Hal Linux - Newbie 6 10-24-2003 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration