Cacti on php 7.4

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

Moderators: Developers, Moderators

battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Cacti on php 7.4

Post by battossai »

Hi,

I try to install cacti 1.2.15 on Centos 8 use php 7.4 and MariaDB 10.4.15 with nginx 1.18.
I got this following error when try to execute /home/zeus/cacti/index.php :

PHP Warning: include(./include/auth.php): failed to open stream: No such file or directory in /home/zeus/cacti/index.php on line 25
PHP Warning: include(): Failed opening './include/auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/zeus/cacti/index.php on line 25
PHP Fatal error: Uncaught Error: Call to undefined function top_header() in /home/zeus/cacti/index.php:26
Stack trace:
#0 {main}
thrown in /home/zeus/cacti/index.php on line 26

The page is not showing anything on browser, event inside install folder.
Is it any issue using cacti on php 7.4 ?
Please help.
Thank you in advanced.
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti on php 7.4

Post by macan »

battossai wrote: Wed Nov 04, 2020 6:29 pm Hi,

I try to install cacti 1.2.15 on Centos 8 use php 7.4 and MariaDB 10.4.15 with nginx 1.18.
I got this following error when try to execute /home/zeus/cacti/index.php :

PHP Warning: include(./include/auth.php): failed to open stream: No such file or directory in /home/zeus/cacti/index.php on line 25
PHP Warning: include(): Failed opening './include/auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/zeus/cacti/index.php on line 25
PHP Fatal error: Uncaught Error: Call to undefined function top_header() in /home/zeus/cacti/index.php:26
Stack trace:
#0 {main}
thrown in /home/zeus/cacti/index.php on line 26

The page is not showing anything on browser, event inside install folder.
Is it any issue using cacti on php 7.4 ?
Please help.
Thank you in advanced.
First - check file and directory permission. Www server needs read permission for all in cacti directory.
Let the Cacti grow!
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

i think it's correct already.
The same permission is applyed for phpmyadmin directory.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti on php 7.4

Post by cigamit »

Is selinux enabled? Might try a quick "setenforce 0" just to see if its causing issues.
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

Nope ... always disable selinux
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti on php 7.4

Post by macan »

battossai wrote: Fri Nov 06, 2020 8:24 pm Nope ... always disable selinux
Please show:
ls -al /home/zeus/cacti/
ls -al /home/zeus/cacti/include

Maybe something in php.ini - include_path variable?
Let the Cacti grow!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti on php 7.4

Post by TheWitness »

There were some changes in 1.2.16 for PHP74 support.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

Nice info, i'll try it
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

[root@zeus ~]# php -f /home/zeus/cacti/index.php
PHP Warning: include(./include/auth.php): failed to open stream: No such file or directory in /home/zeus/cacti/index.php on line 25
PHP Warning: include(): Failed opening './include/auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/zeus/cacti/index.php on line 25
PHP Fatal error: Uncaught Error: Call to undefined function top_header() in /home/zeus/cacti/index.php:26
Stack trace:
#0 {main}
thrown in /home/zeus/cacti/index.php on line 26


Still got that error .... :roll:
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti on php 7.4

Post by TheWitness »

That looks like a setup problem to me.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

Where its can be ?
I just unpack ... set config.php match with database access, restore cacti.sql

I'm using nginx + php 7.4 btw.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti on php 7.4

Post by Osiris »

So, you are moving the database to a new server? If so, you may have some database errors if you are changing the install path. I see CentOS 8. Where did you get php from?
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti on php 7.4

Post by Osiris »

I'm really thinking permissions. I would not be running cacti out of a home directory honestly.
Before history, there was a paradise, now dust.
battossai
Posts: 22
Joined: Sun Sep 27, 2015 11:46 pm

Re: Cacti on php 7.4

Post by battossai »

Hi,

I'm creating new fresh cacti installation.
And now i have move to nginx default html directory, the result is still the same.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti on php 7.4

Post by Osiris »

I've got environment running on CentOS 8.3 w/o issue. So, it's something about your setup. I use the stock php.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests