Skip to content

12.1.1 CentosLAMP

Sivaldo Martins edited this page Jul 29, 2020 · 1 revision

Apache

> yum install httpd httpd-tools -y

> systemctl enable httpd
> systemctl start httpd
> systemctl status httpd

Firewall

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

Apache version

> rpm -qi httpd 
> httpd -V

MariaDB-Server

> yum install mariadb-server mariadb -y

> systemctl start mariadb
> systemctl enable mariadb
> systemctl status mariadb

MariaDB Security

> mysql_secure_installation

EPEL repository

> yum install epel-release -y
> yum install yum-utils -y
> yum install yum-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm

PHP (7.2 - default)

yum install php php-opcache php-gd php-curl php-mysqlnd -y

Clone this wiki locally