Biber

Aus Info-Theke
Zur Navigation springen Zur Suche springen


Dies ist der Server von EMAS.

Blitzinstallation

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
</syntaxhighlight>

= Zusätzliche VolGroup auf / =
<syntaxhighlight lang="bash" line="\'line\'">
mkdir -p /space/lvm
cd /space/lvm
# dauert etwa 2h pro TByte
IMG=/space/lvm/lvm_400g.img
time dd if=/dev/zero of=$IMG bs=1G count=400
touch /etc/rc.local
texttool -v3 replace-or-insert "losetup /dev/loop100 $IMG /etc/rc.local
vgcreate --physicalextentsize 32M safe /dev/loop100

Installation

# 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

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

php.ini: display_errors = On