Ubuntu 16.04 installs Apache, MySQL, PHP7

Source: Internet
Author: User
Tags install php phpmyadmin

1. Update the system before installing
sudo apt update
2. Installing Apache2
sudo apt install apache2
3. Install PHP
sudo apt install php
sudo apt-get install libapache2-mod-php
4. Install MySQL
sudo apt install mysql-server php7.0-mysql
sudo apt-get install mysql-client
Mysql_secure_installation
5. Installing phpMyAdmin
sudo apt-get install phpMyAdmin
sudo apt-get install php-mbstring
sudo apt-get install Php-gettext
sudo ln-s/usr/share/phpmyadmin/var/www/html/phpmyadmin
Configure phpMyAdmin
Nano/etc/php/7.0/apache2/php.ini
Display_errors = On (error log appears, two times, change, otherwise invalid)
Extension=php_mbstring.dll (Open mbstring)
--------------------------------------------------------------------------------------------
Reference 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/
Reference 2:http://www.linuxdiyf.com/linux/20557.html

Ubuntu 16.04 installs Apache, MySQL, PHP7

Related Article

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.