Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2004 17:27:52 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Mike <addymin@pacbell.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: How to get php4 extensions to "show up"?
Message-ID:  <20040818162752.GB2279@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <412379F2.80401@pacbell.net>
References:  <412379F2.80401@pacbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--kXdP64Ggrk/fb43R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 18, 2004 at 08:46:58AM -0700, Mike wrote:

> I'm running 4.10. And I just and ran portupgrade and got php-4.3.8.  I=20
> read the UPDATING file and noticed that the php4 extensions are now=20
> installed separately [/usr/ports/lang/php4-extensions].
>=20
> Note: I'm running Apache-1.3.31
>=20
> So I installed (make install && make clean) the php4 extensions using=20
> the curses based screen.  Aside from MySQL support (a default) I choose=
=20
> bz2, gettext, IMAP, calendar, ftp, zlib, xml, and imagick support.
>=20
> The install and registration seemed to work without any errors. And all=
=20
> possible php extensions are listed in /usr/local/etc/php/extensions.ini
>=20
> However,
>=20
> When I check php (phpinfo.php) with=20
> "http://192.168.1.40/~test1/phpinfo.php", I get this from the "Configure=
=20
> Command" portion of the resulting php output:
>=20
> [Configure Command]
> './configure' '--enable-versioning' '--enable-memory-limit'=20
> '--with-layout=3DGNU' '--with-config-file-scan-dir=3D/usr/local/etc/php'=
=20
> '--disable-all' '--with-regex=3Dphp' '--disable-cli'=20
> '--with-apxs=3D/usr/local/sbin/apxs' '--prefix=3D/usr/local'=20
> 'i386-portbld-freebsd4.10'
>=20
> Question: Where are the extensions I selected for installation???
>=20
> I'm trying to install a CMS (MamboServer) and the CMS install routine=20
> reports that php DOES NOT have MySQL, zlib, or xml support.
>=20
> I've had previous success installing this CMS using an older version of=
=20
> php4 that did not have the extensions installation seperate.
>=20
> What am I missing?

Check your /usr/local/etc/php.ini file and make sure that the
'extension_dir' property is commented out:

    ; Directory in which the loadable extensions (modules) reside.
    ; extension_dir =3D "./"

If you're running using mod_php4, make sure to restart apache so that
changes to php.ini are picked up.

That will let PHP use the correct, compiled in value (which should be
/usr/local/lib/php/20020429 for PHP4, or /usr/local/lib/php/20040412
for PHP5) All of your extensions should be visible in that directory
as dynamically loadable .so shared objects.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--kXdP64Ggrk/fb43R
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBI4OIiD657aJF7eIRAv34AJ0ULlMrfjrrcGlfwOu2KY7jsvq8jgCgo62e
9hRoF8pesfLle6s+zWCRcJM=
=HePi
-----END PGP SIGNATURE-----

--kXdP64Ggrk/fb43R--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040818162752.GB2279>