Centos 7 Installs these three things, usually there is a kit (LAMP), here does not talk about the installation method of the kit, only said the three-piece set of separate installation.
Installation of 1.Apache and PHP
(1). Install Apache, PHP
#yum-y Install httpd PHP
(2). Installing Apache extensions
1 #yum-y install httpd-manual mod_ssl mod_perl mod_auth_mysql
(3). Installing PHP Extensions
#yum-y install php-gd php-xml php-mysql php-mbstring php-ldap php-pear php-xmlrpc
(4). Configure the Boot Apache service
#systemctl Enable httpd #开机运行httpd服务 #systemctl start httpd #启动httpd服务
After the installation is complete, you can use the Curl localhost command to test
2. Installing MARIADB
(1). Install mariadb
#yum-y Install mariadb mariadb-server
(2). Start/stop/restart/boot MariaDB service
#systemctl start/stop/restart/enable mariadb
Centos 7-Install Apche, PHP, Mysql (MARIADB)