ubuntu14.04 Building Lamp Environment

Source: Internet
Author: User

Objective

Already do not remember how many times the environment of lamp, not only in Windows toss over, also on Linux, Windows is OK, trouble things, build once basically next time know how to configure, But I always forget how the last time I built a successful Linux lamp.

So again and again to Google, find tutorials, and found that the tutorial is a mixed-bag, a set of tricks, people feel as if the environment under Linux will have n methods, but just do not know which is the right posture ...

Build today, found that now lamp in Linux is very easy, basically simple to knock a few installation commands on the line, and then change the configuration is done, has never been comfortable.

Of course, I'm in ubuntu14.04, not the same Linux distributions are estimated to have different egg aches ...

Apache2

First of all, of course, installing apache2, typing sudo apt-get install apache2, after the installation is in the/ETC/APACHE2, directory structure as follows

Note that unlike most Apache configurations under Windows, the apache2.conf configuration file, Linux apache2 the different types of configuration in the sub-configuration file, such as if you want to change the access port, you should modify the ports.conf

PHP5

Installing PHP is also a command thing: sudo apt-get install PHP5, I installed after the installation seems to automatically configure Apache2, if you do not use after installation, then execute sudo apt-get install Libapache2-mod-php5

Mysql

Execute: sudo apt-get install Mysql-server

You will be prompted to set the user and password during installation

PhpMyAdmin

With MySQL, I don't think you would like to go down in the Dark command line to manage and view the database bar, according to my habits next is to immediately put phpmyadmin, installation is very simple, first download the package to the local

Wget https://files.phpmyadmin.net/phpMyAdmin/4.6.4/phpMyAdmin-4.6.4-all-languages.tar.gz (this address corresponds to the website specific version of the ZIP packet address, Self-replacement)

and unzip it to the Web directory.

sudo tar-xzvf phpmyadmin-4.6.4-all-languages.tar.g./var/www/html

Modify the name, for example

sudo mv Phpmyadmin-4.6.4-all-languages phpMyAdmin

OK, now open your localhost/phpmyadmin or www.yourdomain.com/phpmyadmin to view your database! Does the interface have a lot of cool?

ubuntu14.04 Building Lamp Environment

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.