Joomla! 4 installieren (AlmaLinux/CentOS): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „### Vorbereitungen ### ## Feste IP vi /etc/sysconfig/network-scripts/ifcfg-ens18 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no NAME=ens18 UUID=0590fcc0-a435-4d8a-8bf9-2953e8845536 DEVICE=ens18 ONBOOT=yes IPV6_DISABLED=yes IPADDR=10.16.0.60 PREFIX=24 GATEWAY=10.16.0.1 DNS1=10.16.0.3 DNS2=10.16.0.4 IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no ### Anforderungen/Abhängigkeiten ### ## wget und tar…“) |
KKeine Bearbeitungszusammenfassung |
||
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
__NOINDEX__ | |||
== Vorbereitungen == | |||
=== 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 15: | ||
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 === | |||
<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-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"> | |||
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"> | |||
dnf install mysql-server | dnf install mysql-server | ||
</syntaxhighlight>Starten<syntaxhighlight lang="bash"> | |||
systemctl enable --now mysqld | systemctl enable --now mysqld | ||
</syntaxhighlight>Sichern<syntaxhighlight lang="bash"> | |||
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<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 == | |||
Herunterladen | |||
https://downloads.joomla.org/de/latest<syntaxhighlight lang="bash"> | |||
https://downloads.joomla.org/de/latest | |||
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"> | |||
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"> | |||
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"> | |||
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 | |||
https://<Server-IP> | https://<Server-IP> |
Aktuelle Version vom 15. Dezember 2022, 12:40 Uhr
Vorbereitungen
Feste IP
vi /etc/sysconfig/network-scripts/ifcfg-ens18
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens18
UUID=0590fcc0-a435-4d8b-8bf9-2953e7845536
DEVICE=ens18
ONBOOT=yes
IPV6_DISABLED=yes
IPADDR=192.168.2.30
PREFIX=24
GATEWAY=192.168.2.1
DNS1=192.168.2.1
DNS2=1.1.1.1
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
Anforderungen/Abhängigkeiten
dnf install wget tar epel-release
dnf update
PHP 8.0 und Apache installieren / https://tecadmin.net/how-to-install-php-8-on-centos-rhel-8/
dnf module enable php:8.0 -y
dnf install httpd php php-cli php-common php-mysqlnd php-intl php-gd php-pecl-zip
Webserver starten
systemctl enable --now httpd
Firewall konfigurieren
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
SELinux / php-fpm erlauben Dateien anzulegen
chcon -R -t httpd_sys_rw_content_t /var/www/html
setsebool httpd_can_network_connect 1
MySQL
dnf install mysql-server
Starten
systemctl enable --now mysqld
Sichern
mysql_secure_installation
- 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
vi /etc/php.ini
memory_limit = 128M //RAM Nutzung
upload_max_filesize = 30M //Dateiuploads Max. Größe
post_max_size = 30M //Max. Größe Daten per HTTP-POST - Mindestens wie upload_max_filesize
max_execution_time = 30 //Timeout für PHP Skripte in Sekunden
output_buffering = off
systemctl restart httpd
systemctl restart php-fpm
Joomla installieren / https://docs.joomla.org/J3.x:Installing_Joomla/de
Herunterladen
https://downloads.joomla.org/de/latest
wget https://downloads.joomla.org/de/cms/joomla4/4-2-5/Joomla_4-2-5-Stable-Full_Package.tar.gz
Entpacken
tar -xf Joomla_4-2-5-Stable-Full_Package.tar.gz -C /var/www/html/
Berechtigung setzen
chown apache: -R /var/www/html
Datenbank erstellen / https://docs.joomla.org/Creating_a_Database_for_Joomla!/de
mysql -uroot -p
CREATE DATABASE db_joomla;
CREATE USER 'joomla'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON db_joomla.* TO 'joomla'@'localhost';
EXIT;
Konfiguration starten
https://<Server-IP>