Debian easily builds apache2+php5+mysql environment

Today, because I have to prepare a WeChat mall project, I have to use php. It is also very simple to find after installation.
Install apache2:

sudo apt-get install apache2

Install php5:

sudo apt-get install php5 php-pear php5-mysql php5-gd

Install mysql:

sudo apt-get install mysql-server-5.5

The direct apt installation is configured and does not require additional settings!
The project needs to be deployed under /var/www/html , write a test.php and put it in for testing.

sudo vim /var/www/html/test.php

The content is as follows:

<?php
    phpinfo();
?>

Guess you like

Origin blog.csdn.net/CanvaChen/article/details/52781067