Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


cmd.php: mysql_connect() undefined???

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
roastbeast
Guest





PostPosted: Wed Sep 17, 2003 10:43 am    Post subject: cmd.php: mysql_connect() undefined??? Reply with quote

Folks,

I've migrated myself to the newest cacti (debian sarge still has a 0.6 package, sigh) and am having extreme difficulty with the cmd.php cronjob. My graphs won't show up because my RRDs won't update, and it appears that this is why:

# php4 /usr/share/cacti/cmd.php
X-Powered-By: PHP/4.1.2
Content-type: text/html

<br />
<b>Fatal error</b>: Call to undefined function: mysql_connect() in <b>/usr/share/cacti/include/adodb/drivers/adodb-mysql.inc.php</b>on line <b>212</b><br />

Any idea whats going on here? This is a debian sarge system that was working fine with version 0.6.8, and has the following database drivers installed for PHP:

libphp-adodb 3.80-1
php4-mysql 4.1.2-6woody3
php4-odbc 4.1.2-6woody3

I'm stumped!
Back to top
roastbeast
Guest





PostPosted: Wed Sep 17, 2003 11:03 am    Post subject: The fix for Debian Reply with quote

I have resolved the issue, which was that mysql.so was not explicitly specified as an extension in my php.ini. According to the php.ini that comes default with debian, it is built in and not necessary to ever add this as a shared object, which is untrue. Adding extension=mysql.so immediately fixed this problem.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group