Lamp Environment Setup Tutorial

Source: Internet
Author: User

Because I am a Linux small white, so choose the Ubuntu system, version is recently released 15.04;
Installation process is more bumpy, the following order may be a bit messy;
First download Ubuntu, the ISO to burn into the U disk, this note, you must use this burning software (Win32diskimager), the previous online use of soft disk (UltraISO) burn ubuntu14.10 version After the boot will appear error;
The installation process is nothing, my partition is 4g as swap virtual, the rest as the primary partition, has been the next line, because the installation process does not know how to capture, so also show no process; After installation restart, successfully entered the system;


First configure the source (not configured, then download the package will be slow):


As shown in the figure, I choose the source of the Aliyun, because a little bit faster download, configure the good, update;
You can then start installing the software, open the terminal, and install Apache first:



Once installed, the browser enters localhost and appears


was successful;

Install PHP:

Install MySQL:

The installation process prompts you to set a password;
Install phpMyAdmin

Similarly, the installation process first needs to choose Apache2, and then prompts to set the username and password;
Install some more basic modules

Also need to install the GD library (forgot screenshot). ) = "sudo apt-get install PHP5-GD

The following is the configuration process:
1, first modify the Apache root directory, the default is/var/www/html
Configuration file in/etc/apache2/sites-available/000-default.conf
Terminal Open,

Modify Documentroot/var/www/html
For documentroot/var/www can be;
2, so that all the files and folders in the Apache root directory have read and write permissions,

3, connecting Apache and phpMyAdmin:
Terminal input

Restart Apache

Create a new file in the root directory phpinfo.php
Input

The browser opens localhost/phpinfo.php and displays

Express success;
Re-test MySQL, create a new conn.php, enter:

Browser opens localhost/conn.php, appears

Indicates success
Finally open Localhost/phpmyadmin



Enter user name, password, enter successfully
At this point, the lamp environment has finally been built.

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.