Quote:
Originally Posted by jstephens84
I would like to see where your extension directories are located. Also you might try and download php from the website and see if it comes with a module that can be loaded. If it does then just copy that to your extension directory.
|
The extensions directory for php would be /usr/lib/php4, as indicated in the php.ini file:
; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/lib/php4
In that directory I only have mysql.so
Regarding the downloading of php, I'm afraid the official site (php.net) only offers binaries for Windows. I have found on the net a non-source rpm, php-4.3.9-3.12.i386.rpm, but this is all it contains:
[root@site ~]# rpm -qps php-4.3.9-3.12.i386.rpm
warning: php-4.3.9-3.12.i386.rpm: V3 DSA signature: NOKEY, key ID 9b3c94f4
normal /etc/httpd/conf.d/php.conf
normal /etc/pear.conf
normal /etc/php.d
normal /etc/php.ini
normal /usr/bin/php
normal /usr/lib/httpd/modules/libphp4.so
normal /usr/lib/php4
normal /usr/share/doc/php-4.3.9
normal /usr/share/doc/php-4.3.9/CODING_STANDARDS
normal /usr/share/doc/php-4.3.9/CREDITS
normal /usr/share/doc/php-4.3.9/EXTENSIONS
normal /usr/share/doc/php-4.3.9/INSTALL
normal /usr/share/doc/php-4.3.9/LICENSE
normal /usr/share/doc/php-4.3.9/NEWS
normal /usr/share/doc/php-4.3.9/README.EXTENSIONS
normal /usr/share/doc/php-4.3.9/README.EXT_SKEL
normal /usr/share/doc/php-4.3.9/README.PARAMETER_PARSING_API
normal /usr/share/doc/php-4.3.9/README.SELF-CONTAINED-EXTENSIONS
normal /usr/share/doc/php-4.3.9/README.STREAMS
normal /usr/share/doc/php-4.3.9/README.SUBMITTING_PATCH
normal /usr/share/doc/php-4.3.9/README.TESTING
normal /usr/share/doc/php-4.3.9/README.UNIX-BUILD-SYSTEM
normal /usr/share/doc/php-4.3.9/TSRM_LICENSE
normal /usr/share/doc/php-4.3.9/ZEND_CHANGES
normal /usr/share/doc/php-4.3.9/ZEND_LICENSE
normal /usr/share/doc/php-4.3.9/gd_README
normal /usr/share/doc/php-4.3.9/regex_COPYRIGHT
normal /var/lib/php
normal /var/lib/php/session
normal /var/www/icons/php.gif
So, no libraries there.
On the other hand, the source for php does seem to contain the code for gd:
[root@site php-4.4.2]# ls -l ext/gd
total 204
-rw-r--r-- 1 1000 1000 14867 May 17 2005 config.m4
-rw-r--r-- 1 1000 1000 102 Feb 28 2003 CREDITS
-rw-r--r-- 1 1000 1000 104945 Jan 1 2006 gd.c
-rw-r--r-- 1 1000 1000 4998 Jan 9 2005 gdcache.c
-rw-r--r-- 1 1000 1000 2880 Mar 5 2003 gdcache.h
-rw-r--r-- 1 1000 1000 3824 Jan 1 2006 gd_ctx.c
-rw-r--r-- 1 1000 1000 16313 Jul 22 2004 gd.dsp
-rw-r--r-- 1 1000 1000 23316 Jan 9 2005 gdttf.c
-rw-r--r-- 1 1000 1000 461 Feb 25 2000 gdttf.h
drwxr-xr-x 2 1000 1000 4096 Jan 12 2006 libgd
-rw-r--r-- 1 1000 1000 5976 Jan 1 2006 php_gd.h
drwxr-xr-x 2 1000 1000 4096 Jan 12 2006 tests
But I don't know how to compile that without a compile script.