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

Transition apache_high_php_limits: -> nginx_high_php_limits: False/True [for Nextcloud, WordPress, Moodle] #2109

Closed
holta opened this issue Jan 6, 2020 · 5 comments

Comments

@holta
Copy link
Member

holta commented Jan 6, 2020

  1. Does IIAB's apache_high_php_limits: False/True (as set in /etc/iiab/local_vars.yml) work with NGINX today?

  2. If not, what's needed to get it working? This is needed by schools requiring intensive usage of WordPress, Nextcloud, Moodle etc.

  3. Should the variable be renamed to high_php_limits to serve both Apache and NGINX?

Refs: #224 #1147 #1165 #1166 #1288 #2052 #2108

@tim-moody
Copy link
Contributor

  1. no, but there are articles on optimizing php in nginx. also, except for wordpress, the php apps are still served by apache.
  2. how do you know it's needed by nginx, that the performance profile is the same as apache? Is it an apache setting or a php setting?
  3. don't think we know yet

@holta
Copy link
Member Author

holta commented Jan 6, 2020

Is it an apache setting or a php setting?

It's set in /etc/php/7.2/apache2/php.ini (on Ubuntu 18.04) or /etc/php/7.3/apache2/php.ini (on Raspbian Buster) as explained here: https://github.com/iiab/iiab/blob/master/roles/httpd/tasks/enable.yml#L1-L14

Can someone (@ericnitschke?) make any kind of NGINX recommendation here (for larger schools & computer labs) even if worst case we have to revise that later, based on field experience?

@holta
Copy link
Member Author

holta commented Jan 8, 2020

Nextcloud isn't yet natively served by NGINX, but FYI to help @m-anish & all of us navigate this...a fresh install of IIAB (on Ubuntu 19.10) shows:

Security & setup warnings
...
The PHP memory limit is below the recommended value of 512MB.

You can get to this page (http://10.8.0.46/nextcloud/index.php/settings/admin/overview) by clicking http://10.8.0.46/nextcloud > (circle containing 'A' in top-right) > Settings (in dropdown) > Overview (in Administration section, in left panel).

@holta holta changed the title Can apache_high_php_limits: False/True work with NGINX? Can apache_high_php_limits: False/True work with NGINX? [for Nextcloud, WordPress, Moodle] Jan 8, 2020
@holta holta added the bug label Jan 9, 2020
@holta
Copy link
Member Author

holta commented Feb 18, 2020

Variable apache_high_php_limits: False/True has been replaced by nginx_high_php_limits: False/True

Documentation needs to be updated in places like http://FAQ.IIAB.IO !

Ref: PR #2255

@holta holta changed the title Can apache_high_php_limits: False/True work with NGINX? [for Nextcloud, WordPress, Moodle] Transition apache_high_php_limits: -> nginx_high_php_limits: False/True [for Nextcloud, WordPress, Moodle] Feb 18, 2020
@holta
Copy link
Member Author

holta commented Feb 18, 2020

Documentation updated at http://FAQ.IIAB.IO

@holta holta closed this as completed Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants