From owner-freebsd-questions@FreeBSD.ORG Sun Sep 26 13:04:43 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 0616816A4CE for ; Sun, 26 Sep 2004 13:04:43 +0000 (GMT) Received: from congo.princess.dyns.cx (cpc1-cmbg6-6-0-cust54.cmbg.cable.ntl.com [81.104.213.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 756C943D1D for ; Sun, 26 Sep 2004 13:04:42 +0000 (GMT) (envelope-from steve@acidy.com) Received: by congo.princess.dyns.cx (Postfix, from userid 1001) id 706D4C2F7; Sun, 26 Sep 2004 14:04:40 +0100 (BST) From: Steve Hodgson To: freebsd-questions@freebsd.org Date: Sun, 26 Sep 2004 14:04:39 +0100 User-Agent: KMail/1.7 References: <20040926133332.A156.RICHARD@firebadger.net> In-Reply-To: <20040926133332.A156.RICHARD@firebadger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409261404.39993.steve@acidy.com> cc: Richard Collyer Subject: Re: PHP Install Options Problem 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: Sun, 26 Sep 2004 13:04:43 -0000 On Sunday 26 September 2004 14:00, Richard Collyer wrote: > Hi All, > > I'm running FBSD 4.10 and recently had some problems with php. So i > decided to de-install it and start again to see if that would help. > Basically functions started to fail in "Fatal Errors" after upgrading > to a newer version. > > Now when installing the package (from ports) it does not give any > options to select what i want to install (i.e. no window saying mysql, > xml support etc.). > > Is I think this is the root of the problem and php must not be > installing the requred modules to handle the pages I am asking it to > serve. PHP installs fine and the test page ( echo php_info(); ) works > fine however alot of functons dont work such as preg_match() and > mysql_connect() i get Fatal Error: etc... if these are called. > > Is thier a way to force the install to bring up these options or is > thier a file where the values are installed that i could edit? > > > when doing make it says: > ===> Found saved configuration for mod_php4-4.3.8_2,1 > > Is thier a way to locate and delete this file. > > Atm using: > > cd /usr/ports/www/mod_php4/ > make clean > make > make install > make clean > > I have googled and searched the archive and nothing (as of yet) has > turned up to be of much help. > this is becoming a FAQ from /usr/ports/UPDATING 20040719: AFFECTS: users of PHP AUTHOR: ale@FreeBSD.org The old lang/php4 and lang/php5 ports have been splitted into 'base' PHP, PEAR, and shared extensions to allow more flexibility and add new features. Upgrading your current PHP installation will result in a 'base' PHP installation (no PEAR and no extensions). PEAR can be found in the new devel/php4-pear and devel/php5-pear ports, while the set of PHP extensions to install can be choosen via the meta-ports lang/php4-extensions and lang/php5-extensions, or installing singular extensions individually. If you have a previous php.ini configuration file, be sure to comment out the extension_dir parameter, since the correct path is statically compiled into the PHP binary. For an overview of the modules used with the old PHP binary, use the command "php -m". Steve