From owner-freebsd-questions@FreeBSD.ORG Sat Jul 24 20:50:22 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 7F7ED16A4CE for ; Sat, 24 Jul 2004 20:50:22 +0000 (GMT) Received: from av7-1-sn1.fre.skanova.net (av7-1-sn1.fre.skanova.net [81.228.11.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id F34C843D45 for ; Sat, 24 Jul 2004 20:50:15 +0000 (GMT) (envelope-from hasse@swedehost.com) Received: by av7-1-sn1.fre.skanova.net (Postfix, from userid 502) id 0E95437E53; Sat, 24 Jul 2004 22:50:15 +0200 (CEST) Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av7-1-sn1.fre.skanova.net (Postfix) with ESMTP id F36E937E48; Sat, 24 Jul 2004 22:50:14 +0200 (CEST) Received: from odin.swedehost.com (h171n2fls33o804.telia.com [217.209.211.171]) by smtp3-2-sn1.fre.skanova.net (Postfix) with ESMTP id 950C737E42; Sat, 24 Jul 2004 22:50:12 +0200 (CEST) Received: from thor.swedehost.com (thor.swedehost.com [192.168.0.10]) by odin.swedehost.com (8.12.11/8.12.11) with ESMTP id i6OKoDZR003066; Sat, 24 Jul 2004 22:50:13 +0200 (CEST) (envelope-from hasse@swedehost.com) From: Hasse Organization: The Valhalla Project To: freebsd-questions@freebsd.org Date: Sat, 24 Jul 2004 22:50:15 +0200 User-Agent: KMail/1.6.2 References: <41022833.6090509@themarshalls.co.uk> <20040724104531.GC91096@happy-idiot-talk.infracaninophile.co.uk> <4102BF57.1080308@themarshalls.co.uk> In-Reply-To: <4102BF57.1080308@themarshalls.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407242250.15681.hasse@swedehost.com> X-Scanned-By: MIMEDefang 2.44 cc: Drew Marshall cc: Peter Risdon Subject: Re: Installing php4 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: Sat, 24 Jul 2004 20:50:22 -0000 On Saturday 24 July 2004 21.58, Drew Marshall wrote: > Matthew Seaman wrote: > > > >Actually, php4-extensions works with any of the 'main' PHP ports -- > >lang/php4, lang/php4-cli, www/php4-cgi or www/mod_php4. The fact that > >there are 4 different variations on a plain 'php4' port in the tree is > >the reason why all of the module support was moved out into a separate > >extensions port. > > > >While this move to specifying all of the PHP modules as loadable > >extensions makes a great deal of sense from one point of view -- ports > >that use PHP can now explicitly list all of the extensions they > >require to operate, rather than having to have their own private PHP > >slave ports -- the implementation has run into a number of problems. > > > >For php4 there are some extensions where the same functionality is not > >available when used as a loadable module as when compiled in. The > >security/php4-openssl extension is a case in point: unless OpenSSL > >support is compiled-in, the fsockopen() function won't let you open > >'tls://' or 'ssl://' style URLs. (As a practical result, that means > >that eg. Squirrelmail can't communicate with a secure IMAP server on > >port 993. The only alternative in that case is to communicate to an > >unencrypted IMAP server on port 143, which quite probably involves > >sending passwords over the net in plaintext.) > > > >Beyond that, not all of the PHP consuming ports have yet been updated > >to depend on the appropriate PHP extensions, so installing those ports > >de novo doesn't immediately get you a workable system. A common > >symptom of this is a run-time error where one of the perl compatible > >regular expression (pcre_*()) functions doesn't work. The answer > >pretty much is just to install the required extension modules by hand, > >and tweak the value of the 'extension_dir' directive in > >/usr/local/etc/php.ini > > I understand the logic but I would have thought a line somewhere in > Makefile or the README just to give poor stupid people like me a clue as > to where to start looking. Ons further question that has come from my > compilation of the php4-extension is that once you have made your > selection the first time these options seem to be saved somewhere (The > build process states found previous configuration or similar) where is > this? I missed an option in my hurry this morning and now can't get back > to the menu options (No matter how many make cleans, pkg_deletes etc I > do) to re-set or add the options. > > Many thanks for being so helpful > > Drew ----------------------- Hi. I had a hard time after a upgrade too. Had to comment out 'extension_dir' directive in /usr/local/etc/php.ini just to get it to work at all. ( Running a PhpNuke site :-) What I understand, from the mailinglist, the 'extension_dir' are allready hardcoded in the php-source. So if you override it in php.ini, you have to give it the correct location. I also had to deinstall the allready installed packages from my previous attempt. ( I made a bad choice ) pkg_delete -r php4\* You might try looking for the options in /var/db/ports/php4-extensions/options Hope this helped. /Hasse.