From 992571 at gmx.de Mon Nov 28 14:45:04 2005 From: 992571 at gmx.de (Benni Graf) Date: Mon, 28 Nov 2005 15:45:04 +0100 Subject: [tinysofa-discuss] Problems getting the gdlib work Message-ID: <438B17F0.7060709@gmx.de> Hello there! I'm a tinysofa-user since two months or so and I'm pretty happy with it. I use it for my homeserver (I do some webdeveloping on it) here in south germany ;-). However, I've got problems with the gdlib for php5. I've installed the packets "gd" and "gd-devel" via apt-shell. That was the first confusing moment - the libgd.so isn't included in the php.ini-file automatically, I had to add the line "extension=libgd.so" manually. (I thought there would be a file added in the /etc/php.d/-dir, in which the library is being loaded...) I also needed to copy the libgd.so-file from /usr/lib to /usr/lib/php5, because this is the include-dir given in the php.ini-configuration-file. However, as I did this and restarted the Apache-Webserver, the gdlib still wasn't there... you can see the current status at http://benni.homelinux.net/info.php (which just shows the phpinfo()-command...). Any Ideas/Suggestions, what I did wrong or what I eventually forgot? Nice greetings, Benni Graf. From mbak at fxnet.hu Mon Nov 28 15:02:34 2005 From: mbak at fxnet.hu (Mikael Bak) Date: Mon, 28 Nov 2005 16:02:34 +0100 Subject: [tinysofa-discuss] Problems getting the gdlib work In-Reply-To: <438B17F0.7060709@gmx.de> References: <438B17F0.7060709@gmx.de> Message-ID: <1133190153.3411.70.camel@localhost.localdomain> On Mon, 2005-11-28 at 15:45, Benni Graf wrote: [snip] > However, I've got problems with the gdlib for php5. > > I've installed the packets "gd" and "gd-devel" via apt-shell. That was > the first confusing moment - the libgd.so isn't included in the > php.ini-file automatically, I had to add the line "extension=libgd.so" > manually. (I thought there would be a file added in the > /etc/php.d/-dir, in which the library is being loaded...) > > I also needed to copy the libgd.so-file from /usr/lib to > /usr/lib/php5, because this is the include-dir given in the > php.ini-configuration-file. > Just to be sure... you did install the "php5-gd"-package, did you? As far as I know this is the one who is responsible putting the extension into the /etc/php.d/-dir and the library files in the right places. That would be logical to me anyway. I doubt there is any need moving library files around. That just doesn't make sence. So, if you haven't alredy installed php5-gd, then first restore all library files to the original state and let php5-gd do the job for you. I dont think you need gd-devel for normal php development. HTH, Mikael From rob at ellis-solicitors-chester.co.uk Mon Nov 28 15:50:58 2005 From: rob at ellis-solicitors-chester.co.uk (Rob Pomeroy) Date: Mon, 28 Nov 2005 15:50:58 +0000 Subject: [tinysofa-discuss] Problems getting the gdlib work In-Reply-To: <1133190153.3411.70.camel@localhost.localdomain> References: <438B17F0.7060709@gmx.de> <1133190153.3411.70.camel@localhost.localdomain> Message-ID: <438B2762.5050707@ellis-solicitors-chester.co.uk> Mikael Bak wrote: >Just to be sure... you did install the "php5-gd"-package, did you? > > Spot on - that is exactly what causes this problem. Benni, when I was installing php, I did: apt-cache search php This shows all of the php packages that you can install - you'll almost certainly want more than just the php5-gd pacakge. The php5-mysql package will come in very handy too, etc., etc. Installation of the packages does of course require restarting Apache, but you know this already I think. >I dont think you need gd-devel for normal php development. > > In fact I'm not sure gd-devel would install anything that PHP could access anyway. All the best, Rob -- Rob Pomeroy: rob at ellis-solicitors-chester.co.uk Solicitor specialising in charity law, wills, probate and trusts Ellis & Co. Solicitors, 10 Castle Street, Chester, CH1 2DS Telephone: 01244 319388; Fax: 01244 319333