Installing LAMP

##Install Required Packages:

sudo yum install httpd mariadb-server mariadb php php-mysql mod_ssl openssl

##Start Up HTTP

sudo systemctl start httpd.service

##Setup the firewall

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

##Test

https://web1.hohenfels.com

##Set to start on boot

sudo systemctl enable httpd.service

##Start MariaDB

sudo systemctl start mariadb

##Secure it

sudo mysql_secure_installation

##Enable to start on boot

sudo systemctl enable mariadb.service

##Test PHP

sudo vi /var/www/html/test.php
Add:
<?php phpinfo(); ?>

## Visit https://web1.hohenfels.com/test.php

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather