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 + ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |