On 18/05/2008, at 12:09 PM, Jeff Ross wrote:

It seems that I've somehow lost the ability to load the php5-gd library into apache on my more or less -current box, even though I've installed the package and made the link as instructed when I installed the package.

A page that pulls php_info() doesn't show gd at all, and if I tack a call to gd_info() to that script the whole thing fails with a function not found error.

When I start or re-start apache I do not get any errors, but when I run a scrip from the cli I get this:

PHP Warning: PHP Startup: Unable to load dynamic library '/var/www/ lib/php/modules/gd.so' - Cannot load specified object in Unknown on line 0



Was this all working before and suddenly stopped working?

Or something that you are trying to get going for the first time?

What does the gd.so module say that it needs (use ldd?)

I have not got an OpenBSD current PHP 5 system to hand, this is from FreeBSD,
so may or may not help.

> ldd /usr/local/lib/php/20060613/gd.so
/usr/local/lib/php/20060613/gd.so:
        libt1.so.5 => /usr/local/lib/libt1.so.5 (0x281b6000)
libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x28207000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x2826f000)
        libXpm.so.4 => /usr/local/lib/libXpm.so.4 (0x28354000)
        libpng.so.5 => /usr/local/lib/libpng.so.5 (0x28363000)
        libz.so.3 => /lib/libz.so.3 (0x28385000)
        libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 (0x28396000)
        libm.so.4 => /lib/libm.so.4 (0x283b4000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x283ca000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x283cd000)
        librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x283d2000)

Do you need to copy anything else into the chrooted() Apache environment? (Not that it helps with the CLI error message, but the ldd advice is in there.)

http://www.openbsd.org/faq/faq10.html#httpdchroot

php.ini OK?

HTH.

Reply via email to