Sky: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 12: | Zeile 12: | ||
hostname sky.infeos.de | hostname sky.infeos.de | ||
apt-get install sudo rsync htop gdisk less | apt-get install sudo rsync htop gdisk less | ||
mkdir /media /media/trg /media/src /media/sixpack | mkdir /media /media/trg /media/src /media/sixpack /var/log/local | ||
chmod uog+rwx /var/loc/local | |||
</pre> | </pre> | ||
<pre> | <pre> |
Version vom 31. März 2019, 21:04 Uhr
- debian 9 (stretch)
- m2972.contaboserver.net
Installation
adduser wk adduser citmaster adduser sebastian adduser --uid=202 extbup adduser --uid=201 bupsrv hostname sky.infeos.de apt-get install sudo rsync htop gdisk less mkdir /media /media/trg /media/src /media/sixpack /var/log/local chmod uog+rwx /var/loc/local
# lokal:mk ssh-copy-id -i ~/.ssh/id_rsa wk@sky # installieren /home/bin # /usr/local/bin/restore/BupRestSky.sh kopieren
RAID erzeugen
# md0 und md1 existieren schon mknod /dev/md2 b 9 2 chmod 0660 /dev/md2 # 2 Partitionen: 32G + Rest gdisk /dev/sdc # 2 Partitionen: 32G + Rest gdisk /dev/sdd mdadm --create /dev/md2 --assume-clean --level=1 --verbose --raid-devices=2 /dev/sdc2 /dev/sdd2 /usr/share/mdadm/mkconf >/etc/mdadm/mdadm.conf
LVM einrichten
apt-get install lvm2 python3 python pvcreate /dev/md2 vgcreate --physicalextentsize 32M sixpack /dev/md2 #lvcreate --size=32M --name=bupdebian sixpack /usr/local/bin/restore/BupRestSky.sh python /usr/local/bin/restore/lvs2all.py lvcreate python /usr/local/bin/restore/lvs2all.py lvcreate | grep lvcreate python /usr/local/bin/restore/lvs2all.py mkdir python /usr/local/bin/restore/lvs2all.py mkdir | grep mkdir python /usr/local/bin/restore/lvs2all.py fstab python /usr/local/bin/restore/lvs2all.py fstab | grep fstab python /usr/local/bin/restore/lvs2all.py mkfs python /usr/local/bin/restore/lvs2all.py mkfs | grep mkfs
NGINX einrichten
apt-get install nginx-full ca-certificates certbot ssl-cert /usr/local/bin/restore/NginxRestSky.sh nxtool make-certs
Eintrag in /etc/nginx/nginx.conf:
## # Logging Settings ## log_format proxyLog '$remote_addr => $http_x_real_ip - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"';
PHP einrichten
apt-get install nginx php-fpm php-cli php-json php-curl php-imap php-gd php-mysql php-xml \ php-zip php-intl php-mcrypt php-imagick php-mbstring php-memcached memcached php-xdebug
/etc/php/7.0/fpm/php.ini:
max_execution_time = 3600 max_input_time = 3600 memory_limit = 512M post_max_size = 5G upload_max_filesize = 5G opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.revalidate_freq=1 # Neu: sys_temp_dir = "/space/php_temp" upload_tmp_dir = /space/php_temp