Getting closer but still not there!!

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cyberkatis
Posts: 10
Joined: Fri Sep 06, 2002 2:18 pm

Getting closer but still not there!!

Post by cyberkatis »

I installed under root and now at least it looks as though it's executing the .php script.

Now I get the error

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti-0.6.8a/include/database.php on line 19

mysql is running and I can connect to it via the mysql command. When I tried to use the command #mysqladmin -u root -p create cacti it gives me the error mysqladmin: connect to server 'localhost'
failed error: Access denied for user: root@localhost (Using password 'YES')

I did modify the config.php to reflect the new directory. I used the variable of 'localhost' instead of my machine name is this correct? I also used 'root' as the username and the password I used when I created the user. I feel it's really close now just missing one thing or so?!!!!

Thanks

Chris.
Linux Newbie, But LOVING IT!!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This error
Fatal error: Call to undefined function: mysql_connect()
Means that you do not have MySQL support in PHP. If you are using an rpm-based Linux distro, grab the php-mysql package and install that. If you are compiling from source, make sure to configure php as the following when compiling:

Code: Select all

./configure --with-mysql
-Ian
cyberkatis
Posts: 10
Joined: Fri Sep 06, 2002 2:18 pm

Thx

Post by cyberkatis »

Give it a try. Please ignore my last post!!

Thx.

Chris.
Linux Newbie, But LOVING IT!!
Japh
Posts: 7
Joined: Wed Sep 11, 2002 7:33 am

Post by Japh »

raX wrote:This error
Fatal error: Call to undefined function: mysql_connect()
Means that you do not have MySQL support in PHP. If you are using an rpm-based Linux distro, grab the php-mysql package and install that. If you are compiling from source, make sure to configure php as the following when compiling:

Code: Select all

./configure --with-mysql
-Ian
Side note:

On RH7.3 "Stock install", the (commented) entry on /etc/php.ini is:

;extension=php_mysql.dll

After installing the php-mysql package (for RH7.3), the correct (and uncommented, of course) entry has to be:

extension=mysql.so

Hope this helps too...
We're born naked, wet and hungry.
Then things get worse.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests