From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 16:27:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AB1416A4CE for ; Wed, 18 Aug 2004 16:27:58 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FEA343D39 for ; Wed, 18 Aug 2004 16:27:57 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i7IGRqjP002804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Aug 2004 17:27:52 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i7IGRqFe002803; Wed, 18 Aug 2004 17:27:52 +0100 (BST) (envelope-from matthew) Date: Wed, 18 Aug 2004 17:27:52 +0100 From: Matthew Seaman To: Mike Message-ID: <20040818162752.GB2279@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Mike , freebsd-questions References: <412379F2.80401@pacbell.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kXdP64Ggrk/fb43R" Content-Disposition: inline In-Reply-To: <412379F2.80401@pacbell.net> User-Agent: Mutt/1.5.6i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 18 Aug 2004 17:27:52 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00, NORMAL_HTTP_TO_IP autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions Subject: Re: How to get php4 extensions to "show up"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 16:27:58 -0000 --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--