Cacti on php 7.4
Moderators: Developers, Moderators
Cacti on php 7.4
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.
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.
Re: Cacti on php 7.4
First - check file and directory permission. Www server needs read permission for all in cacti directory.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.
Let the Cacti grow!
Re: Cacti on php 7.4
i think it's correct already.
The same permission is applyed for phpmyadmin directory.
The same permission is applyed for phpmyadmin directory.
Re: Cacti on php 7.4
Is selinux enabled? Might try a quick "setenforce 0" just to see if its causing issues.
Re: Cacti on php 7.4
Nope ... always disable selinux
Re: Cacti on php 7.4
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!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Cacti on php 7.4
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?
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?
Re: Cacti on php 7.4
Nice info, i'll try it
Re: Cacti on php 7.4
[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 ....
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 ....
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Cacti on php 7.4
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?
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?
Re: Cacti on php 7.4
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.
I just unpack ... set config.php match with database access, restore cacti.sql
I'm using nginx + php 7.4 btw.
Re: Cacti on php 7.4
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.
Re: Cacti on php 7.4
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.
Re: Cacti on php 7.4
Hi,
I'm creating new fresh cacti installation.
And now i have move to nginx default html directory, the result is still the same.
I'm creating new fresh cacti installation.
And now i have move to nginx default html directory, the result is still the same.
Re: Cacti on php 7.4
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.
Who is online
Users browsing this forum: tembarek and 0 guests