Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 18:33:07 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Daniel Molina Wegener <dmw@unete.cl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Verifying PHP support
Message-ID:  <Pine.BSF.3.96.1070627180114.10016A-100000@gaia.nimnet.asn.au>
In-Reply-To: <20070626194941.AA8D616A484@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Jun 2007 11:49:51 -0400 (CLT) "Daniel Molina Wegener" <dmw@unete.cl> wrote:

 > El Mar, 26 de Junio de 2007, 10:38, Darryl Hoar escribió:
 > > Greetings,
 > > I have a machine with 6.2 release installed on it.
 > > I have apache 1.3.37 installed and am using it
 > > for my personal website.   I want to install Gallery2
 > > for doing photo albums.  The pkg info in ports says
 > > it needs php support.   I did a pkg_info -a and did
 > > not see php installed on my system.  How should
 > > I add php support so that I can install Gallery2 ?
 > 
 >   Ok, it depends on which version of php do you want. I can't remember
 > exactly where is the port, but you can search for it on /usr/ports
 > and make search:
 > 
 >   # cd /usr/ports
 >   # make search name=php4
 >   # make search name=php5
 > 
 >   If the port is in lang
 > 
 >   # cd /usr/ports/lang/php5
 >   # make config install clean

Yes, remembering to turn ON the Apache module during make config; it's
been turned off by default (for some bizarre reason) a couple of years.

 >   The php extensions are installed separatelly.

Yes, but not the Apache module, which can only be installed from ports.

 >   If you want binary packages, look for the available package version
 > at the Makefile in the port directory and install with pkg_add:
 > 
 >   # pkg_add -r 'php5'

Which, because building the Apache module is not enabled by default, as
above, will only provide PHP CLI and CGI support, but not the desired
Apache module .. presumably the reason most people install PHP at all.

This will keep on bamboozling folks expecting pkg_add php5 (or php4) to
provide PHP support for Apache, until either default build options are
changed, or a specific "php5-apache" port (thus package) is created. 

 > > thanks,
 > > Darryl
 > 
 >   Good luck...
 > 
 > >
 > > BTW, on a different machine a while ago, I tried
 > > installing php after the fact and had a bit of a
 > > mess on my hands, thus the question.
 > > [SNIP]

Exactly.  This will keep on coming up on -questions regularly.

Cheers, Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1070627180114.10016A-100000>