-
Notifications
You must be signed in to change notification settings - Fork 368
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
not possible to specify a custom php.ini file? #535
Comments
Hi @g4z I believe you could use the https://www.php.net/manual/en/configuration.file.php And call ppm like |
hi. fast reply! i created the config file at
i'm still getting the same result as before. ie. it seems the workers are still using the default i guess setting PHPRC at this "level" will ensure that PPM starts using this PHPRC value, but will this propogate down to the workers? maybe i'm even confused about which processes use which php.ini. i'm assuming that (in my scenario) the PPM process itself can use a certain php.ini (ie. /etc/php7/ppm/php.ini) but the worker processes can use another php.ini (eg. /etc/php7/worker/php.ini) i have a bit of a strange setup. i'm trying to integrate PPM into an existing setup. i will look into this further soon, but i got sidetracked right now. thanks for the suggestion. |
You're right, as the workers are started as independent processes from the main one, the PHPRC directive is probably not propagated, we should investigate that. As a workaround, the worker processes use php-cgi and a php-cgi.ini will take preference over php.ini. Assuming you don't have any more php-cgi stuff, you could probably use that. Could that work? |
this is more of a question because i didn't find any other resource to find this information.
is it possible to tell ppm to use a specific config file (php.ini) in the ppm.json config file for ppm?
for example, there already exists this option...
does something like this exist? or an alternative to achieve the same thing.
thanks
The text was updated successfully, but these errors were encountered: