[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chrooted Apache and extensions



On Tue, 2002-12-03 at 00:14, Greg Thomas wrote:

> Ok, now I'm confused.  But maybe I've figured my situation out.  I'm 
> running apache under 3.2 chrooted by default.  I'm running PHP4 and 
> postgresql from -stable ports.  My pgsql lock and socket files are in 
> /tmp:
> 
> ethant@oats:/home/ethant$ ls -al /tmp/.s.PGSQL.5432*
> srwxrwxrwx  1 postgresql  wheel   0 Dec  2 00:40 /tmp/.s.PGSQL.5432
> -rw-------  1 postgresql  wheel  26 Dec  2 00:40 /tmp/.s.PGSQL.5432.lock
> 
> And my postgresql install is working fine with PHP.
> 
> Is this because even though I'm currently running PHP and postgresql on 
> the same machine I'm using the -i switch to use the network?

Most probably yes.  If httpd is chrooted to /var/www it can't access
/tmp.  So you either use the net or your httpd is not chrooted.

- Marc