Re: PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache 1.3



On 08/22/2006 08:03 AM, Charles Brewster wrote:
Hello

Does anybody out there have PHP + GD graphics including jpeg and TrueType (ttf) fonts running on FreeBSD 5.3 + Apache 1.3.nn ?

I've trying to configure PHP with GD on my server box using the following configure_php file

#!/bin/sh
../configure \
--with-mysql=/usr/local/mysql-standard-4.0.24-unknown-freebsd4.7-i386 \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd \
--with-png-dir=/usr/local/include/libpng \
--with-jpeg-dir=/usr/local/include \
--with-zlib-dir=/usr/src/php/php-5.0.4/ext/zlib \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/include/freetype2/freetype

Everything seems to run OK going through
../configure
make
make install

After restarting Apache, I can't see jpeg or ttf showing up in phpinfo()

I have 'extension=gd.so' in php.ini
Do I need any other extensions specified there?

I'd be much obliged if anyone who has this configuration (or something like it) running OK could point out any obvious error(s) in the above or point me towards a walk-through install doc, if such a thing exists.

I've tried rebuilding PHP through the ports tree using 'portupgrade', but that didn't work either.

Many thanks for any help

Charles Brewster


Configure Apache to not load the old libphp4.so module and to load the new (built by you) libphp4.so module.

.



Relevant Pages

  • Re: [PHP] PHP Performance and System Load
    ... General performance tip do not include more than 10 files a page load. ... Uses php Adodb ... At the moment I am trying to lower the number of filesystem calls as ... over a symlink placed in every webspace directory. ...
    (php.general)
  • Re: High Scores
    ... If you want to view High scores it returns Could Not load scores ... here is the PHP script ... Edit the game Flash file to point to this file on your server ... >> And the PHP script is here ...
    (alt.php)
  • Re: about structure.
    ... Of course if you want to use a load of checkboxes, it works too, just modify ... I thought about using a database... ... "I thought about using php... ... server needs to call upon php... ...
    (alt.php)
  • Re: [PHP] Re: can a session be used in a query?
    ... I've noticed that I somtimes have to get the page to load ... What I normally do is upload a blank php page with the same name as the one ... This one pulls all data regardless of user level: ... the query UserName = $UserName I get an undefined variable error... ...
    (php.general)
  • Re: Loading png images into a mysql table/database
    ... I have decided to use PHP and MySQL. ... I can load jpeg files into the table ... I do a select from the database, and then echo the image (with ... header(Content Type: image/jpeg) ...
    (comp.lang.php)