Skip to content
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

different settings for cli and fpm #12

Open
Christian-Krupa opened this issue Sep 17, 2013 · 1 comment
Open

different settings for cli and fpm #12

Christian-Krupa opened this issue Sep 17, 2013 · 1 comment

Comments

@Christian-Krupa
Copy link

is there a way to configure different tests for the cli (console) and fpm (webserver) environment?

example: "max-execution-time" should be 0 on cli and 30 seconds on the fpm configuration.

@graste
Copy link
Owner

graste commented Sep 17, 2013

Not at the moment. We would need to consider the options on how to implement such a check.

That check would probably need to put a file into a publicy accessible folder in the docroot AND needs to check different things (PHP settings/extensions etc. pp.).

Many challenging things to consider here:

  • it may not always be allowed to put a file somewhere to make it accessible (permission wise)
    • in those cases the file(s) must already exists
  • is it necessary to create dependencies between checks to e.g. re-use the PhpSettingCheck and PhpExtensionCheck with the information array/string that was fetched via e.g. curl (which would need to available prior to this too)
  • does it make sense to perhaps nest and wrap checks, e.g. create a PhpFpmCheck that nests PhpSettingChecks and PhpExtensionChecks OR do we create a PhpFpmSettingCheck that works standalone
    • a standalone check would be nice in itselt, but would need to make a request for each instance with accessing a file in the docroot that may have to be put there first etc.

I would probably like to have a mechanism for the PhpSettingCheck and PhpExtensionCheck where they get there info string from a prior running PhpFpmData Check or fetch their info string for each instance via a file in the docroot.

Not sure what path to take for this. Am open to suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants