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.
Getting closer but still not there!!
Moderators: Developers, Moderators
-
- Posts: 10
- Joined: Fri Sep 06, 2002 2:18 pm
Getting closer but still not there!!
Linux Newbie, But LOVING IT!!
This error
-Ian
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:Fatal error: Call to undefined function: mysql_connect()
Code: Select all
./configure --with-mysql
-
- Posts: 10
- Joined: Fri Sep 06, 2002 2:18 pm
Side note:raX wrote:This error
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:Fatal error: Call to undefined function: mysql_connect()
-IanCode: Select all
./configure --with-mysql
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.
Then things get worse.
Who is online
Users browsing this forum: No registered users and 9 guests