Assimung you have shell access (and appropriate rights) you can look at the php configure options with ./configure --help - you will have to be in the right location.
The Right LocationIf this is a FreeBSD box, look in the php-4.3.4 port directory /usr/port/ww/php-4.3.4/. If this is a Linux box where you untarred the PHP
download will be where you configure the compile. I do not use RPM so I have no idea where the RPM gets placed.
I have used Moodle on two different boxes, one is a debian the other FreeBSD. The debian configure string is as follows (you will have to remove the apostrophes if you use this).
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=php' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--enable-memory-limit' '--disable-debug' '--with-layout=GNU' '--with-
pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-
ftp' '--enable-dbase' '--enable-dbx' '--with-gettext' '--enable-mbstring' '--with-mime-magic' '--with-pcre-regex' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-tokenizer' '--disable-
xml' '--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-exec-dir=/usr/lib/php4/libexec' '--disable-static' '--with-curl=shared,/usr' '--with-dom=shared,/usr' '--with-dom-xslt=shared,/usr' '--with-dom-exslt=shared,/usr' '--with-zlib-dir=/usr' '--with-gd=shared' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-mcrypt=shared,/usr' '--with-gmp=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ldap=shared,/usr' '--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm' '--with-mysql=shared' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-pgsql=shared,/usr' '--with-recode=shared,/usr' '--with-pfpro=shared,/opt/payflowpro' '--enable-xslt=shared' '--with-xslt-sablot=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'
I do not use the gd library on the FreeBSD box, so I do not have the --with-jpeg --with-zlib --with-png --with-gd options installed.
Windows/IIS (not Windows/Apache)If this is windows, you will have to go to the php.ini and uncomment the modules pertaining to gd, php, png, etc for full image support, and then restart IIS.
I do not use Apache on Windows so I can't really help anyone with that...
Hope this helps.
J.