Centos 7.4 builds a LAMP environment

Due to work needs, a LAMP environment was built to manage various statistical information through web pages.

Preparations: The installation process requires root authority, and the software packages required for the installation process are ready, which can be downloaded and installed online, or the ISO file in the distribution can be used as a local source for the required software.

Now record the steps of building the LAMP environment as follows:

  1. Install Apache server
      # yum install -y httpd
      # systemctl enable httpd.service
      # systemctl start httpd.service
    
    Test whether the Apache server is installed. Open the browser and enter http://127.0.0.1. If the apache page is displayed, it means that it has been installed.
  2. To install mariadb, please refer to my previous blog-- Installation and use of MySQL (Mariadb) under Linux .
  3. Install PHP
      # yum install -y php php-mysql
    

The basic installation steps are completed. Next, you need to create a database, write PHP scripts and html files as needed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325993533&siteId=291194637