Teknik Rehber

AlmaLinux LAMP Stack Kurulumu: Apache, MariaDB, PHP

Genel Sunucular Kategorisi AlmaLinux İşletim Sistemleri 29.05.2026 Verimek 0 görüntülenme

LAMP stack (Linux, Apache, MariaDB, PHP), klasik web uygulamaları için standart altyapıdır. AlmaLinux 9 üzerinde kurulum DNF ile yapılır.

Apache Kurulumu

sudo dnf install httpd -y
sudo systemctl enable --now httpd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

MariaDB Kurulumu

sudo dnf install mariadb-server -y
sudo systemctl enable --now mariadb
sudo mysql_secure_installation

PHP Kurulumu

sudo dnf install php php-mysqlnd php-gd php-xml php-mbstring -y
sudo systemctl restart httpd

Test

/var/www/html/info.php oluşturup tarayıcıdan test edin. Üretimde phpinfo dosyasını silin.

İlgili konular: Genel · Sunucular Kategorisi · AlmaLinux İşletim Sistemleri