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

fpm: manage runtime- and log directory based on params #688

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UiP9AV6Y
Copy link

instead of hardcoding the paths for the log- and runtime directory, calculate them based on the error_log and pid_file params respectively. the directories will not be managed if they are shared system locations like /var/log or /run (this is checked by ensuring the directories have php in their name, signalling that those are paths dedicated to PHP)

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

instead of hardcoding the paths for the log- and runtime directory,
calculate them based on the error_log and pid_file params respectively.
the directories will not be managed if they are shared system locations
like `/var/log` or `/run` (this is checked by ensuring the directories
have *php* in their name, signalling that those are paths dedicated
to PHP)
@UiP9AV6Y UiP9AV6Y force-pushed the feature_managed_fpm_basedir branch from 40cddc7 to 6c28623 Compare June 21, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant