Re: PHP + MySQL = Broken?


Subject: Re: PHP + MySQL = Broken?
From: Darron Froese (darron@froese.org)
Date: Tue Aug 01 2000 - 22:35:57 MDT


On Tue, 1 Aug 2000, Israel Alvarez wrote:

> Running YDL CS 1.2, with default install of PHP and Apache (PHP 3.0.14 and
> Apache 1.3.11). I need to get PHP talking to MySQL, which I expected to be
> straightforward - I've configured many FreeBSD boxes this way.
>
> First problem came with the rpm install of MySQL off the "Tasty Morsels" cd
> - it appears to be broken. Downloaded the latest stable version (3.22.32)off
> the MySQL site and now that's running fine. When I tried to fire up a
> connection to MySQL from PHP, I got an error, apparently the MySQL dynamic
> module isn't installed with YDL's distrib of PHP (*why* this is so is beyond
> me - like it or not, MySQL is the most widely used linux web database
> nowadays). So I download the latest I could find off ftp.linuxppc.org's rpm
> archives (does YDL even maintain rpm archives of their own?) The loadable
> module is version is php-MySQL-3.0.13-1.ppc.rpm.

I believe the reason why the MySQL version on the CD was sorta broken was
because it was an old GPL'd version. Ever since they've GPL'd the newer
releases I believe we'll be getting a better/newer version in the future.

> Now whenever I enable MySQL support in php3.ini (uncommenting the
> extension=mysql.so line - and I have already checked that it's in the
> /usr/lib/apache dir) it chokes php altogether - no php files get processed
> at all.
>
> What's going on? Can anyone tell me what hoops I still need to jump through?
> I just want to get a basic web system up and running. This experience is
> making me look longingly at my FreeBSD machines and check up on the Mac port
> of FreeBSD.

There isn't - AFAIK - a Mac port of FreeBSD (there is one of NetBSD but
it's not for the faint of heart yet). If you want to get Apache/PHP/MySQL
working together keep with YDL - it works great.

Here's some instructions on how to get them all working together:

<http://lists.yellowdoglinux.com/yellowdog-general/June00/0310.html>

Be sure to use PHP 4.0.0 or 3.0.16 as the newest version (4.0.1pl2)
appears to have some minor glitches.

--
Darron
darron@froese.org



This archive was generated by hypermail 2a24 : Tue Aug 01 2000 - 22:41:56 MDT