Subject Re: [firebird-php] Installing GD2 lib on FC3 and PHP 4.3
Author Yves Glodt
Todd Cary wrote:
> I really wish I could start this thread over! I feel I started down the
> wrong path in the beginning: trying to modify rpm installed
> applications. Now please correct me if I have misinterpreted what most
> of you are saying. What I understand to be a good approach in setting
> up a system is to start with a good core e.g. RH 9 or FC3 (I started
> with RH 4 some years ago, so I have stuck with them) and install my own
> Apache and customized php.

Or, may I suggest another path:

Install debian sarge, and type (as root) the following to get apache2,
firebird1.5, the php4-interbase and the php-gd2 extension:


apt-get install apache2-common firebird2-super libapache2-mod-php4
php4-interbase php4-gd2


One command, no compiling.

If you enable the bash_completion, you can even *see* by using the TAB
key which packages are available.

e.g. apt-get install php4-<TAB> gives me this:

php4-apc php4-cgi-imap php4-cli php4-gd
php4-ldap php4-pear php4-snmp php4-yaz
php4-apd php4-cgi-ldap php4-common php4-gd2
php4-maxdb php4-pear-log php4-sqlite
php4-auth-pam php4-cgi-mcrypt php4-cups php4-gpib
php4-mcal php4-pecl-ps php4-sqlrelay
php4-cgi php4-cgi-mhash php4-curl php4-idn
php4-mcrypt php4-pgsql php4-sybase
php4-cgi-curl php4-cgi-mysql php4-dbase php4-imagick
php4-mhash php4-ps php4-syck
php4-cgi-domxml php4-cgi-pgsql php4-dbtcp php4-imap
php4-ming php4-recode php4-tclink
php4-cgi-gd php4-cgi-snmp php4-dev php4-interbase
php4-mysql php4-rrdtool php4-xml
php4-cgi-imagick php4-cgi-xml php4-domxml php4-kadm5
php4-odbc php4-sablot php4-xslt


Install debian and you will be cured.
The installer can be downloaded here: http://www.debian.org/CD/netinst/


> In an effort to level the playing field, I downloaded Apache 2.0.54 and
> used the following configuration:
>
> ./configure --prefix=/usr/local/apache2 --enable-module=so
>
> Ran the "make" and "make install". Now it has been configured, made and
> installed. The question is where do I replace the current "httpd" with
> a symbolic link to the new httpd (Apache2)?
>
> Once that is done, I plan to rebuild php using apxs2.
>
> Is this the correct approach?
>
> Any sugestions about this approach are greatly appreciated...
>
> Todd
>
> Yves Glodt wrote:
>
>
>>Todd Cary wrote:
>>
>>
>>
>>>I have installed the gd2 rpm from http://www.boutell.com/gd/.
>>>
>>>rpm -qa | grep "gd" shows that I have gd-2.0.28-1.30.1 on my system. My
>>>configure is
>>>
>>>./configure --with-interbase=shared,/opt/interbase --with-gd2=/usr/lib
>>>
>>>http://209.204.172.137:81/testphp.php shows "gd" in the configuration,
>>>but "gd" is not listed. What mistakes have I made?
>>>
>>>
>>
>>>>--with-gd=shared
>>
>>Did you ask php to load the gd module (php.ini)?
>>
>>
>>
>>
>>>Todd