"Enter"a basıp içeriğe geçin

Almalinux Lemp

Almalinux Lemp

dnf check-update

dnf update


dnf install nginx

dnf install mariadb-server

firewall-cmd –permanent –zone=public –add-service=http
firewall-cmd –permanent –zone=public –add-service=https
firewall-cmd –reload

systemctl start mariadb

systemctl start nginx


systemctl enable mariadb
systemctl enable nginx

sudo mysql_secure_installation


chown -R nginx:nginx //usr/share/nginx/html/*
chcon -t httpd_sys_rw_content_t /usr/share/nginx/html/ -R

Eğer defult php kuracaksınız
sudo dnf install php php-cli php-curl php-mysqlnd php-gd php-opcache php-zip php-intl
sudo dnf install php-mongodb
sudo dnf php php-mysqlnd php-fpm php-opcache php-gd php-xml php-mbstring php-json -y


Eğer PHP 7.4
sudo dnf install php74-php-{curl,json,zip,fpm,gd,mysqlnd,devel,mcrypt,mbstring,xml,pear,bcmath,memcache,redis}