Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui shows only info of domain where it is installed #78

Closed
ruzakuku opened this issue Jan 1, 2022 · 2 comments
Closed

Gui shows only info of domain where it is installed #78

ruzakuku opened this issue Jan 1, 2022 · 2 comments

Comments

@ruzakuku
Copy link

ruzakuku commented Jan 1, 2022

Greetings!

On one server (Centos 8 php-fpm 7.4 apache) all is okay. I installed the GUI on one domain and it shows the full info of cached files on all domains on the server.

But on another server (Centos 7 php-FCGId 7.4 apache), the GUI shows only the opcache info for the domain where it is uploaded! Global info (memory, keys etc) and cached files are only those of the domain.
If I upload the GUI on another domain, it also shows the data of the considered domain, though the "global options" that are entered in the 10-opcache.ini are correct.

Though it doesn't hurt for good working, it is a problem when we need to check the values. Any suggestion to solve this?

Thank you and warm wishes for the new year!

@amnuts
Copy link
Owner

amnuts commented Jan 8, 2022

Hi @ruzakuku - happy new year to you, too!

This sounds like it might be expected behaviour for way the two servers are set up, given that one is loaded with apache and one is as-and-when FCGI starts that instance.

This thread might give a bit more information on what you're seeing: #76

@MichaIng
Copy link

MichaIng commented Jan 8, 2022

Indeed, the GUI can only know about the OPcache usage of it's own OPcache instance, hence when it is accessed through Apache with mod_php, then it can only see the OPcache usage of that Apache webserver OPcache instance, when it is accessed with classic CGI, it can only see itself being cached, as a new PHP and OPcache instance is created, in which case OPcache itself often doesn't make sense 😉.

To be able to monitor and manage the OPcache for all web applications, all need to use the same FastCGI, i.e. PHP-FPM instance. In case of Apache one then often needs to actively configure it to not use it's internal mod_php but send PHP handler requests to the shared PHP-FPM server via mod_proxy_fcgi, which also requires using the event MPM. That is generally seen as the preferred setup nowadays, especially for high traffic websites since every single incoming request with MPM prefork + mod_php creates an own child process taking additional time and memory, while with event MPM and dedicated PHP-FPM server a (usually) already waiting handler thread is used on Apache and on PHP end, consuming nearly no additional memory or time for process spawning.

Repository owner locked and limited conversation to collaborators Jul 13, 2022
@amnuts amnuts converted this issue into discussion #85 Jul 13, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants