Install cacti 0.8.8b in redhat 7.0
Moderators: Developers, Moderators
Install cacti 0.8.8b in redhat 7.0
Hi, Dear all
Recently I installed cacti 0.8.8b on redhat 7.0 following link "http://www.tecmint.com/install-cacti-ne ... ora-17-12/", but after installation, I got error message when I visit this cacti server from another host(running windows 2008R2) through link http://10.103.112.250/cacti, error information as following: "This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying)"
Below is some details:
1,When I visit http://10.103.112.250 I can see the Apache page, this means firewall and httpd are configured normal
2,Cacti.conf is as following
# On httpd 2.4, change "Require host localhost" to "Require all granted".
# On httpd 2.2, change "Allow from localhost" to "Allow from all".
Alias /cacti /usr/share/cacti
<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/cacti/install>
# mod_security overrides.
# Uncomment these if you use mod_security.
# allow POST of application/x-www-form-urlencoded during install
#SecRuleRemoveById 960010
# permit the specification of the rrdtool paths during install
#SecRuleRemoveById 900011
</Directory>
# These sections marked "Require all denied" (or "Deny from all")
# should not be modified.
# These are in place in order to harden Cacti.
<Directory /usr/share/cacti/log>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
<Directory /usr/share/cacti/rra>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
3, PHP, mysql, mariaDB cacti versions as below
[root@vincent112250 ~]# rpm -qa |grep php
php70w-cli-7.0.0-1.w7.x86_64
php70w-devel-7.0.0-1.w7.x86_64
php70w-mbstring-7.0.0-1.w7.x86_64
php70w-common-7.0.0-1.w7.x86_64
php70w-7.0.0-1.w7.x86_64
php70w-process-7.0.0-1.w7.x86_64
php-pear-1.9.4-21.el7.noarch
php70w-pdo-7.0.0-1.w7.x86_64
php70w-gd-7.0.0-1.w7.x86_64
php70w-snmp-7.0.0-1.w7.x86_64
php70w-xml-7.0.0-1.w7.x86_64
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 ~]# rpm -qa |grep mysql
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 ~]# rpm -qa |grep maria
mariadb-5.5.35-3.el7.x86_64
mariadb-libs-5.5.35-3.el7.x86_64
mariadb-server-5.5.35-3.el7.x86_64
[root@vincent112250 ~]# rpm -qa |grep cacti
cacti-0.8.8b-7.el7.noarch
4, db.php as following
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "password";
$database_port = "3306";
$database_ssl = false;
/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
//$url_path = "/cacti/";
/* Default session name - Session name must contain alpha characters */
//$cacti_session_name = "Cacti";
?>
5 I can use cacti/password to access database
[root@vincent112250 ~]# mysql -u cacti -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.35-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
I will be appreciate if you can give me any clue or tell me where can I find the log of PHP, cacti, or httpd for further troubleshooting. Thanks a lot
Recently I installed cacti 0.8.8b on redhat 7.0 following link "http://www.tecmint.com/install-cacti-ne ... ora-17-12/", but after installation, I got error message when I visit this cacti server from another host(running windows 2008R2) through link http://10.103.112.250/cacti, error information as following: "This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying)"
Below is some details:
1,When I visit http://10.103.112.250 I can see the Apache page, this means firewall and httpd are configured normal
2,Cacti.conf is as following
# On httpd 2.4, change "Require host localhost" to "Require all granted".
# On httpd 2.2, change "Allow from localhost" to "Allow from all".
Alias /cacti /usr/share/cacti
<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/cacti/install>
# mod_security overrides.
# Uncomment these if you use mod_security.
# allow POST of application/x-www-form-urlencoded during install
#SecRuleRemoveById 960010
# permit the specification of the rrdtool paths during install
#SecRuleRemoveById 900011
</Directory>
# These sections marked "Require all denied" (or "Deny from all")
# should not be modified.
# These are in place in order to harden Cacti.
<Directory /usr/share/cacti/log>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
<Directory /usr/share/cacti/rra>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
3, PHP, mysql, mariaDB cacti versions as below
[root@vincent112250 ~]# rpm -qa |grep php
php70w-cli-7.0.0-1.w7.x86_64
php70w-devel-7.0.0-1.w7.x86_64
php70w-mbstring-7.0.0-1.w7.x86_64
php70w-common-7.0.0-1.w7.x86_64
php70w-7.0.0-1.w7.x86_64
php70w-process-7.0.0-1.w7.x86_64
php-pear-1.9.4-21.el7.noarch
php70w-pdo-7.0.0-1.w7.x86_64
php70w-gd-7.0.0-1.w7.x86_64
php70w-snmp-7.0.0-1.w7.x86_64
php70w-xml-7.0.0-1.w7.x86_64
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 ~]# rpm -qa |grep mysql
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 ~]# rpm -qa |grep maria
mariadb-5.5.35-3.el7.x86_64
mariadb-libs-5.5.35-3.el7.x86_64
mariadb-server-5.5.35-3.el7.x86_64
[root@vincent112250 ~]# rpm -qa |grep cacti
cacti-0.8.8b-7.el7.noarch
4, db.php as following
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "password";
$database_port = "3306";
$database_ssl = false;
/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
//$url_path = "/cacti/";
/* Default session name - Session name must contain alpha characters */
//$cacti_session_name = "Cacti";
?>
5 I can use cacti/password to access database
[root@vincent112250 ~]# mysql -u cacti -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.35-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
I will be appreciate if you can give me any clue or tell me where can I find the log of PHP, cacti, or httpd for further troubleshooting. Thanks a lot
Re: Install cacti 0.8.8b in redhat 7.0
Anyone can help ?? thanks a lot
Re: Install cacti 0.8.8b in redhat 7.0
Some clue as below, every time when I tried to login to this server, I can get the error information for /var/log/httpd/error_log
[Tue Jan 05 21:47:04.256044 2016] [:error] [pid 7490] [client 10.35.83.91:62906] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
[Tue Jan 05 21:47:53.244063 2016] [:error] [pid 7493] [client 10.246.52.206:60074] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
[Tue Jan 05 21:48:40.778723 2016] [:error] [pid 7488] [client 10.35.83.91:62924] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
It's weird that I install the cacti by yum install, how this syntax error can happen ??? Is it a mis-match between the PHP version and cacti ??
The version are as following :
[root@vincent112250 cacti]# rpm -qa |grep php
php70w-cli-7.0.0-1.w7.x86_64
php70w-devel-7.0.0-1.w7.x86_64
php70w-mbstring-7.0.0-1.w7.x86_64
php70w-common-7.0.0-1.w7.x86_64
php70w-7.0.0-1.w7.x86_64
php70w-process-7.0.0-1.w7.x86_64
php-pear-1.9.4-21.el7.noarch
php70w-pdo-7.0.0-1.w7.x86_64
php70w-gd-7.0.0-1.w7.x86_64
php70w-snmp-7.0.0-1.w7.x86_64
php70w-xml-7.0.0-1.w7.x86_64
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 cacti]# rpm -qa |grep cacti
cacti-0.8.8b-7.el7.noarch
[Tue Jan 05 21:47:04.256044 2016] [:error] [pid 7490] [client 10.35.83.91:62906] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
[Tue Jan 05 21:47:53.244063 2016] [:error] [pid 7493] [client 10.246.52.206:60074] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
[Tue Jan 05 21:48:40.778723 2016] [:error] [pid 7488] [client 10.35.83.91:62924] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
It's weird that I install the cacti by yum install, how this syntax error can happen ??? Is it a mis-match between the PHP version and cacti ??
The version are as following :
[root@vincent112250 cacti]# rpm -qa |grep php
php70w-cli-7.0.0-1.w7.x86_64
php70w-devel-7.0.0-1.w7.x86_64
php70w-mbstring-7.0.0-1.w7.x86_64
php70w-common-7.0.0-1.w7.x86_64
php70w-7.0.0-1.w7.x86_64
php70w-process-7.0.0-1.w7.x86_64
php-pear-1.9.4-21.el7.noarch
php70w-pdo-7.0.0-1.w7.x86_64
php70w-gd-7.0.0-1.w7.x86_64
php70w-snmp-7.0.0-1.w7.x86_64
php70w-xml-7.0.0-1.w7.x86_64
php70w-mysql-7.0.0-1.w7.x86_64
[root@vincent112250 cacti]# rpm -qa |grep cacti
cacti-0.8.8b-7.el7.noarch
Re: Install cacti 0.8.8b in redhat 7.0
Same issue after upgrading to php7.
[Wed Jan 27 06:10:08.593413 2016] [:error] [pid 9983] [client 10.100.0.10:58039] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /public/www/cacti/lib/adodb/adodb.inc.php on line 866
8.8b on my end too. Were there some adjustments that would make 8.8f function in php7?
[Wed Jan 27 06:10:08.593413 2016] [:error] [pid 9983] [client 10.100.0.10:58039] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /public/www/cacti/lib/adodb/adodb.inc.php on line 866
8.8b on my end too. Were there some adjustments that would make 8.8f function in php7?
Re: Install cacti 0.8.8b in redhat 7.0
Nope, even with 8.8.g its busted.8.8b on my end too. Were there some adjustments that would make 8.8f function in php7?
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /srv/http/cacti/lib/adodb/adodb.inc.php on line 866
Bad code in /lib/adodb/adodb.inc.php
http://php.net/manual/en/reserved.keywords.php
"new" souldn't be used for functions. Anyone know a quick and dirty fix? or is there a planned fix? PHP7 support would be nice.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Install cacti 0.8.8b in redhat 7.0
You could try updating adodb to the latest version. 0.8.8f comes with 4.54, current adodb is 5.2: http://adodb.sourceforge.net/#docs
Not sure though what issues this may create
Not sure though what issues this may create
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
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
Re: Install cacti 0.8.8b in redhat 7.0
I scrapped the whole idea and started a new topic that was more specific. I've been way down the rabbit hole on this one, running the latest git and fighting session issues.. Thanks for the input, the adodb was definitely causing errors on my old install.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Install cacti 0.8.8b in redhat 7.0
Hi jayray,
Can you edit the topic then with a "Closed" and add the link to the new topic ?
Can you edit the topic then with a "Closed" and add the link to the new topic ?
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
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
Re: Install cacti 0.8.8b in redhat 7.0
I would, but it was originally liuyouxi1's topic. I hijacked it because I was having the same issues.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Install cacti 0.8.8b in redhat 7.0
Ups Then maybe he can look into the ADODB stuff
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
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
Who is online
Users browsing this forum: No registered users and 3 guests