Centos 7-Install Apche, PHP, Mysql (MARIADB)

Source: Internet
Author: User
Tags install php

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.