Webserver, Webhosting und VIMP unter CentOS 8 (RedHat 8) installieren (VIMP 4.1+)
Versionen: VIMP >= 4.1.x
In diesem Artikel installieren wir sämtliche Serversoftware (Apache, MariaDB, PHP 7.2, php-cli, postfix etc.) für VIMP und konfigurieren das Webhosting.
Wir installieren Apache, MariaDB (mysql-db) und PHP:
dnf update
dnf install httpd mariadb-server php php-gd php-json php-mysqlnd php-mbstring php-process php-xmlrpc php-xml libxslt
WIr installieren postfix als MTA (Mail Transport Agent).
dnf install postfix
Apache Konfiguration:
Wir installieren VIMP im "default"-Webhosting, dessen Konfiguration bei der Apache-Installation schon automatisch angelegt wurde. Diesen passen wir für VIMP mit einem Editor (hier "vi") an. Sie können selbstverständlich auch jeden anderen Editor verwenden:
vi /etc/httpd/conf/httpd.conf
In der httpd.conf ändern wir folgenden Eintrag:
DocumentRoot "/var/www/html/web"
Und wir ändern den Directory Block für das DocumentRoot (Achtung: auch den Directory-Pfad ändern):
# Further relax access to the default document root:
<Directory "/var/www/html/web">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
Jetzt erstellen wir noch das Verzeichnis zum neuen DocumentRoot und setzen Besitzer und Gruppe:
mkdir /var/www/html/web chown -R apache:apache /var/www/html/
Den Apache starten wir später neu, damit die neue Konfiguration eingelesen wird, denn wir müssen noch...
Firewall konfigurieren
Wir öffnen Port 80 (HTTP) und 443 (HTTPS) des firewalld:
firewall-cmd --permanent --add-port=80/tcp firewall-cmd --permanent --add-port=443/tcp # And reload the firewall configuration: firewall-cmd --reload
PHP konfigurieren
Wir bearbeiten die php.ini:
vi /etc/php.ini
und passen die folgenden Zeilen wie folgt an für eine maximale Upload-Größe von 8GB:
upload_max_filesize = 8192M
post_max_size = 8192M
memory_limit = 1024M
max_execution_time = 60
max_input_time = 120
Die Datei speichern und den Apache (mit mariadb und php) neu starten
systemctl enable httpd
systemctl enable php-fpm
systemctl enable mariadb
service mariadb start
service httpd restart
service php-fpm restart
Datenbank und Datenbankbenutzer erstellen:
# mysql
MariaDB [(none)]> create database DATABASENAME default character set utf8 collate utf8_unicode_ci;
MariaDB [(none)]> grant all privileges on DATABASENAME.* to 'DATABASEUSER'@'localhost' identified by 'PASSWORD';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;
Installation der transcoding tools
VIMP benötigt ffmpeg zum Transcodieren von Medien und exifool um Videos rotieren zu können.
Die Installation ist hier beschrieben.
Transcoding benötigt auch einen speziellen Cron-Job: Wie installiere ich den Transcoding Cron-Job?
Sourceguardian und SELinux
Wenn Sie SELinux verwenden, finden Sie hier einen Artikel das Webhosting für SELinux Konfiguration zu konfigurieren.
Upload und Installation des VIMP Pakets
Grundlegende Verwendung
Die Installation ist nun abgeschlossen. Rufen Sie jetzt Ihr Portal im Browser auf.
Während der Installation werden drei Benutzer erstellt, die die drei Benutzerrollen darstellen:
- "admin" (Passwort: "admin") als Administrator
- "moderator" (Passwort: "moderator") als Moderator
- "user" (Passwort: "user") als Standardbenutzer
Bitte ändern Sie alle Passwörter so schnell wie möglich. Wenn Sie die Benutzer nicht mehr benötigen, können Sie sie im Admin-Bereich löschen.
Zuletzt aktualisiert am 05.11.2020 von SUPPORT.