[EMAIL PROTECTED] wrote:
> ****** Original Message ******
> >1. mod_php4-mysql-4.0.1pl2-mdk.i586.rpm and similar packages
> >have been produced with rather strange requirements, including
> >that the version of RPM used is <= 3.0.1. So they will not
> >install under Mandrake 7.1, since that uses rpm version 3.0.4!
>
> Strange.. I didn't have much in the way of problems upgrading to PHP4. I went to
>RPMFIND.NET and downloaded everything I needed to run it. When did you download your
>MOD_PHP? I remember getting mod_php-4.0.1pl2-2mdk.i586.rpm just after it posted, on
>July 24... Don't forget to look, cause you need apache-1.3.12-14mdk and mm-1.1.3 to
>run it...
I was using mod_php-4.0.1pl2-4mdk.i586.rpm, so I guess the installation problems
appeared after -2mdk.
> >2. Once I install (after installing the cooker MySQL and using
> >--nodeps), PHP4 works, but does NOT load the mysql module,
> >despite having it listed in the php.ini file. There is no sign
> >of MySQL in the list produced by php_info(), any any attempt to
> >use mysql_connect() in a PHP script generates an error message
> >denying knowledge of the mysql_connect() function. This is
> >definitely broken. Mind you, I've never managed to get MySQL
> >working as a loadable module in PHP4 even when compiling from
> >source (I've had to make it part of the PHP4 module). Has anyone
> >managed?
>
> If you look at RPMFIND.NET and find the mandrake compiled rpms for MOD_PHP (long
>list, I know), you might find that your missing the seperate RPM for
>mod_php_mysql/pgsql/imap etc...
I installed the separate rpms for mysql, gd and imap, I just didn't list them all in
my message
(although I did mention mod_php4-mysql-4.0.1pl2-mdk.i586.rpm, but s/mdk/4mdk/).
They installed the extra .so files in the Mandrake PHP extensions directory, and
modified
php.ini OK.
> I can't tell you for sure if the PHP4 commands work (cause I haven't tried any PHP4
>based commands yet - I've only just started learning it), but the rest of my system
>has been behaving properly.
The quick way is to set up a simple test.php file containing the one line
<? php_info() ?>
Point your browser at that, and it will tell you exactly how PHP is configured.
What I found is that it was reporting success on GD and IMAP, but not on MySQL.
--
Dr. David R. Newman, Queen's University Belfast, School of
Management and Economics, Belfast BT7 1NN, Northern Ireland (UK)
mailto:[EMAIL PROTECTED] Tel. 028 90335011 FAX: 028 90249881
http://www.qub.ac.uk/mgt/staff/dave/