Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:other-redhat:nextcloud-server-redhat [2020/06/06 13:38] – [SELinux und Firewalld Konfiguration] michael | redhat:other-redhat:nextcloud-server-redhat [2021/05/21 08:12] (current) – [Installation und Konfiguration Pakete] michael | ||
---|---|---|---|
Line 18: | Line 18: | ||
# yum -y install epel-release | # yum -y install epel-release | ||
# yum -y install https:// | # yum -y install https:// | ||
- | # yum update -y | ||
+ | # yum update -y | ||
# yum install -y vim wget curl setroubleshoot policycoreutils-python-utils setools yum-utils bzip2 | # yum install -y vim wget curl setroubleshoot policycoreutils-python-utils setools yum-utils bzip2 | ||
+ | |||
+ | # yum module reset php | ||
+ | # dnf module install php: | ||
</ | </ | ||
Line 31: | Line 34: | ||
==== Installation der Package-dependencies ==== | ==== Installation der Package-dependencies ==== | ||
< | < | ||
- | # yum install httpd mariadb-server redis php73-php-pecl-redis5 | + | # yum install httpd mariadb-server redis php-pecl-redis5 php-pecl-imagick |
</ | </ | ||
Line 52: | Line 55: | ||
# vim / | # vim / | ||
</ | </ | ||
- | ServerName cloud.blackgate.org | + | Listen 7030 |
- | ServerTokens Prod | + | |
- | ServerSignature Off | + | |
- | SetEnvIf X-Forwarded-Proto " | + | < |
+ | ServerAdmin michu@michu-it.com | ||
+ | ServerName cloud.michu-it.com | ||
- | #Redirect 301 / | + | TimeOut 300 |
- | #Redirect 301 / | + | |
- | < | + | SetEnvIf X-Forwarded-Proto |
- | Options +FollowSymlinks | + | |
- | | + | |
- | < | + | |
- | Dav off | + | CustomLog "/ |
- | | + | |
- | | + | |
- | | + | |
- | | + | < |
- | </Directory> | + | |
+ | Options SymLinksifOwnerMatch | ||
+ | AllowOverride All | ||
+ | < | ||
+ | Dav off | ||
+ | </IfModule> | ||
+ | SetEnv HOME / | ||
+ | SetEnv HTTP_HOME / | ||
- | < | + | Require all granted |
- | | + | </Directory> |
- | </IfModule> | + | |
- | Header set X-Content-Type-Options: | + | |
- | Header set X-Frame-Options: | + | |
- | # | + | |
- | # | + | |
- | # | + | </IfModule> |
- | Listen 81 | + | |
- | <VirtualHost *:81> | + | |
- | ServerName cloud.blackgate.org | + | |
- | ServerAdmin webmaster@localhost | + | |
- | | + | |
- | < | + | Header set X-Content-Type-Options: |
- | Options | + | |
- | | + | |
- | Require ip 192.168.1 | + | |
- | | + | |
- | | + | |
- | </ | + | |
</ | </ | ||
Line 116: | Line 111: | ||
< | < | ||
- | # php73 --ini |grep Loaded | + | # / |
</ | </ | ||
+ | |||
<sxh bash; gutter: false;> | <sxh bash; gutter: false;> | ||
- | Loaded Configuration File: / | + | Loaded Configuration File => / |
</ | </ | ||
Line 125: | Line 121: | ||
< | < | ||
- | # sed -i " | + | # sed -i " |
- | # sed -i " | + | # sed -i " |
+ | |||
+ | # sed -i "s/max_execution_time = .*/max_execution_time = 7200/" /etc/php.ini | ||
+ | # sed -i " | ||
+ | # sed -i " | ||
+ | |||
+ | # sed -i " | ||
+ | # sed -i " | ||
+ | # sed -i " | ||
- | # sed -i "s/max_execution_time | + | # sed -i "s/pm.max_children |
- | # sed -i "s/max_input_time | + | # sed -i "s/pm.start_servers |
- | # sed -i "s/memory_limit | + | # sed -i "s/pm.min_spare_servers |
+ | # sed -i "s/pm.max_spare_servers = .*/ | ||
- | # sed -i " | + | # sed -i " |
- | # sed -i " | + | # sed -i " |
- | # sed -i " | + | # sed -i " |
- | # sed -i " | + | # sed -i " |
</ | </ | ||
Line 152: | Line 157: | ||
# ls -lZ / | # ls -lZ / | ||
- | # sed -i " | + | # sed -i " |
</ | </ | ||
Line 298: | Line 303: | ||
# setsebool -P httpd_can_sendmail on | # setsebool -P httpd_can_sendmail on | ||
# 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 | + | # setsebool -P httpd_use_fusefs |
</ | </ | ||
Line 334: | Line 339: | ||
< | < | ||
- | # systemctl enable | + | # systemctl enable php-fpm.service --now |
# systemctl enable httpd --now | # systemctl enable httpd --now | ||
- | # systemctl status httpd php73-php-fpm | + | # systemctl status httpd php-fpm |
</ | </ | ||
</ | </ | ||
Line 433: | Line 438: | ||
<WRAP center round important 100%> | <WRAP center round important 100%> | ||
'' | '' | ||
- | < | + | |
+ | < | ||
# sed -i " | # sed -i " | ||
Line 467: | Line 473: | ||
# | | | | | | # | | | | | | ||
# * * * * * user-name | # * * * * * user-name | ||
- | */5 * * * * apache | + | */5 * * * * apache |
</ | </ | ||
</ | </ | ||
Line 532: | Line 538: | ||
Type=simple | Type=simple | ||
TimeoutStartSec=30s | TimeoutStartSec=30s | ||
- | ExecStartPre=-/ | + | ExecStartPre=-/ |
ExecStart=/ | ExecStart=/ | ||
Line 652: | Line 658: | ||
Type=simple | Type=simple | ||
TimeoutStartSec=30s | TimeoutStartSec=30s | ||
- | ExecStartPre=-/ | + | ExecStartPre=-/ |
ExecStart=/ | ExecStart=/ |