Biber

Aus Info-Theke
Version vom 6. Oktober 2019, 15:24 Uhr von Hamatoma (Diskussion | Beiträge) (→‎Zusätzliche VolGroup auf /)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen


Dies ist der Server von EMAS.

Blitzinstallation[Bearbeiten]

sudo -s
apt-get update && apt-get -y install wget && wget -O /tmp/basic_install.sh https://public.hamatoma.de/basic_install.sh
bash /tmp/basic_install.sh

restoretool -v3 init linuxserver
restoretool -v3 init nginx
restoretool -v3 init php
restoretool -v3 init php 7.3
restoretool -v3 init mariadb
restoretool -v3 init cms
restoretool -v3 init letsencrypt

Zusätzliche VolGroup auf /[Bearbeiten]

SPACE_DIR=/space/lvm
IMG=$SPACE_DIR/lvm_400g.img
LOOP_DEV=/dev/loop100
mkdir -p $SPACE_DIR
cd $SPACE_DIR
# dauert etwa 2h pro TByte
#time dd if=/dev/zero of=$IMG bs=1G count=400
time truncate --size=400G $IMG
touch /etc/rc.local
texttool -v3 replace-or-insert '^losetup' "losetup $LOOP_DEV $IMG" /etc/rc.local
bash /etc/rc.local
vgcreate --physicalextentsize 32M safe $LOOP_DEV

Installation[Bearbeiten]

# Passwort "root" geändert
adduser hm
mkdir .ssh ; chmod 755 .ssh ; cd .ssh ; cat >authorized_keys
chmod 700 authorized_keys
apt-get update
apt-get install sudo
visudo
apt-get install tmux htop git etckeeper bzip2 zip unzip nginx mariadb-server
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-imagick php-memcached memcached
apt-get install nfs-common
mkdir /media/emas
# /etc/fstab
213.136.65.195:/ /media/emas nfs rsize=8192,wsize=8192,hard,intr, 0 0
# LetsEnrypt:
apt-get install python-certbot-nginx
mkdir /var/log/local
chmod uog+rwx /var/log/local

php.ini[Bearbeiten]

memory_limit = 512M # von 128
post_max_size = 1G # von 8M
upload_max_filesize = 1G # von 2M
max_file_uploads = 100 # von 20

PHP-Fehlersuche[Bearbeiten]

php.ini: display_errors = On