Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP not recognizing MySQL

John
Guest
 
Posts: n/a
#1: Jul 17 '05
All:

I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been
using the MySQL database for other things but have now decided to use PHP.
Currently, I can't get PHP to recognize MySQL. I noticed that there is
no mysql.so file in the /usr/lib/php4 directory.

Please let me know what I need to do in order to get this working.

Thanks!

John

Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP not recognizing MySQL


John <john_tilly@hotmail.com> wrote:[color=blue]
> I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been
> using the MySQL database for other things but have now decided to use PHP.
> Currently, I can't get PHP to recognize MySQL. I noticed that there is
> no mysql.so file in the /usr/lib/php4 directory.
>
> Please let me know what I need to do in order to get this working.[/color]

First learn how to use you Linux machine!

Then upgrade to a supported recent version, RH9 is unsupported since a
few years back.

After that install the mysql modules, most propably named:
php-$VERSION-mysql.rpm

John
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP not recognizing MySQL


<snip>
[color=blue]
> First learn how to use you Linux machine![/color]
[color=blue][color=green]
>> Fair enough.[/color][/color]

<snip>
[color=blue]
> Then upgrade to a supported recent version, RH9 is unsupported since a
> few years back.[/color]
[color=blue][color=green]
>> Will likely do FC3 upgrade shortly. But until then...[/color][/color]

<snip>
[color=blue]
> After that install the mysql modules, most propably named:
> php-$VERSION-mysql.rpm[/color]
[color=blue][color=green]
>> Ah, the payload. I figured as much. I may even have to re-install
>> with this file included. Thanks much.[/color][/color]

John

Daniel Tryba
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP not recognizing MySQL


John <john_tilly@hotmail.com> wrote:[color=blue]
> <snip>
>[color=green]
>> After that install the mysql modules, most propably named:
>> php-$VERSION-mysql.rpm[/color]
>[color=green][color=darkred]
>>> Ah, the payload. I figured as much. I may even have to re-install
>>> with this file included. Thanks much.[/color][/color][/color]

No need to, just remember that RH9 is ancient and unsupported.

BTW please don't prepend a character used for quoting in your response.
Your reply is totally unreadable unless the reader compares it with the
original.

Steve
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP not recognizing MySQL


Daniel Tryba wrote:
[snip][color=blue]
>
> No need to, just remember that RH9 is ancient and unsupported.
>[/color]
Don't tell Godaddy that!
Tim Roberts
Guest
 
Posts: n/a
#6: Jul 17 '05

re: PHP not recognizing MySQL


Steve <ThisOne@Aint.valid> wrote:
[color=blue]
>Daniel Tryba wrote:
>[snip][color=green]
>>
>> No need to, just remember that RH9 is ancient and unsupported.
>>[/color]
>Don't tell Godaddy that![/color]

Don't tell the RedHat 5.2 server in my garage that, either. It's been up
for 452 consecutive days.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Daniel Tryba
Guest
 
Posts: n/a
#7: Jul 17 '05

re: PHP not recognizing MySQL


Tim Roberts <timr@probo.com> wrote:[color=blue][color=green][color=darkred]
>>> No need to, just remember that RH9 is ancient and unsupported.
>>>[/color]
>>Don't tell Godaddy that![/color]
>
> Don't tell the RedHat 5.2 server in my garage that, either. It's been up
> for 452 consecutive days.[/color]

That's the spirit: uptime is everything, screw security :)

Closed Thread


Similar PHP bytes