I just installed PIA 2.9 (patch method) over top of a fresh + patched 0.8.7g (from source, not RPM) install on FC15.
Before I installed PIA 2.9, I hit /cacti with a browser and got the login screen, could login no problem.
After installing PIA 2.9, /cacti doesn't load anymore, and I get some plugin errors in the logs:
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] PHP Warning: include_once(/var/www/html/cacti/lib/plugins.php): failed to open stream: Permission denied in /var/www/html/cacti/include/global.php on line 205
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] PHP Warning: include_once(): Failed opening '/var/www/html/cacti/lib/plugins.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/include/global.php on line 205
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] PHP Warning: include_once(/var/www/html/cacti/include/plugins.php): failed to open stream: Permission denied in /var/www/html/cacti/include/global.php on line 206
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] PHP Warning: include_once(): Failed opening '/var/www/html/cacti/include/plugins.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/include/global.php on line 206
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] PHP Fatal error: Call to undefined function api_plugin_hook() in /var/www/html/cacti/include/global_arrays.php on line 663
[Sat Jul 02 10:39:38 2011] [error] [client 192.168.66.117] File does not exist: /var/www/html/favicon.ico, referer: http://10.219.51.130/cacti/
- I've gone ahead and made sure that the include/configure.php has the proper DB credentials and backed it up with a command line login to the DB using the configured credentials.
- I've checked the file permissions (everything owned by root:root except log/ and rra/ which are owned by system user cacti).
Not sure what else to check. Everything I've checked in the forums doesn't pertain to my particular case.
Any advice?
Call to undefined function api_plugin_hook()
Moderators: Developers, Moderators
Re: Call to undefined function api_plugin_hook()
Just as an addendum, I copied the everything from the PIA 2.9 cacti-plugin-arch/files-0.8.7g/ dir over to my cacti install dir. Now I'm getting a different error:
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(./include/auth.php): failed to open stream: Permission denied in /var/www/html/cacti/index.php on line 25
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(): Failed opening './include/auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/index.php on line 25
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(./include/top_header.php): failed to open stream: Permission denied in /var/www/html/cacti/index.php on line 26
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(): Failed opening './include/top_header.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/index.php on line 26
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Fatal error: Call to undefined function api_plugin_hook() in /var/www/html/cacti/index.php on line 28
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] File does not exist: /var/www/html/favicon.ico, referer: http://monitor01.77mowat506/cacti/
I verified, once again, the credentials in include/config.php, and they all check out.
I also tried to set the permissions and owners to root and apache, as well as chmod 755 all the files, but no variations on either of those attempts made any difference.
I've already tried to blow away the entire thing and re-install it and I can duplicate this at will, so there's either something wrong in one of the distributions or I'm missing something key in the installation procedure for PIA.
Would be grateful for any assistance.
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(./include/auth.php): failed to open stream: Permission denied in /var/www/html/cacti/index.php on line 25
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(): Failed opening './include/auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/index.php on line 25
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(./include/top_header.php): failed to open stream: Permission denied in /var/www/html/cacti/index.php on line 26
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Warning: include(): Failed opening './include/top_header.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacti/index.php on line 26
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] PHP Fatal error: Call to undefined function api_plugin_hook() in /var/www/html/cacti/index.php on line 28
[Sat Jul 02 18:04:42 2011] [error] [client 192.168.66.117] File does not exist: /var/www/html/favicon.ico, referer: http://monitor01.77mowat506/cacti/
I verified, once again, the credentials in include/config.php, and they all check out.
I also tried to set the permissions and owners to root and apache, as well as chmod 755 all the files, but no variations on either of those attempts made any difference.
I've already tried to blow away the entire thing and re-install it and I can duplicate this at will, so there's either something wrong in one of the distributions or I'm missing something key in the installation procedure for PIA.
Would be grateful for any assistance.
Who is online
Users browsing this forum: No registered users and 0 guests