Ubuntu 17.10 uses apt to build a lamp environment (Lite version) and ubuntu17.10
This article is mainly used to quickly deploy the lamp environment based on php 5.6, to see the detailed installation including virtual host configuration, please refer to this: http://www.cnblogs.com/mingc/p/7864030.html
1. Add ppa Source
Add php and extended PPA sources
sudo add-apt-repository ppa:ondrej/phpsudo apt-get update
Ii. install apache
sudo apt-get install apache2
Configuration Directory:/etc/apache2
Default Site Directory:/var/www/html,/var/www directory can be used to create virtual hosts.
Restart apache: sudo/etc/init. d/apache2 restart
Iii. Install mysql
sudo apt-get install mysql-server
(There will be Interactions during this period and ask the root user password)
Configuration Directory:/etc/mysql
4. install php
sudo apt-get install php5.6 php5.6-dev
Configuration Directory:/etc/php/5.6
(Note that the version number 5.6 is specified. if the version number is not included, 7.xis installed by default. Some modules do not support 7.x. For example, php-zbarcode currently only supports php 5)
5. Install phpmyadmin
sudo apt-get install phpmyadmin
(There Will Be Interactions during this period. Ask the user and password for selecting the server, creating the phpmyadmin database, and logging on to phpmyadmin)
Configuration Directory:/etc/phpmyadmin
Access Method: http: locahost/phpmyadmin
Vi. Common php modules
sudo apt-get install php5.6-gd php5.6-mysql php5.6-sqlite3 php5.6-mcrypt php5.6-mbstring php5.6-odbc php5.6-zip php5.6-bz2 php5.6-xml php5.6-xmlrpc php5.6-dba php-redis php-memcache php-memcached php-mongo
Module Directory:/usr/lib/php/20160303
VII. redis, memcached, and mongodb servers
sudo apt-get install redis memcached mongodb
Some tools will be installed automatically during this period to facilitate client access.
(End)
Permanent update address: http://www.cnblogs.com/mingc/p/7954849.html