You are not logged in.

#1 2008-04-05 17:37:44

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

apache problem

Hello,
I've installed apache & php, and followed http://wiki.archlinux.org/index.php/LAMP but when I try to connect to http://localhost, it just says "Connecting to localhost....", what could I do?

/etc/hosts

127.0.0.1        localhost.localdomain    localhost arch

/etc/rc.conf (hostname)

HOSTNAME="arch"

/etc/httpd/conf/httpd.conf -> http://pastebin.com/f7e940d9d

Offline

#2 2008-04-05 22:37:34

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: apache problem

you made no mention of starting the server `/etc/rc.d/httpd start`

Offline

#3 2008-04-05 22:40:19

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: apache problem

well, it doesn't say FAIL ...

Offline

#4 2008-04-06 09:17:25

dikamilo
Member
From: Poland
Registered: 2008-03-13
Posts: 6
Website

Re: apache problem

try httpd this show errors for you

Last edited by dikamilo (2008-04-06 09:17:43)

Offline

#5 2008-04-06 10:28:44

PierreAd
Member
Registered: 2007-05-07
Posts: 19

Re: apache problem

And if you try to access http://arch ??? What happens ?

Offline

#6 2008-04-06 21:40:55

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: apache problem

dikamilo wrote:

try httpd this show errors for you

no ...

PierreAd wrote:

And if you try to access http://arch ??? What happens ?

same ...

one guy in #apache told me that apache is running, but only using ipv6, not ipv4 ...

Offline

#7 2008-04-06 23:32:12

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: apache problem

please post the output of "netstat -tlnp"

Offline

#8 2008-04-22 21:30:12

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: apache problem

dikamilo wrote:

try httpd this show errors for you

when I run httpd, I get:

(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Offline

#9 2008-04-23 14:34:50

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: apache problem

Your httpd is already running.
/etc/rc.d/httpd reload
to reload the configuration
Have you allowed http connections in /etc/hosts.allow ?

Offline

Board footer

Powered by FluxBB