1.052
Bearbeitungen
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
Vorbereitungen | == Vorbereitungen == | ||
Feste IP | === Feste IP === | ||
<syntaxhighlight lang="bash"> | |||
vi /etc/sysconfig/network-scripts/ifcfg-ens18 | vi /etc/sysconfig/network-scripts/ifcfg-ens18 | ||
</syntaxhighlight><syntaxhighlight lang="bash" line="1"> | |||
TYPE=Ethernet | TYPE=Ethernet | ||
PROXY_METHOD=none | PROXY_METHOD=none | ||
Zeile 12: | Zeile 13: | ||
IPV6INIT=no | IPV6INIT=no | ||
NAME=ens18 | NAME=ens18 | ||
UUID=0590fcc0-a435- | UUID=0590fcc0-a435-4d8b-8bf9-2953e7845536 | ||
DEVICE=ens18 | DEVICE=ens18 | ||
ONBOOT=yes | ONBOOT=yes | ||
IPV6_DISABLED=yes | IPV6_DISABLED=yes | ||
IPADDR= | IPADDR=192.168.2.30 | ||
PREFIX=24 | PREFIX=24 | ||
GATEWAY= | GATEWAY=192.168.2.1 | ||
DNS1= | DNS1=192.168.2.1 | ||
DNS2= | DNS2=1.1.1.1 | ||
IPV6_DEFROUTE=yes | IPV6_DEFROUTE=yes | ||
IPV6_FAILURE_FATAL=no | IPV6_FAILURE_FATAL=no | ||
</syntaxhighlight> | |||
Anforderungen/Abhängigkeiten | === Anforderungen/Abhängigkeiten === | ||
<syntaxhighlight lang="bash"> | |||
dnf install wget tar epel-release | |||
dnf install wget tar | |||
dnf update | dnf update | ||
</syntaxhighlight> | |||
dnf module enable php:8.0 -y | === PHP 8.0 und Apache installieren / https://tecadmin.net/how-to-install-php-8-on-centos-rhel-8/ === | ||
<syntaxhighlight lang="bash"> | |||
dnf module enable php:8.0 -y | |||
dnf install httpd php php-cli php-common php-mysqlnd php-intl php-gd php-pecl-zip | dnf install httpd php php-cli php-common php-mysqlnd php-intl php-gd php-pecl-zip | ||
</syntaxhighlight>Webserver starten<syntaxhighlight lang="bash"> | |||
systemctl enable --now httpd | systemctl enable --now httpd | ||
</syntaxhighlight>Firewall konfigurieren<syntaxhighlight lang="bash"> | |||
Firewall konfigurieren | |||
firewall-cmd --permanent --add-service=http | firewall-cmd --permanent --add-service=http | ||
firewall-cmd --reload | firewall-cmd --reload | ||
</syntaxhighlight>SELinux / php-fpm erlauben Dateien anzulegen<syntaxhighlight lang="bash"> | |||
SELinux / php-fpm erlauben Dateien anzulegen | |||
chcon -R -t httpd_sys_rw_content_t /var/www/html | chcon -R -t httpd_sys_rw_content_t /var/www/html | ||
setsebool httpd_can_network_connect 1 | setsebool httpd_can_network_connect 1 | ||
</syntaxhighlight>MySQL <syntaxhighlight lang="bash"> | |||
MySQL | |||
dnf install mysql-server | dnf install mysql-server | ||
</syntaxhighlight>Starten<syntaxhighlight lang="bash"> | |||
Starten | |||
systemctl enable --now mysqld | systemctl enable --now mysqld | ||
</syntaxhighlight>Sichern<syntaxhighlight lang="bash"> | |||
Sichern | |||
mysql_secure_installation | mysql_secure_installation | ||
</syntaxhighlight> | |||
* VALIDATE PASSWORD COMPONENT -> Kann Nein, je nach Wunsch (Überprüft Passwörter auf stärke) | |||
* ROOT PASSWORD setzen -> Ein sicheres Passwort eingeben | |||
* REMOVE ANONYMOUS USERS -> Ja | |||
* DISALLOW ROOT LOGIN REMOTELY -> Ja | |||
* REMOVE TEST DATABASE -> Ja | |||
* RELOAD PRIVILEGE TABLES -> Ja | |||
php.ini anpassen / https://docs.joomla.org/J3.x:Installing_Joomla/de#Empfohlene_Einstellungen_in_der_PHP.ini | php.ini anpassen / https://docs.joomla.org/J3.x:Installing_Joomla/de#Empfohlene_Einstellungen_in_der_PHP.ini<syntaxhighlight lang="bash"> | ||
vi /etc/php.ini | vi /etc/php.ini | ||
</syntaxhighlight><syntaxhighlight lang="bash" line="1"> | |||
memory_limit = 128M | memory_limit = 128M //RAM Nutzung | ||
upload_max_filesize = 30M | upload_max_filesize = 30M //Dateiuploads Max. Größe | ||
post_max_size = 30M | post_max_size = 30M //Max. Größe Daten per HTTP-POST - Mindestens wie upload_max_filesize | ||
max_execution_time = 30 | max_execution_time = 30 //Timeout für PHP Skripte in Sekunden | ||
output_buffering = off | output_buffering = off | ||
</syntaxhighlight><syntaxhighlight lang="bash"> | |||
systemctl restart httpd | systemctl restart httpd | ||
systemctl restart php-fpm | systemctl restart php-fpm | ||
</syntaxhighlight> | |||
== Joomla installieren / https://docs.joomla.org/J3.x:Installing_Joomla/de == | |||
Joomla installieren / https://docs.joomla.org/J3.x:Installing_Joomla/de | |||
Herunterladen | Herunterladen | ||
https://downloads.joomla.org/de/latest<syntaxhighlight lang="bash"> | |||
wget https://downloads.joomla.org/de/cms/joomla4/4-2-5/Joomla_4-2-5-Stable-Full_Package.tar.gz | wget https://downloads.joomla.org/de/cms/joomla4/4-2-5/Joomla_4-2-5-Stable-Full_Package.tar.gz | ||
</syntaxhighlight>Entpacken<syntaxhighlight lang="bash"> | |||
Entpacken | |||
tar -xf Joomla_4-2-5-Stable-Full_Package.tar.gz -C /var/www/html/ | tar -xf Joomla_4-2-5-Stable-Full_Package.tar.gz -C /var/www/html/ | ||
</syntaxhighlight>Berechtigung setzen<syntaxhighlight lang="bash"> | |||
Berechtigung setzen | |||
chown apache: -R /var/www/html | chown apache: -R /var/www/html | ||
</syntaxhighlight>Datenbank erstellen / https://docs.joomla.org/Creating_a_Database_for_Joomla!/de<syntaxhighlight lang="bash"> | |||
Datenbank erstellen / https://docs.joomla.org/Creating_a_Database_for_Joomla!/de | |||
mysql -uroot -p | mysql -uroot -p | ||
</syntaxhighlight><syntaxhighlight lang="sql"> | |||
CREATE DATABASE db_joomla; | CREATE DATABASE db_joomla; | ||
CREATE USER 'joomla'@'localhost' IDENTIFIED BY 'password'; | CREATE USER 'joomla'@'localhost' IDENTIFIED BY 'password'; | ||
GRANT ALL PRIVILEGES ON db_joomla.* TO 'joomla'@'localhost'; | GRANT ALL PRIVILEGES ON db_joomla.* TO 'joomla'@'localhost'; | ||
EXIT; | EXIT; | ||
</syntaxhighlight>Konfiguration starten | |||
Konfiguration starten | |||
https://<Server-IP> | https://<Server-IP> |