-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Closes #53, #60: Fix php.ini not applied for php-fpm on ubuntu #83
Conversation
Is the idempotence failure something having to do with the And thanks so much for this work so far—making my weekend and the next Drupal VM much easier! |
Hmm that's odd... let's see what's causing it. |
It looks like the two tasks that break idempotency are:
(Doing some local testing on VMWare). After the second run, everything's good to go :/ |
…p-fpm on ubuntu
Hmm very strange O.o I don't see how this commit good have caused that. Unfortunately I wont be able to test this more today. Hope you can figure out what's going on. |
Found it - Debian/Ubuntu configuration insanity strikes again! Here's what the config directory looks like immediately after PHP's first installation/fpm starts up:
Note that those are all symlinks to files inside After the first provision, that's still the structure of that directory. But after the second provision, the templated files are copied into place (since we have I'm going to fiddle with the ordering. Edit: Here's the before/after:
I tried setting |
Ugh. I do see what you mean about Ubuntu... I think I'll begin using centos for my base boxes after all this 😄 |
Yay! I have a fix. |
Adding more tasks for Debian because it's weird-- |
We'll see if the fix works; tested 3 times with different settings in 12/14 locally. |
This is a mergable PR for #82. I want to keep the old PR for historical reference in case we need to do similar scenario testing again. This works for all distros:
mod_php
I feel this is the best approach as a configuration change and a re-provision would create the new ini only if necessary. Instead of bloating the configs or complicating the role unnecessarily (trying to create apc/opcache ini files for all directories would be a nasty
with_nested
task).The docker build for PHP FPM only pass on Ubuntu 14.04 with the custom initctl mentioned here. Ubuntu 12.04 fails in the same way as in the before mentioned task. But the ini directories are the same for both 12.04 and 14.04.
CentoOS 6 tests for Apache with PHP FPM fail because of geerlingguy/drupal-vm#346 (comment)
The only questionable addition would be to somehow support
libapache2-mod-fastcgi
. This would mean detecting if the package is installed and if so, creating thephp.ini
in/etc/php5/cgi/php.ini
instead.