Forum Moderators: coopster
Is there a way to access GD without recompiling php?
A couple of tasty bits from phpinfo:
'--with-gd=shared'
'--enable-gd-native-ttf'
'--with-freetype-dir=/usr'
Please? Thanks!
And a more complete listing of the configure command from phpinfo:
PHP Version 5.2.3
System Linux linuxcp19334 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686
Build Date Jun 22 2007 15:59:06
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-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex' '--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-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql' '--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=/var/www/bin/apxs' '--with-xpm-dir'
A few years ago [webmasterworld.com] I discovered that PHP will run without a php.ini file. Granted, the test was on a Windows platform but I'm fairly certain it will hold true for other platforms as well. To determine if and where your php.ini may be you can run a phpinfo() [php.net] script. To setup a php.ini you need to have a look at the install [php.net] steps for your particular platform. Note: you may be able to determine php.ini location once you browse through the install steps, if one does indeed exist.
In light of the posting you referenced, I'm more confident in assuming there really is no ini file being read. I wonder what would happen if I added an php.ini file with a single line for adding the gd module? I would think it would still have everything from its configure command plus what was in the ini file.
Unfortunately this is a live, production system, so I don't have alot of leeway to try something out to see what happens. Hmmm...maybe in the wee hours one night......