Justtechjobs.com Find a programming school near you






Online Campus Both


php-install | 2002112

[PHP-INST] PHP 4.2.2 and GD 2.0.8 From:     (parxhelic <email protected>)
Date: 11/26/02

Hello,

I'm in desperate need of some assistance here :/

I'm not sure what is causing the problem, but on one of our older servers
running Plesk 5.0.3, I cannot get Apache to start if I compile PHP with
--with-gd

Here are my compile instructions:

./configure --with-apxs=/usr/local/psa/apache/bin/apxs
--prefix=/usr/local/psa/apache --with-regex=php
--with-config-file-path=/usr/local/psa/apache/conf --enable-sockets
--enable-track-vars --with-mysql=/usr/local/psa/mysql --with-iodbc=/usr/lib
--with-imap=/usr/local/src/imap-2002 --with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib --with-xml --disable-debug --enable-pear
--without-iconv --with-zlib-dir=/usr/lib --enable-ftp
--with-mcrypt=/usr/local/lib --with-curl --with-zend --with-openssl
--enable-calendar --with-freetype-dir=/usr/lib --enable-bcmath
--enable-dbase --with-gd

I installed GD 2.0.8 without any problems, I also made sure to --prefix=/usr

And under /usr/lib:

-rwxr-xr-x 1 root root 801 Nov 25 21:55 libgd.la
lrwxrwxrwx 1 root root 14 Nov 25 21:55 libgd.so -> libgd.so.2.0.0
lrwxrwxrwx 1 root root 14 Nov 25 21:55 libgd.so.2 -> libgd.so.2.0.0
-rwxr-xr-x 1 root root 425389 Nov 25 21:55 libgd.so.2.0.0

When I compile PHP with gd support, it even looks good during the
./configure stage :

checking for GD support... yes
checking whether to enable truetype string function in GD... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... yes
checking for FreeType 1.x support... no
checking for T1lib support... no
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageStringFTEx in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no

On a side note, before make would complete, I had to edit gd.c and gd_ctx.c
for 'make' to even work with GD. After making those changes, 'make'
completes, but when I move the libphp4.so to the apache libexec directory,
Apache won't start!

If I use the same exact ./configure line and I remove the --with-gd, then
Apache loads just fine. I checked my apache error_log, and all its telling
me is that the PHP module is b0rked somehow, because all it says is:

Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module
not included in the server configuration

I've tried everything I can think of, and am getting no where fast.
If anyone has ANY suggestions I would be VERY appreciative!

Thanks,
Patrick

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php