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