Linux serverNETWORK ADMINISTRATIONS

Install LAMP on CentOS 7

Install LAMP(Linux Apache MariaDB PHP) on CentOS 7 Server
yum update
systemctl disable firewalld.service
systemctl stop firewalld.service
uname -a
vi /etc/sysconfig/selinux
reboot
uname -a
yum install httpd
chkconfig httpd on
service httpd start
systemctl list-units
yum install mariadb-server mariadb
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation
yum install php
systemctl restart httpd.service
vi /var/www/html/info.php
yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
systemctl restart httpd.service

source

centos 7

Leave a Reply

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