Install cacti0.8.8g on RHEL6.1

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
skywing88
Posts: 10
Joined: Tue Mar 01, 2016 9:38 pm

Install cacti0.8.8g on RHEL6.1

Post by skywing88 »

HI, Dear All
I need some help. I'm a novice to cacti. Recently I downloaded the cacti0.8.8g , which is the release latest version, and installed it on RHEL6.1 step by step following the manual. After edit of /etc/crontab, I got the error information (HTTP 500 Internal Server Error) when attempting to open the page "http://192.168.1.7/cacti".
However, The apache page and phpinfo page can be displayed without problem, which means firewall and httpd are normally configured.
Besides, SELinux is disabled as well.

I will be appreciate if anyone can give me any instruction or tell me what I should do for further troubleshooting. Thanks a lot!![/b]
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Install cacti0.8.8g on RHEL6.1

Post by phalek »

First of all, enable php error logging by uncommenting the following line in /etc/php.ini :

Code: Select all

error_log = syslog
Then restart apache and go to that page again. You should be able to see PHP error showing up in your syslog then, telling you what may be wrong.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
skywing88
Posts: 10
Joined: Tue Mar 01, 2016 9:38 pm

Re: Install cacti0.8.8g on RHEL6.1

Post by skywing88 »

phalek wrote:First of all, enable php error logging by uncommenting the following line in /etc/php.ini :

Code: Select all

error_log = syslog
Then restart apache and go to that page again. You should be able to see PHP error showing up in your syslog then, telling you what may be wrong.
Thanks for replying, I have enabled php error logging as u have advised. but find that nothing has been logged in the /var/log/message after visiting that page again. Is the /var/log/message where the syslog is recorded?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Install cacti0.8.8g on RHEL6.1

Post by phalek »

For RedHat/CentOs, yes, /var/log/messages is the place to go.

Did you restart apache/httpd ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
skywing88
Posts: 10
Joined: Tue Mar 01, 2016 9:38 pm

Re: Install cacti0.8.8g on RHEL6.1

Post by skywing88 »

The log is as following.

[root@RHEL6for-Cacit log]# cat /var/log/messages
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysql.so' - /etc/php.d/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:43:21 RHEL6for-Cacit httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/zip.so' - /etc/php.d/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysql.so' - /etc/php.d/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 3 20:45:01 RHEL6for-Cacit php: PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/zip.so' - /etc/php.d/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Install cacti0.8.8g on RHEL6.1

Post by phalek »

That's not the path where these libs are usually in...

/etc/php.d/

It's either in ( 32bit RHEL/CentOS ):
extension_dir => /usr/lib/php/modules => /usr/lib/php/modules

or ( 64bit RHEL/CentOS ):
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
skywing88
Posts: 10
Joined: Tue Mar 01, 2016 9:38 pm

Re: Install cacti0.8.8g on RHEL6.1

Post by skywing88 »

phalek wrote:That's not the path where these libs are usually in...

/etc/php.d/

It's either in ( 32bit RHEL/CentOS ):
extension_dir => /usr/lib/php/modules => /usr/lib/php/modules

or ( 64bit RHEL/CentOS ):
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Thank u very much! phalek, I used "ln -s /usr/lib/php/modules/* /etc/php.d" command. Cause according to the manual ,the extension_dir is pointed to "/etc/php.d"
Now I can see the page:
Attachments
捕获1.JPG
捕获1.JPG (70.13 KiB) Viewed 1281 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Install cacti0.8.8g on RHEL6.1

Post by phalek »

I see.

That's for really old PHP installs only ( 4.x ? ) so you shouldn't have used that.

I'Ve created a blog post with the install steps on a RHEL6 / RHEL7 system which should take care about everything you need ( except it's for 0.8.8f , but the steps are usually the same for 0.8.8g):
http://blog.network-outsourcing.de/cact ... ing-cacti/
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
skywing88
Posts: 10
Joined: Tue Mar 01, 2016 9:38 pm

Re: Install cacti0.8.8g on RHEL6.1

Post by skywing88 »

phalek wrote:I see.

That's for really old PHP installs only ( 4.x ? ) so you shouldn't have used that.

I'Ve created a blog post with the install steps on a RHEL6 / RHEL7 system which should take care about everything you need ( except it's for 0.8.8f , but the steps are usually the same for 0.8.8g):
http://blog.network-outsourcing.de/cact ... ing-cacti/
Mine is PHP-5.3.3. You are right. I have changed "extension=/etc/php.d" to "extension=/etc/lib/php/modules". It's also ok to open the page of installation.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests