Ubuntu 17.10 uses apt to build a lamp environment (Lite version) and ubuntu17.10

Source: Internet
Author: User

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

 

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.