1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Set PHP limits right after PHP reqs/recs, so each role installs smoothly

This commit is contained in:
root 2022-12-29 11:48:17 -05:00
parent 3dbfabcd8d
commit 2a7eba7297
5 changed files with 20 additions and 20 deletions

View file

@ -12,6 +12,8 @@
# fatal: [127.0.0.1]: FAILED! => {"cache_control": "private, no-cache, no-store", "changed": false, "connection": "close", "content_type": "text/html; charset=utf-8", "date": "Wed, 15 Jun 2022 05:07:41 GMT", "elapsed": 0, "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "pragma": "no-cache", "redirected": false, "server": "nginx/1.18.0 (Ubuntu)", "set_cookie": "MATOMO_SESSID=psak3aem27vrdrt8t2f016600f; path=/; HttpOnly; SameSite=Lax", "status": 500, "transfer_encoding": "chunked", "url": "http://box.lan/matomo/index.php?action=welcome", "x_matomo_request_id": "fbfd2"}
# (Install Matomo's PHP requirements / recommendations here, e.g. 6 extensions)
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined

View file

@ -17,11 +17,6 @@
name: postgresql
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: True' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
# 2021-07-02: Let's monitor & learn from these 2 pages year-by-year:
# https://docs.moodle.org/19/en/PHP_settings_by_Moodle_version#PHP_Extensions_and_libraries
# https://github.com/moodlebox/moodlebox/blob/master/roles/packages/vars/main.yml
@ -49,6 +44,11 @@
- php{{ php_version }}-zip # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml
state: present
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: True' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
- name: "MOODLE PRE-RELEASE TESTING: Download (clone) {{ moodle_repo_url }} branch 'master' to {{ moodle_base }} (~389 MB initially, ~416 MB later) if OS PHP {{ php_version }} >= 8.2"
git:
repo: "{{ moodle_repo_url }}" # https://github.com/moodle/moodle

View file

@ -40,11 +40,6 @@
# var: php_new
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
# February 2020: See @m-anish's PR #2119 and follow-up PR #2258.
# 2021-07-06: If you're running Nextcloud 22+ in production, carefully check the latest required AND recommended prereqs:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@ -91,6 +86,10 @@
# state: present
# when: php_version is version('8.0', '<')
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
- name: Create dir {{ nextcloud_root_dir }} (by default 755 dirs & 644 files)
file:

View file

@ -2,11 +2,6 @@
# https://github.com/iiab/iiab/tree/master/roles/pbx#readme
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
# 2021-08-04: Non-native systemd service 'asterisk.service' (redirects via
# systemd-sysv-install, to '/etc/init.d/asterisk status' etc) is Enabled but
# Not Active at this point.
@ -67,6 +62,10 @@
# state: present
# when: php_version is version('8.0', '<')
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
- name: FreePBX - Install and configure Apache - if pbx_use_apache
include_tasks: apache.yml
when: pbx_use_apache

View file

@ -12,11 +12,6 @@
# can arise without warning when WordPress is online, since WordPress ~4.8
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
# 2021-06-29: PHP modules, covering "RECOMMENDED" and "OPTIONAL" sections here:
# https://make.wordpress.org/hosting/handbook/server-environment/
- name: Install libsodium23 + 8 PHP packages (run 'php -m' or 'php -i' to verify)
@ -44,6 +39,11 @@
# state: present
# when: php_version is version('8.0', '<')
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
include_tasks: roles/www_options/tasks/set-php-limits.yml
when: set_php_limits_done is undefined
- name: Delete {{ downloads_dir }}/wordpress.tar.gz if it exists
file:
path: "{{ downloads_dir }}/wordpress.tar.gz"