PHP compilation through web interface not useful?

Discussion in 'PHP' started by Lucas, May 1, 2008.

  1. Lucas

    Lucas New Member

    I've been trying to get gd with freetype support by adding --with-ttf or --with-freetype and I can't still get it to work through the interface. How would I do with this? Do I actually need to recompile php from source?

    Regards
  2. [QT]bender

    [QT]bender New Member

    Install all GD libs/deps first:

    Code:
    yum -y install libpng-devel libpng10 libpng10-devel libjpeg-devel gd gd-devel ImageMagick ImageMagick-devel ImageMagick-perl
    
    for FC/CentOS

    Add following to the PHP configuration string:

    Code:
    '--with-pic' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr' '--with-png'
    Compile your PHP.

Share This Page