Problem with graphics/php4-gd

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Sep 23 04:09:34 PDT 2004


On Thu, Sep 23, 2004 at 11:02:09AM +0200, Nika Vidal wrote:

> When I login and try to upload an image I always get the same error:
> 
>   Critical error
>   PHP running on your server does not support the GD image library,
> check with your webhost if ImageMagick is installed
> 
> 
> In phpinfo(); I get gd information, but gd doesn't have jpeg support:
> 
>   gd
>   GD Support 	enabled
>   GD Version 	bundled (2.0.23 compatible)
>   GIF Read Support 	enabled
>   PNG Support 	enabled
>   WBMP Support 	enabled
>   XBM Support 	enabled 
> 
> 
> I've been trying for a week to fix it but I didn't get it.

Interesting.  I get the following from phpinfo():

    gd
    
    GD Support => enabled
    GD Version => bundled (2.0.23 compatible)
    FreeType Support => enabled
    FreeType Linkage => with freetype
    T1Lib Support => enabled
    GIF Read Support => enabled
    GIF Create Support => enabled
    JPG Support => enabled
    PNG Support => enabled
    WBMP Support => enabled
    XBM Support => enabled

You seem to have all of the necessary dependencies installed, and
everything is up to date.  There's no obvious reason why it isn't
working.

Are there any relevant error messages in /var/log/httpd-error.log ?

Hmmm... Have you modified the CFLAGS setting in /etc/make.conf at all?
I#d be thinking about recompiling everything with CFLAGS='-O -pipe' in
your position.  You can do that by making the edits to /etc/make.conf
and then running:

    # portupgrade -Rfi graphics/php4-gd

But that's a sledgehammer solution, and without knowing what the
problem actually is, doesn't offer an guarrantees that it will
actually fix anything.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040923/60fe1dba/attachment.bin


More information about the freebsd-ports mailing list