From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 12:43:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0E11065674 for ; Fri, 24 Sep 2010 12:43:03 +0000 (UTC) (envelope-from lists@reiteration.net) Received: from lon1-post-1.mail.demon.net (lon1-post-1.mail.demon.net [195.173.77.148]) by mx1.freebsd.org (Postfix) with ESMTP id 25B8E8FC15 for ; Fri, 24 Sep 2010 12:43:03 +0000 (UTC) Received: from potato.growveg.org ([62.49.247.163]) by lon1-post-1.mail.demon.net with esmtp (Exim 4.69) id 1Oz7cE-0001aB-X3 for freebsd-questions@freebsd.org; Fri, 24 Sep 2010 12:43:02 +0000 Message-ID: <4C9C9CC1.6090404@reiteration.net> Date: Fri, 24 Sep 2010 13:42:41 +0100 From: John User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100924 Lightning/1.0b2 Thunderbird/3.1.4 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Trouble enabling GD in php/apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 12:43:03 -0000 On 24/09/2010 12:52, Andy Wodfer wrote: > I'm running FreeBSD 8.0 RELEASE. > > I can't get GD enabled. I have installed latestes php5 from ports aswell as > php5-extensions and enabled GD on the option screen: > > cd /usr/ports/lang/php5 > make deinstall > make clean > make rmconfig > make install clean > > cd /usr/ports/lang/php5-extensions > make deinstall > make clean > make rmconfig > make install clean > > I'm running the latest Apache 2.2.x version and GD 2.0.35. > > I'm currently doing a portupgrade -a to see if that helps, but I think not. > > What's the correct way of getting GD to work on Ie. a webshop (opencart)? It seems that php5-extensions isn't installing properly. I had to install a new server and was surprised the extensions never loaded. However I knew from other installations that for example the gd extension should be in extensions.ini - I looked in there and it was absent. So what I had to do is to search for it. Before I did that, I had to run locate.updatedb as root. This showed gd.so to be in /usr/local/ports/graphics/php5-gd/work/php-5.3.3/ext/gd/modules/gd.so I copied that into /usr/local/lib/php/20090626/ and edited /usr/local/etc/php/extensions.ini with a line of extension=gd.so I had to do this with everything selected in php5-extensions, and then restart the webserver. FreeBSD 8.1-RELEASE #1: Wed Sep 8 10:21:27 BST 2010 and last csup for ports was on the 23rd from cvsup.uk.freebsd.org -- John