How to install LAMP Stack on Alma Linux
Linux – Apache – MySQL – Php
Combination of Software Programs to serve Web Application with database structure. Very useful information for developers who like to deploy solutions onto latest version of enterprise version~
dnf install httpd mariadb-server php-mysqlnd php-fpm
Open up ports 80 and 443 for incoming HTTP and HTTPS connections to server
# firewall-cmd –permanent –zone=public –add-service=http
# firewall-cmd –permanent –zone=public –add-service=https
# firewall-cmd –reload
# systemctl enable mariadb
# systemctl enable httpd
# mysql_secure_installation
Grant Permissions to Apache to serve web pages
# chown -R apache:apache /var/www/html/*
# chcon -t httpd_sys_rw_content_t /var/www/html/ -R
If required any specific packages
dnf search php-
dnf install PACKAGENAME
systemctl reload httpd
by Alma Tube
linux web server