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

Use php-dev.ini file for any PHP version #274

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rhea-machine
Copy link
Contributor

The php.ini template was only used if php_version < 7.0 or os != debian.
That doesn't make sense as a few variables having effect on it don't relate to any of those conditions. Also, I need some of those (like php_upload_max_filesize) in our Moodle projects (using Debian and PHP >= 7.0).
Therefore I propose to include it by default in the PHP role.

  • This PR is an Improvement

@rhea-machine rhea-machine force-pushed the php-ini-anywhere branch 2 times, most recently from e9b9988 to b491339 Compare August 13, 2019 16:15
Copy link

@sephii sephii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me except for the small change to be done. @chregu was there a reason for the custom php.ini file to be used only on non-debian or PHP < 7 boxes?

# notify: restart apache
# become: yes
- name: Configure mod-php
command: "{{ phpenmod }} {{ item }}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
command: "{{ phpenmod }} {{ item }}"
command: "{{ phpenmod }} php-dev"

And remove the with_items below.

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.

2 participants