Ubuntu14.04LTSServer install LAMPServer

Source: Internet
Author: User
LAMP is short for Linux, Apache, MySQL, and PHP. This tutorial uses the Ubuntu14.04LTSServer64-bit system to install the Apache2web service, PHP5 support (mod_php), and MySQL. Use SSH to connect to the server and switch to the ROOT account: sudosu replaces the source with the domestic server before the official installation. To prevent exceptions, back up the source: cp/e

LAMP is short for Linux, Apache, MySQL, and PHP. This tutorial uses the Ubuntu 14.04 LTS Server 64-bit system to install Apache2 web service, PHP5 support (mod_php), and MySQL.

Connect to the server using SSH and switch to the ROOT account:

sudo su

Replace the source with the domestic server before the official installation. To prevent exceptions, back up the source:

Cp/etc/apt/sources. list/etc/apt/sources. list_backup

Edit in vi:

vi /etc/apt/sources.list

I like the source of HKUST more quickly. Share it with you:

deb http://debian.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse

With the new source:

apt-get update

1. Install the database MySQL 5

apt-get install mysql-server mysql-client

The system prompts you to set the password:

 

-------------------------------------- Split line --------------------------------------

Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04Http://www.linuxidc.com/Linux/2013-06/86250.htm

Compile and install LAMP (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12) http://www.linuxidc.com/Linux/2013-03/80333p3.htm in CentOS 5.9

Source code construction of Web Server Architecture in RedHat 5.4 LAMP environment and application PHPWind http://www.linuxidc.com/Linux/2012-10/72484p2.htm

LAMP source environment to build WEB Server Linux + Apache + MySQL + PHP http://www.linuxidc.com/Linux/2013-05/84882.htm

Build http://www.linuxidc.com/Linux/2014-05/101087.htm in LAMP + Xcache Environment

-------------------------------------- Split line --------------------------------------

New password for the MySQL "root" user: <-enter your root password
Repeat password for the MySQL "root" user: <-once entered

2. install Apache:

apt-get install apache2

Then the browser accesses:

Default directory:/var/www/html. configuration file:/etc/apache2/apache2.conf

3. install PHP:

apt-get install php5 libapache2-mod-php5

Restart apache2.

service apache2 restart

4. Test PHP and create a probe file:

vi /var/www/html/info.php

The content is as follows:

 

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-06/102919p2.htm

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.