[kwlug-disc] Ubuntu 12.04 LTS localhost* and internet fail - where to start^h^h^h^h^h continue?

Khalid Baheyeldin kb at 2bits.com
Thu Apr 10 13:42:41 EDT 2014


Apache should be listening on a network socket, not a unix socket.

Do this:

$ netstat -tunlp | grep apach
tcp6       0      0 :::80                   :::*
LISTEN      24311/apache2
The above is the PID of the Apache process, and it is listening on port 80.

If you use wget with HTTP headers, you will see what the server is sending
(if it is sending anything). That way you know if it is Firefox or
something else.

$ wget --server-response -O /dev/null localhost
--2014-04-10 13:40:22--  http://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Thu, 10 Apr 2014 17:40:22 GMT
  Server: Apache/2.2.22 (Ubuntu)
  Vary: Accept-Encoding
  Content-Length: 722
  Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Content-Type: text/html;charset=UTF-8
Length: 722 [text/html]



On Thu, Apr 10, 2014 at 1:03 PM, John Johnson <jvj at golden.net> wrote:

>  FF: HTTP error "unable to connect' (404?).
>
> 'netstat localhost' returns lots of hits in the form:
> unix 3 [ ] STREAM ....
> and a few in the form:
> unix 3 [ ] DGRAM
>
> None of the hits appear to be Apache.
>
> Tried: 'netstat localhost | grep -i apache"
> NADDA
>
> Looks like Apache is broken
>
> JohnJ
>
>
>
>
> On 2014-04-10 12:08, Adam Glauser wrote:
>
>
> On Apr 10, 2014 12:05 PM, "John Johnson" <jvj at golden.net> wrote:
>
> > ping 127.0.0.1 OK
> > ping localhost OK
> > FF broswer: localhost fails
> > FF browser: localhost/index.php fails
> > FF browser: localhost/<other file in /var/www> fails
> >
> > Where do I go with LAMP?
>
> What is the HTTP error, if any?
>
> I think `netstat localhost` should tell you if Apache is listening on any
> port.
>
>
> _______________________________________________
> kwlug-disc mailing listkwlug-disc at kwlug.orghttp://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>
>
>
> Checked by AVG - www.avg.com
> Version: 2014.0.4355 / Virus Database: 3882/7325 - Release Date: 04/10/14
>
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>


-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
For every complex problem, there is an answer that is clear, simple, and
wrong." -- H.L. Mencken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20140410/eddfaa51/attachment.html>


More information about the kwlug-disc mailing list