cmd.php error

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

Moderators: Developers, Moderators

Post Reply
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Post by drub »

that error ususally does indicate mysql was not compiled directly into php, create a file called info.php and in it put

<?php
phpinfo();
?>

open it in a browser
then look at the configure string used, and check for mysql support.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

My PHP binary was compiled using the following configure string:

./configure --with-mysql

Notice I did not did not compile PHP's MySQL support as a shared module. I'm not sure what difference this will make for you, but it is worth a try.

-Ian
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Post by drub »

Mine is the same as Rax.
./configure --with-mysql

I was wondering, on any of the scripts that you say do in fact talk to a database, are they using mysql_connect() ?

<font size=-1>[ This Message was edited by: drub on 2002-02-21 12:28 ]</font>
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

grip75: I am pretty confident that your solution is a simple php recompile away. If you grab the latest PHP source and untar. Run

./configure --with-mysql

then

make

You should end up with a 'php' executable file. You can copy this file anywhere in your path ("/usr/bin"). Tell me how that goes, if you have any problems we'd be more than happy to help.

-Ian
Guest

Post by Guest »

It works quite RedHat 7.2
grep in your rpm database (rpm -qva | grep php ...)
I have theese:
php-4.0.6-7
php-mysql-4.0.6-7
php-devel-4.0.6-7
mysql-3.23.41-1
mysql-server-3.23.41-1
apache-1.3.22-2
(well, among others)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests