LinuxQuestions.org
Visit Jeremy's Blog.
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 05-25-2005, 09:33 AM   #1
acercatealaluz
LQ Newbie
 
Registered: May 2005
Posts: 6

Rep: Reputation: 0
Apache started but web site don't work


Hello

I have a website running under linux Fedora (i think... i'm a bit newbie and don`t know how to know the linux version) and Apache Version 1.3.33 (thanks to bathory for his help with this!).

My problem is that it was working "ok" this days, but sometimes Apache seemed to hang, and i must to restart it.

The problem that i have today is that the web page doesn't work now, and no matter that i restart Apache, or reboot the server (with sync, sync and rebooot)... the web page doesn't work any more...

However, the apache seems to be working ok!

To test it i use the two commands i read were for this test:

"pgrep httpd" and "service httpd status"

both commands gives me a list of PID that seems prove that Apache is working...

But unfortunatelly my web page doesn't work, and the navigator shows the default error of "Page can not be shown" (the error is a translation so perhaps the text doesn´t match exactlly).

I make Ping and it responses, and if i try to access a image file in some subdirectory of the site, the navigator shows me that image. That's the reason that makes me think it must be an Apache problem...


Any idea of what can be happenning?


Thanks in advance


AZ
 
Old 05-25-2005, 09:54 AM   #2
acercatealaluz
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Hello again,

I don't know if this information can help, but here it is:

- If i try to connect to the FTP to this server using the internet navigator it tells me that i haven't permissions over this folder, and that he couldn't estabilish a connection with the server, and it does't ask me for user nor password. Some days ago i was able to access ftp this way.

- However, if i try to access FTP using the FTP program WinScp, i can access ftp without problem.


Hope it can help to find what can be failing...


AZ
 
Old 05-25-2005, 11:59 AM   #3
kusdrowski
LQ Newbie
 
Registered: May 2005
Location: Elgin, IL
Distribution: RedHat 9.0, Mac OS X tiger
Posts: 1

Rep: Reputation: 0
apache not working

How did you set up your apache listeners? Are you use virtual hosts? Ping is really not a concern in this, just proving that you have network connectivity. Ftp is not a concern either because you are only connecting to the FTP daemon, not the Http daemon. Have you tried using "netstat -tln"? The output should list what tcp ports that your server is listening for connections. If you see an output line that looks like thel following
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

Then the http daemon has been started. The zeroes indicate that I have not binded apache to any specific IP address. This only indicates that httpd has been started. If you are trying to connect to your webserver from an outside network and the connection goes through a firewall, then you should try using telnet. Telnet will test tcp connectivity to any tcp service. If you want to test udp connections, you will have to find another program. The format for telnet is "#telnet X.X.X.X 80". The Xs represent either an IP address or FQDN. You can do this test from the local machine or another machine on the network. If connectivity is established, you should see output like so:

#telnet www.microsoft.com 80
Trying 207.46.199.30...
Connected to www.microsoft.com.
Escape character is '^]'.
Connection closed by foreign host.

If you do not, then the firewall is rejecting tcp port 80. It sounds like connectivity is not your issue though. It seems like your document root is not setup correctly. By default apache looks in the /var/www/html directory for an index.html page. If your home page is present and saved as index.html. You should then look at the permissions associated with the file or files. Hope this helps. Sorry for the long explanation.
 
  


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
*@!Z Yarg!!!! Web site in Apache not showing - think it is Permissions! ServerStorm Linux - Software 4 03-17-2005 11:17 AM
Apache-HTML can't open dir on web site comprookie2000 Linux - Networking 4 03-07-2005 03:40 PM
How To: Use Windows Partition for Default Apache 2 Web Site RavenLX Linux - Networking 0 01-18-2005 02:41 PM
web site doesn't work sujte Linux - General 3 05-28-2004 12:18 PM
Apache Web site updating? munzza Linux - Newbie 1 05-17-2002 03:51 PM


All times are GMT -5. The time now is 02:59 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