Cacti 1.2.21 php issue
Moderators: Developers, Moderators
Cacti 1.2.21 php issue
Hello,
Hopefully someone could help me with a issue.
I have installed Cacti 1.2.21 and everything went smooth during installation, but when I login, it shows me that
PHP - Recommendations (web) and PHP - Recommendations (cli) have few issues.
On PHP - Recommendations (web) problem is that max_execution_time 30 >= 60 and I have setup 60 (tried with bigger number also) in php.ini and it does not see it, memory_limit and date.timezone are good.
PHP - Recommendations (cli) has problem with memory_limit and date.timezone.
I am using php7.1 and also php-fpm.
Hopefully someone will be able to help.
Thanks in advance
Hopefully someone could help me with a issue.
I have installed Cacti 1.2.21 and everything went smooth during installation, but when I login, it shows me that
PHP - Recommendations (web) and PHP - Recommendations (cli) have few issues.
On PHP - Recommendations (web) problem is that max_execution_time 30 >= 60 and I have setup 60 (tried with bigger number also) in php.ini and it does not see it, memory_limit and date.timezone are good.
PHP - Recommendations (cli) has problem with memory_limit and date.timezone.
I am using php7.1 and also php-fpm.
Hopefully someone will be able to help.
Thanks in advance
Re: Cacti 1.2.21 php issue
Did you restart php-fpm after change the php.ini for the web config? Also there should be a separate php.ini for the cli, which is why you are getting different settings for it.
Re: Cacti 1.2.21 php issue
Thanks for reply.
Yes, php-fpm was restarted and that is not issue (and working as normal). Also, there are two php.ini file installed in whole system. I change on both of them just to try to see if any effect and nothing. I removed semi colon just in case you wonder. I tried with selinux disabled and still show same result.
Someone quicky told me something like php-fpm admin pool or something is to be changed but i did not understand really, maybe that could help…
Thanks again for answer
Yes, php-fpm was restarted and that is not issue (and working as normal). Also, there are two php.ini file installed in whole system. I change on both of them just to try to see if any effect and nothing. I removed semi colon just in case you wonder. I tried with selinux disabled and still show same result.
Someone quicky told me something like php-fpm admin pool or something is to be changed but i did not understand really, maybe that could help…
Thanks again for answer
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Cacti 1.2.21 php issue
php-fpm has it's own timeout settings, and I've NOT been too successful at getting php-fpm to accept a "user defined" ini_set() value, which has driven me to drinking (more than I was before). So, there are two directives in php-fpm's configuration file that you need to be sensitive about. Let's look at the first, the php_admin_value:
This php_admin_value means that if you change or attempt to change the value of max_execution_time in a script, or even in your default php.ini setting, neither will work. This setting is pretty scary for me. The next one is important.
The php_value settings should be changeable inside of Cacti scripts, and this is where I pull my hair out.
Lastly, there is this (which may explain the issue):
https://www.php.net/manual/en/configura ... .modes.php
and this:
https://www.php.net/manual/en/configuration.changes.php
Which I have not assessed yet.
Code: Select all
php_admin_value[max_execution_time] = 60
Code: Select all
php_value[max_execution_time] = 60
Lastly, there is this (which may explain the issue):
https://www.php.net/manual/en/configura ... .modes.php
and this:
https://www.php.net/manual/en/configuration.changes.php
Which I have not assessed yet.
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 1.2.21 php issue
Thabks for very detailed reply Very kind.
I will be back soon to work and will investigate with this.
Have to say that i did not have this issue with Cacti 1.2.20 and i have used same configuration
Thanks loads
I will be back soon to work and will investigate with this.
Have to say that i did not have this issue with Cacti 1.2.20 and i have used same configuration
Thanks loads
TheWitness wrote: ↑Sun Jun 05, 2022 8:54 am php-fpm has it's own timeout settings, and I've NOT been two successful at getting php-fpm to accept a "user defined" ini_set() value, which has driven me to drinking (more than I was before). So, there are two directives in php-fpm's configuration file that you need to be sensitive about. Let's look at the first, the php_admin_value:
This php_admin_value means that if you change or attempt to change the value of max_execution_time in a script, or even in your default php.ini setting, neither will work. This setting is pretty scary for me. The next one is important.Code: Select all
php_admin_value[max_execution_time] = 60
The php_value settings should be changeable inside of Cacti scripts, and this is where I pull my hair out.Code: Select all
php_value[max_execution_time] = 60
Lastly, there is this (which may explain the issue):
https://www.php.net/manual/en/configura ... .modes.php
and this:
https://www.php.net/manual/en/configuration.changes.php
Which I have not assessed yet.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Cacti 1.2.21 php issue
Looking forward to the feedback.
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 1.2.21 php issue
Hello again,
Quick update about progress.
On PHP-FPM (PHP Web) side in www.conf i have missed line php_admin_value[max_execution_time] = 60, so when i add this it works perfect.
Now problem remain within PHP cli (php.ini i guess).
Cacti does not allow me to move forward as it says that memory_limit is 128M and date.timezone report as Error.
I have change this both and removed comment line, with 512M for memory limit and correct date.timezone and it does not see changes.
Also, max_execution_time value in my php.ini is 60 and Current reported on Cacti is 0 and it Passed for some reason.
I am still looking around for solution for this
Quick update about progress.
On PHP-FPM (PHP Web) side in www.conf i have missed line php_admin_value[max_execution_time] = 60, so when i add this it works perfect.
Now problem remain within PHP cli (php.ini i guess).
Cacti does not allow me to move forward as it says that memory_limit is 128M and date.timezone report as Error.
I have change this both and removed comment line, with 512M for memory limit and correct date.timezone and it does not see changes.
Also, max_execution_time value in my php.ini is 60 and Current reported on Cacti is 0 and it Passed for some reason.
I am still looking around for solution for this
Re: Cacti 1.2.21 php issue
Sadly, many lines in php.ini file were uncommented and that was error for me all the time.
Now it all work like charm.
Thanks a lot for your assistance, it helped alot!
Now it all work like charm.
Thanks a lot for your assistance, it helped alot!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Cacti 1.2.21 php issue [SOLVED]
Cool.
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?
Who is online
Users browsing this forum: No registered users and 1 guest