redhat:other-redhat:nextcloud-server-redhat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:other-redhat:nextcloud-server-redhat [2020/06/06 14:54] – [Installation und Konfiguration Pakete] michaelredhat:other-redhat:nextcloud-server-redhat [2021/05/21 08:12] (current) – [Installation und Konfiguration Pakete] michael
Line 23: Line 23:
  
 # yum module reset php # yum module reset php
-yum module install php:remi-7.3+dnf module install php:remi-7.4
 </code> </code>
  
Line 55: Line 55:
 # vim /etc/httpd/conf.d/nextcloud.conf # vim /etc/httpd/conf.d/nextcloud.conf
 </code> <sxh bash; first-line: 1> </code> <sxh bash; first-line: 1>
-ServerName cloud.blackgate.org +Listen 7030
-ServerTokens Prod +
-ServerSignature Off+
  
-SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on+<VirtualHost *:7030> 
 +    ServerAdmin michu@michu-it.com 
 +    ServerName cloud.michu-it.com
  
-#Redirect 301 /.well-known/carddav https://cloud.blackgate.org/remote.php/dav +    TimeOut 300 
-#Redirect 301 /.well-known/caldav https://cloud.blackgate.org/remote.php/dav+    ProxyTimeOut 300
  
-<Directory "/var/www/html/nextcloud"> +    SetEnvIf X-Forwarded-Proto "^https$HTTPS=on 
-     Options +FollowSymlinks +    ServerSignature Off
-     AllowOverride All+
  
-     <IfModule mod_dav.c> +    ErrorLog "/var/log/httpd/nextcloud-error_log" 
-         Dav off +    CustomLog "/var/log/httpd/nextcloud-access_log" combined
-     </IfModule>+
  
-     SetEnv HOME /var/www/html/nextcloud +    DocumentRoot "/var/www/html/nextcloud"
-     SetEnv HTTP_HOME /var/www/html/nextcloud+
  
-     Require all granted +    <Directory "/var/www/html/nextcloud"> 
-</Directory>+        DirectoryIndex index.html index.php 
 +        Options SymLinksifOwnerMatch 
 +        AllowOverride All 
 +       <IfModule mod_dav.c> 
 +            Dav off 
 +       </IfModule> 
 +        SetEnv HOME /var/www/html/nextcloud 
 +        SetEnv HTTP_HOME /var/www/html/nextcloud
  
-<IfModule reqtimeout_module> +        Require all granted 
-    RequestReadTimeout body=0 +    </Directory>
-</IfModule> +
-Header set X-Content-Type-Options: "nosniff" +
-Header set X-Frame-Options: "sameorigin"+
  
-#------------------------------------------------------------------------------ +    <IfModule reqtimeout_module
-#                   phpMyAdmin VirtualHost Configuration +        RequestReadTimeout body=0 
-#------------------------------------------------------------------------------ +    </IfModule>
-Listen 81 +
-<VirtualHost *:81+
-     ServerName cloud.blackgate.org +
-     ServerAdmin webmaster@localhost +
-     DocumentRoot /var/www/html/php_my_admin+
  
-     <Directory "/var/www/html/php_my_admin"> +    Header set X-Content-Type-Options: "nosniff
-             Options -Indexes +FollowSymLinks +    Header set X-Frame-Options: "sameorigin" 
-             AllowOverride None +    Header always set Content-Security-Policy "connect-src 'self' analytics.michu-it.com:443"
-             Require ip 192.168.+
-             Require ip 127.0.0.1 +
-             Require ip ::1 +
-     </Directory>+
  
 </VirtualHost> </VirtualHost>
Line 136: Line 128:
 # sed -i "s/memory_limit = .*/memory_limit = 1024M/" /etc/php.ini # sed -i "s/memory_limit = .*/memory_limit = 1024M/" /etc/php.ini
  
-# sed -i "s/memory_limit = .*/memory_limit 1024M/" /etc/php.ini +# sed -i "s/;listen.owner = nobody/listen.owner = apache/" /etc/php-fpm.d/www.conf 
-# sed -i "s/memory_limit = .*/memory_limit 1024M/" /etc/php.ini +# sed -i "s/;listen.group = nobody/listen.group = apache/" /etc/php-fpm.d/www.conf 
-# sed -i "s/memory_limit = .*/memory_limit 1024M/" /etc/php.ini+# sed -i "s/;listen.mode = 0660/listen.mode = 0660/" /etc/php-fpm.d/www.conf 
 + 
 +# sed -i "s/pm.max_children = .*/pm.max_children 120/" /etc/php-fpm.d/www.conf 
 +# sed -i "s/pm.start_servers = .*/pm.start_servers 12/" /etc/php-fpm.d/www.conf 
 +# sed -i "s/pm.min_spare_servers = .*/pm.min_spare_servers 6/" /etc/php-fpm.d/www.conf 
 +# sed -i "s/pm.max_spare_servers = .*/pm.max_spare_servers = 18/" /etc/php-fpm.d/www.conf
  
 # sed -i "s/;opcache.enable_cli=0/opcache.enable_cli=1/" /etc/php.d/10-opcache.ini # sed -i "s/;opcache.enable_cli=0/opcache.enable_cli=1/" /etc/php.d/10-opcache.ini
Line 306: Line 303:
 # setsebool -P httpd_can_sendmail on           ->   Um Emails aus Nextcloud heraus senden zu können! # setsebool -P httpd_can_sendmail on           ->   Um Emails aus Nextcloud heraus senden zu können!
 # setsebool -P httpd_can_network_connect on    ->   Wird gebraucht, dass CURL in PHP funktioniert!! # setsebool -P httpd_can_network_connect on    ->   Wird gebraucht, dass CURL in PHP funktioniert!!
-# setsebool -P domain_can_mmap_files 1 +# setsebool -P domain_can_mmap_files 1         ->   Für neue Collabora_Onlin version 
-# setsebool -P httpd_use_fusefs 1+# setsebool -P httpd_use_fusefs on             ->   aktivieren! Für neue Collabora_Onlin version und anderes...
  
 </code> </code>
Line 442: Line 439:
 ''**Install Caching Deps:**'' ''**Install Caching Deps:**''
  
-<code># yum install redis php-pecl-redis5 php-pecl-apcu -y+<code># yum install redis php-pecl-redis5 php-pecl-apcu php-phpiredis -y
  
 # sed -i "s/port 6379/port 0/" /etc/redis.conf # sed -i "s/port 6379/port 0/" /etc/redis.conf
Line 541: Line 538:
 Type=simple Type=simple
 TimeoutStartSec=30s TimeoutStartSec=30s
-ExecStartPre=-/usr/bin/podman rm "collabora-server"+ExecStartPre=-/usr/bin/podman rm -f "collabora-server"
  
 ExecStart=/usr/bin/podman run --name collabora-server -p 9980:9980 -e DOMAIN=cloud.blackgate.org collabora/code ExecStart=/usr/bin/podman run --name collabora-server -p 9980:9980 -e DOMAIN=cloud.blackgate.org collabora/code
Line 661: Line 658:
 Type=simple Type=simple
 TimeoutStartSec=30s TimeoutStartSec=30s
-ExecStartPre=-/usr/bin/podman rm "onlyoffice-server"+ExecStartPre=-/usr/bin/podman rm -f "onlyoffice-server"
  
 ExecStart=/usr/bin/podman run --name onlyoffice-server -p 8080:80 onlyoffice/documentserver ExecStart=/usr/bin/podman run --name onlyoffice-server -p 8080:80 onlyoffice/documentserver
  • redhat/other-redhat/nextcloud-server-redhat.1591448062.txt.gz
  • Last modified: 2020/06/06 14:54
  • by michael