Help - problem connecting to mysql using php4, apache 2.0

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
hardawayd
Forum Newbie
Posts: 7
Joined: Fri Oct 18, 2002 12:33 pm

Help - problem connecting to mysql using php4, apache 2.0

Post by hardawayd »

I can not get php to connect to mysql for some reason. Could someone please help me. I an running redhat 8.0 apache 2.0.40, php4 and mysql.

The error I get is:

Warning: dbx: module 'mysql' not loaded.

thank you
User avatar
haagen
Forum Commoner
Posts: 79
Joined: Thu Jul 11, 2002 3:57 pm
Location: Sweden, Lund

Post by haagen »

Have you loaded the mysql module in your php.ini?

should look something like this:

Code: Select all

extension=mysql.so
(Im not running RH) but I assume they have parted the php-package into several small. So be sure to check if you have installed the php-mysql package.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

<?php phpinfo(); ?>
will tell you what extensions are loaded
hardawayd
Forum Newbie
Posts: 7
Joined: Fri Oct 18, 2002 12:33 pm

It is there as far as I can tell--take a look.

Post by hardawayd »

http://donhardaway.com/info.php

Check it out. Am I missing something?
Post Reply