getestet am 07.08.2022 – Achtung: die Firewall und nano müssen nachinstalliert werden, da sie nicht in fedora36 implementiert sind. Debian und Ubuntu machen einem eine Lamp Installation schwerer (z.B. eine php Zuordnung ) Mysql läuft leider noch nicht…
dnf install -y httpd
View Apache version, run
rpm -q httpd
Start and Enable Apache (httpd) Service
systemctl start httpd && systemctl enable httpd
Check status of httpd service, run
systemctl status httpd
Allow http port in OS firewall, run following commands (bei Fehlermeldung die Firewall nachinstallieren !)
firewall-cmd --permanent --add-service=http &&
firewall-cmd --permanent --add-service=https &&
firewall-cmd --reload
Install MariaDB Database Server
MariaDB and its dependencies are available in the default package repositories of Fedora 36. Execute following command to install it.
dnf install mariadb-server mariadb -y
Start and enable mariadb service
systemctl enable mariadb --now
To Check mariadb service status, run
systemctl status mariadb
Secure MariaDB installation by configuring initial settings of database and root password using “mysql_secure_installation”
mysql_secure_installation
Achtung: switch to unix mit nein antworten der rest mit ja !
Install PHP (Server Scripting Language)
PHP is an open-source server side scripting language used for building the web applications. Latest php 8.1 and it’s dependencies are also available in default packages repositories. So, to install php and other php modules, run folllwing dnf command
dnf install -y php php-common php-cli
To test the php installation , create a php file (fedora.php) in /var/www/html/wordpress/html
dnf install nano && nano /var/www/html/wordpress/html/fedora.php
Restart the Apache Service
systemctl restart httpd
Now access the fedora.php file from your browser, type following URL
http://deineurl/fedora.php
gefunden auf: https://www.linuxtechi.com/how-to-install-lamp-on-fedora/