Linux serverlinux web serverNETWORK ADMINISTRATIONS

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

source

by Alma Tube

linux web server

Leave a Reply

Your email address will not be published. Required fields are marked *