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

This is a discussion on PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache 1.3 within the PHP General forums, part of the PHP Programming Forums category; Hello Does anybody out there have PHP + GD graphics including jpeg and TrueType (ttf) fonts running on FreeBSD 5.3 + ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-22-2006
Charles Brewster
 
Posts: n/a
Default PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache 1.3

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

Reply With Quote
  #2 (permalink)  
Old 08-22-2006
Mumia W.
 
Posts: n/a
Default Re: PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache1.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.

Reply With Quote
  #3 (permalink)  
Old 08-23-2006
Charles Brewster
 
Posts: n/a
Default Re: PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache 1.3

Hi Mumia

Many thanks for your suggestion - I was fairly sure that since Apache
was loading the module from /apache/libexec where it was being copied
each time I did a re-make on PHP, that it ought to be picking up the
new compilation after an Apache restart. This was confirmed in that I
could see the new build timestamp showing in phpinfo()

What I discovered, on trying to doublecheck to follow up on your
suggestion, was that the 'make' process wasn't for some reason doing a
complete re-compile on all the files.

With a recompile of everything, it now appears to be working fine.

regards
Charles B


Mumia W. wrote:

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0