dienste:bytecluster0002:cloud

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dienste:bytecluster0002:cloud [21.02.2021 14:16] – Crontab mape2kdienste: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 /var/www/public_html/occ ...**     - Nutzung von OCC: **sudo -u www-data /var/www/public_html/occ ...**
 +
 +==== Backup  ====
 +
 +  Dateien per Shell sichern
 +    - cd /var/www/public_html
 +    - sudo -u www-data php occ maintenance:mode --on
 +    - sudo tar -cpzf //nc_backup_`date +"%Y%m%d"`.tar.gz -C /var/www/public_html/ .
  
 ===== Installation ===== ===== Installation =====
Zeile 39: Zeile 46:
  
   - NGINX und PHP-FPM installieren   - NGINX und PHP-FPM installieren
-    * **sudo apt-get install php7.3 php7.3-cli php7.3-fpm php7.3-curl php7.3-gd php7.3-json php7.3-xml php7.3-mbstring php7.3-zip php7.3-mysql php7.3-bz2 php7.3-intl php7.3-bcmath php7.3-gmp php-imagick nginx**+    * **sudo apt-get install php8.2 php8.2-cli php8.2-fpm php8.2-curl php8.2-gd php8.2-xml php8.2-mbstring php8.2-zip php8.2-mysql php8.2-bz2 php8.2-intl php8.2-bcmath php8.2-gmp php-imagick nginx**
   - Default-Konfiguration anpassen<file|/etc/nginx/sites-available/default>   - Default-Konfiguration anpassen<file|/etc/nginx/sites-available/default>
 server { server {
Zeile 70: Zeile 77:
         add_header X-Frame-Options                      "SAMEORIGIN"    always;         add_header X-Frame-Options                      "SAMEORIGIN"    always;
         add_header X-Permitted-Cross-Domain-Policies    "none"          always;         add_header X-Permitted-Cross-Domain-Policies    "none"          always;
-        add_header X-Robots-Tag                         "none         always;+        add_header X-Robots-Tag                         "noindex,nofollow         always;
         add_header X-XSS-Protection                     "1; mode=block" always;         add_header X-XSS-Protection                     "1; mode=block" always;
  
Zeile 129: Zeile 136:
             fastcgi_param front_controller_active true;     # Enable pretty urls             fastcgi_param front_controller_active true;     # Enable pretty urls
             #fastcgi_pass php-handler;             #fastcgi_pass php-handler;
-     fastcgi_pass unix:/run/php/php7.3-fpm.sock;+     fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    
             fastcgi_intercept_errors on;             fastcgi_intercept_errors on;
Zeile 153: Zeile 160:
 } }
 </file>  </file> 
-  - PHP-Konfiguration für Upload anpassen<file|/etc/php/7.3/fpm/pool.d/www.conf>+  - PHP-Konfiguration für Upload anpassen<file|/etc/php/8.2/fpm/pool.d/www.conf>
 ... ...
 clear_env = no clear_env = no
Zeile 164: Zeile 171:
 ... ...
 </file> </file>
-  - PHP-Konfiguration für Upload anpassen<file|/etc/php/7.3/fpm/php.ini> +  - PHP-Konfiguration für Upload anpassen<file|/etc/php/8.2/fpm/conf.d/99-local.ini>
-... +
-; 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's output exceeds this setting, PHP +
-; 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://php.net/max-execution-time 
-; 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://php.net/memory-limit 
 memory_limit = 512M memory_limit = 512M
-... 
-; Temporary directory for HTTP uploaded files (will use system default if not 
-; specified). 
-; http://php.net/upload-tmp-dir 
 upload_tmp_dir = /var/www/tmp upload_tmp_dir = /var/www/tmp
-... 
-; 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://php.net/post-max-size 
 post_max_size = 512M post_max_size = 512M
-... 
-; Maximum allowed size for uploaded files. 
-; http://php.net/upload-max-filesize 
 upload_max_filesize = 512M upload_max_filesize = 512M
-... 
 </file> </file>
   - Dienste aktivieren und neustarten   - Dienste aktivieren und neustarten
-    * **sudo systemctl enable nginx.service php7.3-fpm.service** +    * **sudo systemctl enable nginx.service php8.2-fpm.service** 
-    * **sudo systemctl restart nginx.service php7.3-fpm.service**+    * **sudo systemctl restart nginx.service php8.2-fpm.service**
  
 ==== Nextcloud ==== ==== Nextcloud ====
Zeile 237: Zeile 208:
         - /root         - /root
         - /var/log         - /var/log
-        - /var/www+        - /var/www/data 
 +        - /var/www/public_html
 ... ...
 </file> </file>
  • dienste/bytecluster0002/cloud.1613913391.txt.gz
  • Zuletzt geändert: 21.02.2021 14:16
  • von mape2k