Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
dienste:bytecluster0002:cloud [21.02.2021 14:35] – mape2k | dienste:bytecluster0002:cloud [05.08.2023 22:06] (aktuell) – Upgrade PHP 8.2 mape2k | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
* 2 Cores | * 2 Cores | ||
* 5 GB HDD (root-fs) | * 5 GB HDD (root-fs) | ||
- | * 35 GB HDD (/var/www) | + | * 40 GB HDD (/var/www) |
===== System ===== | ===== System ===== | ||
Zeile 31: | Zeile 31: | ||
- Angezeigte Fehler prüfen und korrigieren | - Angezeigte Fehler prüfen und korrigieren | ||
- Nutzung von OCC: **sudo -u www-data / | - Nutzung von OCC: **sudo -u www-data / | ||
+ | |||
+ | ==== Backup | ||
+ | |||
+ | Dateien per Shell sichern | ||
+ | - cd / | ||
+ | - sudo -u www-data php occ maintenance: | ||
+ | - sudo tar -cpzf // | ||
===== Installation ===== | ===== Installation ===== | ||
Zeile 39: | Zeile 46: | ||
- NGINX und PHP-FPM installieren | - NGINX und PHP-FPM installieren | ||
- | * **sudo apt-get install | + | * **sudo apt-get install |
- Default-Konfiguration anpassen< | - Default-Konfiguration anpassen< | ||
server { | server { | ||
Zeile 70: | Zeile 77: | ||
add_header X-Frame-Options | add_header X-Frame-Options | ||
add_header X-Permitted-Cross-Domain-Policies | add_header X-Permitted-Cross-Domain-Policies | ||
- | add_header X-Robots-Tag | + | add_header X-Robots-Tag |
add_header X-XSS-Protection | add_header X-XSS-Protection | ||
Zeile 129: | Zeile 136: | ||
fastcgi_param front_controller_active true; # Enable pretty urls | fastcgi_param front_controller_active true; # Enable pretty urls | ||
# | # | ||
- | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
fastcgi_intercept_errors on; | fastcgi_intercept_errors on; | ||
Zeile 153: | Zeile 160: | ||
} | } | ||
</ | </ | ||
- | - PHP-Konfiguration für Upload anpassen< | + | - PHP-Konfiguration für Upload anpassen< |
... | ... | ||
clear_env = no | clear_env = no | ||
Zeile 164: | Zeile 171: | ||
... | ... | ||
</ | </ | ||
- | - PHP-Konfiguration für Upload anpassen< | + | - PHP-Konfiguration für Upload anpassen< |
- | ... | + | |
- | ; Output buffering is a mechanism for controlling how much output data | + | |
- | ; (excluding headers and cookies) PHP should keep internally before pushing that | + | |
- | ; data to the client. If your application' | + | |
- | ; will send that data in chunks of roughly the size you specify. | + | |
- | ; Turning on this setting and managing its maximum buffer size can yield some | + | |
- | ; interesting side-effects depending on your application and web server. | + | |
- | ; You may be able to send headers and cookies after you've already sent output | + | |
- | ; through print or echo. You also may see performance benefits if your server is | + | |
- | ; emitting less packets due to buffered output versus PHP streaming the output | + | |
- | ; as it gets it. On production servers, 4096 bytes is a good setting for performance | + | |
- | ; reasons. | + | |
output_buffering = 0 | output_buffering = 0 | ||
- | ... | ||
- | ; Maximum execution time of each script, in seconds | ||
- | ; http:// | ||
- | ; Note: This directive is hardcoded to 0 for the CLI SAPI | ||
max_execution_time = 1800 | max_execution_time = 1800 | ||
- | ... | ||
- | ; Maximum amount of time each script may spend parsing request data. It's a good | ||
- | ; idea to limit this time on productions servers in order to eliminate unexpectedly | ||
- | ; long running scripts. | ||
max_input_time = 1800 | max_input_time = 1800 | ||
- | ... | ||
- | ; Maximum amount of memory a script may consume (128MB) | ||
- | ; http:// | ||
memory_limit = 512M | memory_limit = 512M | ||
- | ... | ||
- | ; Temporary directory for HTTP uploaded files (will use system default if not | ||
- | ; specified). | ||
- | ; http:// | ||
upload_tmp_dir = / | upload_tmp_dir = / | ||
- | ... | ||
- | ; Maximum size of POST data that PHP will accept. | ||
- | ; Its value may be 0 to disable the limit. It is ignored if POST data reading | ||
- | ; is disabled through enable_post_data_reading. | ||
- | ; http:// | ||
post_max_size = 512M | post_max_size = 512M | ||
- | ... | ||
- | ; Maximum allowed size for uploaded files. | ||
- | ; http:// | ||
upload_max_filesize = 512M | upload_max_filesize = 512M | ||
- | ... | ||
</ | </ | ||
- Dienste aktivieren und neustarten | - Dienste aktivieren und neustarten | ||
- | * **sudo systemctl enable nginx.service | + | * **sudo systemctl enable nginx.service |
- | * **sudo systemctl restart nginx.service | + | * **sudo systemctl restart nginx.service |
==== Nextcloud ==== | ==== Nextcloud ==== |