Please help (cacti is no longer loading)

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

Moderators: Developers, Moderators

Post Reply
UstasAlex
Posts: 22
Joined: Fri Dec 05, 2008 1:51 pm

Please help (cacti is no longer loading)

Post by UstasAlex »

I have cacti installed on freebsd box. It worked fine for a couple of months. but a few days ago my co-worker tryed to update php from ports and cacti crashed.
when Im accessig it through web interface
my bwoser says HTTP 500 internal error
and aapache log says following:

[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include(/usr/local/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/share/cacti/include/global.php on line 63
/usr/local/share/cacti/include/global.php(63) : Warning - include(/usr/local/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/include/config.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/share/cacti/include/global.php on line 63
/usr/local/share/cacti/include/global.php(63) : Warning - include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/include/config.php' for inclusion (include_path='.:/usr/local/share/pear')
[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include(/usr/local/share/cacti/lib/adodb/adodb.inc.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/share/cacti/include/global.php on line 205
/usr/local/share/cacti/include/global.php(205) : Warning - include(/usr/local/share/cacti/lib/adodb/adodb.inc.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/share/cacti/include/global.php on line 205
/usr/local/share/cacti/include/global.php(205) : Warning - include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/local/share/pear')
[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include(/usr/local/share/cacti/lib/database.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/local/share/cacti/include/global.php on line 206
/usr/local/share/cacti/include/global.php(206) : Warning - include(/usr/local/share/cacti/lib/database.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
[Sat Feb 14 21:19:58 2009] [error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/lib/database.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/share/cacti/include/global.php on line 206
/usr/local/share/cacti/include/global.php(206) : Warning - include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/share/cacti/lib/database.php' for inclusion (include_path='.:/usr/local/share/pear')
[Sat Feb 14 21:19:58 2009] [error] PHP Fatal error: Call to undefined function db_connect_real() in /usr/local/share/cacti/include/global.php on line 209
/usr/local/share/cacti/include/global.php(209) : Fatal error - Call to undefined function db_connect_real()

php version 5.2.8
cacti version 0.8.7b

php -i
shows that
extension_dir => /etc/php.d => /etc/php.d
but there is no php.d directory
though most of the files with extension *.so
are in /usr/local/lib/php/20060613-debug/
i tryed to create /etc/php.d and copy there the files by hand
but it didn't help.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Usually, /etc/php.d holds text files like /etc/php.d/snmp.ini. Those in turn define e.g.

Code: Select all

; Enable snmp extension module
extension=snmp.so
where snmp.so is a module to include snmp support
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest