problem with apache

2007-10-14 Thread TAJUL AZHAR Mohd Tajul Ariffin
hi all
I had a problem with my apache22. I had install it fropm the port but
accidently I install it again and I got the message to deinstall if I
want to uninstall.
I enable upon boot up the apache into rc.d. After I reboot I got the
message that my apache cannot run into localhost.
I had install php5 port, php5-pgsql and postgresql 8.0 Is that
anything that I missed on the configuration part to enable the php and
postgresql to run together on my apache?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with apache

2003-03-19 Thread Joshua Oreman
On Wed, Mar 19, 2003 at 08:30:00AM -0500 or thereabouts, Ian Larsen seemed to write:
> Thanks Andrey!
> 
> A sockstat on the non-working server showed this:
> 
> www  httpd  694   3  tcp6  *:80  *:*
> 
> while the working version shows:
> 
> www  httpd  694   3  tcp46  *:80  *:*
> 
> It appears the non-working server is only aware of tcp6 protocol.
> Is this a problem with my ethernet config?  Other services are using tcp4.
> Is there something in the apache configs that would cause this?
> 

This is a known problem with Apache and IPv6. I had it too. There are two
solutions:

1) Tell the system to give IPv4 sockets as well as IPv6:
   # sysctl kern.net.inet6.ip6.v6only=0

2) Tell Apache to listen on IPv4 too:
--snip httpd.conf--
# Listen on all IPv4 interfaces
Listen 0.0.0.0:80

# If you have an IPv6 address, put the next line in
# Listen [your:ip6:addr::here]:80

# Listen on IPv6 loopback
Listen [::1]:80
--snip--

> Thanks again,
> -Ian Larsen
Hope this helps,
Josh

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Problem with apache

2003-03-19 Thread Ian Larsen
Thanks Andrey!

A sockstat on the non-working server showed this:

www  httpd  694   3  tcp6  *:80  *:*

while the working version shows:

www  httpd  694   3  tcp46  *:80  *:*

It appears the non-working server is only aware of tcp6 protocol.
Is this a problem with my ethernet config?  Other services are using tcp4.
Is there something in the apache configs that would cause this?
Thanks again,
-Ian Larsen


Original Message Follows
From: Andrey Simonenko <[EMAIL PROTECTED]>
To: "Ian Larsen" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: Problem with apache
Date: Wed, 19 Mar 2003 10:31:50 +0200 (EET)
On Wed, 19 Mar 2003 06:35:12 + (UTC) in lucky.freebsd.questions, Ian 
Larsen wrote:
> I've got two FreeBSD boxes on my home network.  They are both assigned 
local
> IP addresses through DHCP.
>
> I've just installed Apache on both of them tonight, and I can access one
> machine just fine using its local IP address. (192.168)  The other, I
> can telnet to port 80 on it using:
>
> $ telnet localhost 80
> Trying ::1..
> Connected to localhost.
> Escape character is '^]'
>
> But if I try using its IP address, even the loopback, the connection is
> refused:
>
> $ telnet 127.0.0.1 80
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> telnet: unable to connect to remote host
>

Following checks should help:

1.  Check on which interfaces your Apache server works: "sockstat -l".
2.  Check NICs IP addresses: "ifconfig -a"
3.  Check routing table: "netstat -rn"
4.  Check IPFW "ipfw l" (and/or IPF "ipfstat -io") tables.
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Problem with apache

2003-03-19 Thread Andrey Simonenko
On Wed, 19 Mar 2003 06:35:12 + (UTC) in lucky.freebsd.questions, Ian Larsen wrote:
> I've got two FreeBSD boxes on my home network.  They are both assigned local 
> IP addresses through DHCP.
> 
> I've just installed Apache on both of them tonight, and I can access one 
> machine just fine using its local IP address. (192.168)  The other, I 
> can telnet to port 80 on it using:
> 
> $ telnet localhost 80
> Trying ::1..
> Connected to localhost.
> Escape character is '^]'
> 
> But if I try using its IP address, even the loopback, the connection is 
> refused:
> 
> $ telnet 127.0.0.1 80
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> telnet: unable to connect to remote host
> 

Following checks should help:

1.  Check on which interfaces your Apache server works: "sockstat -l".
2.  Check NICs IP addresses: "ifconfig -a"
3.  Check routing table: "netstat -rn"
4.  Check IPFW "ipfw l" (and/or IPF "ipfstat -io") tables.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Problem with apache

2003-03-18 Thread Ian Larsen
I've got two FreeBSD boxes on my home network.  They are both assigned local 
IP addresses through DHCP.

I've just installed Apache on both of them tonight, and I can access one 
machine just fine using its local IP address. (192.168)  The other, I 
can telnet to port 80 on it using:

$ telnet localhost 80
Trying ::1..
Connected to localhost.
Escape character is '^]'
But if I try using its IP address, even the loopback, the connection is 
refused:

$ telnet 127.0.0.1 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: unable to connect to remote host
I've set up the /etc/hosts file on each to reflect 127.0.0.1 as the domain 
names for each computer.  I tried a bunch of things with the ServerName 
directive before restoring the Apache defaults there when nothing worked.

Any ideas?

Thanks so much,
Ian Larsen
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message