LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-11-2011, 11:12 AM   #1
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not


Hi! I can't get on the internet all of a sudden.

When I do " ps aux | grep apache " I can see that apache2 is running. But when I do the same thing for http or httpd there is nothing. I looked for this question in the forums but couldn't find it. I probably don't know just what to look for.

I tried all the different,

" sudo /usr/sbin/apachectl [start|stop|restart|etc] "

and I tried, " service httpd start " but that wasn't recognized.

I'm using the new Debian Squeeze, and was fooling around heavily with new software installations and modifications, and just noticed all of a sudden that I couldn't get on the internet - so I know I did something but don't know what.

I can plug in a thumb drive with a bitnami joomla stack on it and run, " ~/tmp/joomla-1.6.0-0/./ctlscript.sh start "
and that gets things going for the joomla stuff (apache, http, mysql, php), but that stuff is pretty self contained and does not effect the browser's attempt to reach the web.

What am I missing?
 
Old 02-11-2011, 11:16 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Can't get on the internet: apache is running, httpd is not
I don't see what apache and httpd have to do with your internet connection.
What did you changed/installed/uninstalled at your system, during "the heavily with software installations and modifications"
How are you connecting, is the card recognized, what is the output from ifconfig.
Can you ping?
...


Kind regards
 
Old 02-11-2011, 11:52 AM   #3
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not

Thanks for the help!

I'm using DSL and an ethernet card, and that stuff is working because upgrades and downloads using Synaptic Package Manager work fine.

Strangely, Iceweasel and Epiphany are both able to get to the debian.org web site. But nothing else.

All that software I was downloading - I was just exploring different things, such as which text editor would be better - downloading different ones and trying them out (have to find something better then vi or emacs! ), stuff like that. so much that I don't remember, sorry.

I know the connection works so I don't want to harass some system administrator with pings. ifconfig is something I've never looked at before so I will explore that and get back.

Thanks again.
 
Old 02-11-2011, 11:56 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Verify if the dns servers are correct and reachable.
Verify if there are proxy settings
Quote:
have to find something better then vi or emacs! ),
Take a look at nano

Kind regards
 
Old 02-11-2011, 12:13 PM   #5
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not

OK, this is what came up doing ifconfig:

eth0 Link encap:Ethernet HWaddr 00:13:20:80:d4:b2
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:20ff:fe80:d4b2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1276 errors:0 dropped:0 overruns:0 frame:0
TX packets:1430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:937356 (937.3 KB) TX bytes:250737 (250.7 KB)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)

My ignorance runneth over - don't know what this means. But I'm learning.

I like nano, but does nano do macros? Macros can be a huge time saver.


"Verify if the dns servers are correct and reachable.
Verify if there are proxy settings"

I'm going to do those now. I don't use a proxy I don't think but will check anyway.
 
Old 02-11-2011, 12:15 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Post the output from
Code:
ping 212.100.160.51
ping google.com
nslookup google.com
Kind regards
 
Old 02-11-2011, 12:56 PM   #7
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not

Hi Repo!

Here's the output:


fredx@debian:~$ ping 212.100.160.51
PING 212.100.160.51 (212.100.160.51) 56(84) bytes of data.
64 bytes from 212.100.160.51: icmp_req=1 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=2 ttl=47 time=105 ms
64 bytes from 212.100.160.51: icmp_req=3 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=4 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=5 ttl=47 time=103 ms
64 bytes from 212.100.160.51: icmp_req=6 ttl=47 time=103 ms
64 bytes from 212.100.160.51: icmp_req=7 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=8 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=9 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=10 ttl=47 time=104 ms
64 bytes from 212.100.160.51: icmp_req=11 ttl=47 time=105 ms
64 bytes from 212.100.160.51: icmp_req=12 ttl=47 time=105 ms
64 bytes from 212.100.160.51: icmp_req=13 ttl=47 time=103 ms
64 bytes from 212.100.160.51: icmp_req=14 ttl=47 time=102 ms
64 bytes from 212.100.160.51: icmp_req=15 ttl=47 time=104 ms
^C
--- 212.100.160.51 ping statistics ---
15 packets transmitted, 15 received, 0% packet loss, time 14020ms
rtt min/avg/max/mdev = 102.925/104.408/105.473/0.679 ms
fredx@debian:~$ ^C
fredx@debian:~$

fredx@debian:~$ ping google.com
PING google.com (74.125.229.18) 56(84) bytes of data.
64 bytes from 74.125.229.18: icmp_req=1 ttl=53 time=10.8 ms
64 bytes from 74.125.229.18: icmp_req=2 ttl=53 time=11.9 ms
64 bytes from 74.125.229.18: icmp_req=3 ttl=53 time=11.7 ms
64 bytes from 74.125.229.18: icmp_req=4 ttl=53 time=11.5 ms
^C64 bytes from 74.125.229.18: icmp_req=5 ttl=53 time=11.1 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 20533ms
rtt min/avg/max/mdev = 10.867/11.457/11.975/0.405 ms
fredx@debian:~$

fredx@debian:~$ nslookup google.com
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: google.com
Address: 74.125.229.16
Name: google.com
Address: 74.125.229.20
Name: google.com
Address: 74.125.229.17
Name: google.com
Address: 74.125.229.19
Name: google.com
Address: 74.125.229.18
 
Old 02-11-2011, 01:00 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Then your connection works.
Try to disable ipv6
Code:
/etc/modprobe.d/aliases:
...
# alias net-pf-10 ipv6
# Disable ipv6
alias net-pf-10 off
alias ipv6 off
Kind regards
 
Old 02-11-2011, 01:40 PM   #9
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is notHi

Hi Reo,

I did add those lines to /etc/modprobe.d/aliases.conf but it didn't seem to have any effect one way or another.

I found the, " # alias net-pf-10 ipv6 " line and deleted the "#" and substituted "off" for "ipv6".

The " # Disable ipv6 " was not there, but I simply added it, again substituting "off" for "ipv6".

After testing and finding no difference in behavior of the browsers I returned the file to it's former condition.
 
Old 02-11-2011, 01:50 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to reboot
You can blacklist ipv6
Code:
echo "ipv6" >> /etc/modprobe.d/blacklist
Kind regards
 
Old 02-14-2011, 09:53 AM   #11
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not

Hi Repo,

I tried the last suggestion,

" echo "ipv6" >> /etc/modprobe.d/blacklist "

but that didn't work either. Had to bite the bullet and just reinstall - have responsibilities and this project put me sooooo behind.

I hate it when reality intrudes on my fun! This kind of detective work is so much fun. That's one of the best things about linux is that you can climb right into the jungle and hunt the beast down. This one got away.

Ahh well. There will undoubtedly be other hunts.
 
Old 02-18-2011, 11:11 AM   #12
ne pas
Member
 
Registered: Jul 2008
Posts: 55

Rep: Reputation: 23
Quote:
Originally Posted by jesaisrien View Post
Hi! I can't get on the internet all of a sudden.

When I do " ps aux | grep apache " I can see that apache2 is running. But when I do the same thing for http or httpd there is nothing. I looked for this question in the forums but couldn't find it. I probably don't know just what to look for.

I tried all the different,

" sudo /usr/sbin/apachectl [start|stop|restart|etc] "

and I tried, " service httpd start " but that wasn't recognized.
Just to make things clear...

httpd should not to be confused with the piece of software that let's you retrieve data over HTTP. It stands for HyperText Transfer Protocol Daemon and it's the server software that provides the data over HTTP (your Apache HTTP Server is one of them).
So if the apache2 process is running than your web server is runnning. How the process is named ("httpd", "apache2", "lighttpd", ...) depends on the web server software and/or your Linux distribution that you have installed.

The part of software that let's you retrieve data from the Web is your web browser on the Application layer (HTTP) and your operating system on the Transport layer (TCP/UDP) and Internet layer (IP) (-> OSI model).

So, if you want to find out why you can't get a connection to the internet you may have a closer look on your web browser and network settings.

You've said, you're able to download via Synaptic Package Manager and you can ping to the google server and your DNS resolution was successful. So apparently your network connection is generally working.

Take a closer look on your web browser's connection and your network settings.
May be you have security applications running: A packet filter like iptables or application filtering like AppArmor, so check them.

Try if other software can or can not connect, also try other protocols like FTP.

Quote:
Originally Posted by jesaisrien View Post
Strangely, Iceweasel and Epiphany are both able to get to the debian.org web site. But nothing else.
Are you shure they are showing you an up-to-date site and not only cached content? Did you browse other pages on these sites?
What's the Error message (page) your getting if you browse other sites than debian.org?

Cheers
Christian
 
1 members found this post helpful.
Old 02-19-2011, 12:14 PM   #13
jesaisrien
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Can't get on the internet: apache is running, httpd is not

Thank you Ne Pas. Very, very helpful - it's a learning process. Thank you!

I did reinstall, but I reinstalled linux mint 10.10 Julia. It just works. Need to get some work done.

"Are you shure they are showing you an up-to-date site and not only cached content? Did you browse other pages on these sites?
What's the Error message (page) your getting if you browse other sites than debian.org?"

I'm not certain the content wasn't only cached material, but I know that mostly I couldn't get anywhere else. I didn't try a lot of places - just happened to notice that debian.org place would pop up when I tried that one.

Don't remember exactly what the error message was but I'm pretty sure it was the one that comes up if the ehernet connection is disconnected.

Thanks again.
 
  


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 HTTPD server not connecting through internet. Moriya Linux - Newbie 5 04-09-2008 09:45 AM
httpd not running after installing Apache::DBI and HTML::Template harisgulzar Linux - Newbie 1 10-23-2007 08:38 AM
Apache problem: httpd (pid 2206?) not running newlinuxnewbie Linux - Software 2 09-05-2006 11:17 AM
running httpd.conf without restarting apache mpower Linux - Newbie 3 03-16-2005 06:20 PM
APACHE - HTTPD will not stay running thePod Linux - Software 2 04-15-2004 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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