ubuntu16 apm environment

1. Update the system before installation

1 sudo apt update
2. Install Apache2

1 sudo apt install apache2
3. Install PHP

1 sudo apt install php
2 sudo apt-get install libapache2-mod-php
4. Install MySQL

1 sudo apt install mysql- server php7.0-mysql
2 sudo apt-get install mysql-client
3 mysql_secure_installation
5. Install phpmyadmin

1 sudo apt-get install phpmyadmin
2 sudo apt-get install php-mbstring
3 sudo apt-get install php-gettext
4 sudo ln - s /usr/share/phpmyadmin /var/www/html/phpmyadmin
configure phpmyadmin

1 nano /etc/php/7.0/apache2/php.ini
display_errors = On (display the error log, if it appears twice, it must be changed, otherwise it will be invalid)
extension=php_mbstring.dll (enable mbstring)
--------------------------------------------------------------------------------------------

参考1:http://justcode.ikeepstudying.com/2016/04/ubuntu-16-04-%E5%AE%89%E8%A3%85-lamp-install-apache-mysql-php-lamp-stack-ubuntu-16-04/

参考2:http://www.linuxdiyf.com/linux/20557.html

Guess you like

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