Install LAMP on Ubuntu10.10

Source: Internet
Author: User
Originally found that the installation of LAMP on Ubuntu10.10 appeared to be faulty. The attempt failed many times, and later found that the installation sequence was the key. LAMP is an abbreviation. It refers to a group of free software that is usually used together to run dynamic websites or servers: Linux, operating system, Apache, web server, MySQL, database Management System (or database server); PHP and sometimes Perl or Python, script language (this Article refers to PHP ). (The following commands add sudo such

The originally found materials for installing LAMP on Ubuntu 10.10 appeared to be faulty. The attempt failed many times. Later, it was found that the installation sequence was the key.

LAMP is short for a group of free software that is usually used together to run dynamic websites or servers:
Linux, operating system;
Apache, web server;
MySQL, database management system (or database server );
PHP and sometimes Perl or Python, scripting language (this Article refers to PHP ).

(Sudo is added to all the commands below. If you require a password, enter the root password)

Step 1

Install mysql

Sudo apt-get install mysql-client mysql-server

Step 2

Install apache

Sudo apt-get install apache2

Step 3

Install php

Sudo apt-get install php5 libapache2-mod-php5

In addition, necessary and common modules are installed.

Sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp

Step 4

Restart apache

Sudo/etc/init. d/apache2 restart Step 5

This step is to enable the text editor

Sudo gedit/var/www/info. php step 6

Archive in the text editor

Step 7

Open the robot and enter the following addresses.

Http: // localhost/info. php

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.