Koozali.org: home of the SME Server

PHP 4.3.8: enabling support for GD Library - need help!

Offline elorenz

  • ***
  • 41
  • +0/-0
PHP 4.3.8: enabling support for GD Library - need help!
« on: August 13, 2004, 05:32:02 PM »
Hi all,
I would like to enable GD Library support for PHP 4.3.8 (Dan Brown's rpm).
Can someone guide me to information on how to recompile PHP with support for this graphic library?
Thanks
Ernesto
............

ergozd

PHP 4.3.8: enabling support for GD Library - need help!
« Reply #1 on: August 13, 2004, 08:28:13 PM »
PHP v4.3.8 is configured with
Code: [Select]
'--with-gd' '--with-gdbm' and gd is already bundled

Code: [Select]
gd
GD Support        enabled  
GD Version        bundled (2.0.23 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support       enabled  
PNG Support       enabled  
WBMP Support      enabled  
XBM Support       enabled  

Offline elorenz

  • ***
  • 41
  • +0/-0
PHP 4.3.8: enabling support for GD Library - need help!
« Reply #2 on: August 14, 2004, 04:20:30 PM »
Hi ergozd,
Thanks for your reply.
Some things are working well while using functions from the library and some aren't.
At first I thought it might be some missing functionality but later on in my experimientation I realized that it's my inexperience with this library thats causing the problem.
Regards,
Ernesto
............

mizou

PHP 4.3.8: enabling support for GD Library - need help!
« Reply #3 on: October 06, 2005, 01:46:17 PM »
Hi all,

I am running SME 7.0b4 and the only add-on is phpmyadmin which I downloaded from http://mirror.contribs.org/smeserver/contribs/gswallow/SME7-Centos3.4/RPMS/e-smith-phpmyadmin-2.6.0-13.SME7.noarch.rpm.

I read that PHP v4.3.9 has the gd library bundled and configured.

I am trying to install moregroupware and on the setup window (www.mydomain.com/moregroup), it tells me that...
"The gd PHP extension needs to be installed.
The gd PHP extension is needed to run more.groupware. We try to use only common modules, so there is a good chance that the needed extension is available as a precompiled module for you system. You probably only need to install and activate it."


I then check out my php and ....

System  Linux dual-xeon 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686  
Build Date  Aug 19 2005 12:42:22  
Configure Command  './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'
 


Is there anything I need to do to get the GD library going...

I have searched the forum for a few hours and couldn't find any answer to overcome this problem...

Anyone, any ideas please?

Mizou

Offline marsa_matruh

  • *****
  • 250
  • +0/-0
PHP 4.3.8: enabling support for GD Library - need help!
« Reply #4 on: October 06, 2005, 05:27:29 PM »
Log in as root and try :

Code: [Select]
yum install php-gd gd
runsvctrl t httpd-e-smith


Tell me if it is ok.

It has already been discuted as bug and/or missing feature in SME7 : http://sourceforge.net/tracker/index.php?func=detail&aid=1283048&group_id=96750&atid=615772

Up to now, it has not been decided if it will be included or not in SME7.

mizou

PHP 4.3.8: enabling support for GD Library - need help!
« Reply #5 on: October 07, 2005, 06:57:42 AM »
Hi marsa_matruh,

Thank you. It worked for me  8-)

The command 'runsvctrl t httpd-e-smith' didn't work straight away, I had to change directory to '/var/service/' to issue the command and then it worked for me.

Thanks again for your help.

Mizou

yiibong

PHP 4.3.8: enabling support for GD Library - need help!
« Reply #6 on: October 11, 2005, 07:47:17 AM »
dear mizou,

What shd be the command line look like?? i am not able to perform it, pls advise.

Thanks.

yiibong

PHP 4.3.8: enabling support for GD Library - need help!
« Reply #7 on: October 11, 2005, 07:56:14 AM »
dear mizou,

I am also trying to setup the more.group, two matters that i am facing now

1. i want to recompile my php in order to support the gd extension, how shd i perform it?

2. i am trying to reset the "magic_quotes_gpc" from 1 to 0(/etc/php.ini) such like from "on" to "off", is it right?

Many Thanks.