Ubuntu Install and set lamp (linux-apache-mysql-php) service

Source: Internet
Author: User
Keywords Install lamp remove if
Tags aliyun apache apache2 delete help help you html http

This is to help you install and set up a lamp (linux-apache-mysql-php) service in the http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu." These include Apache 2, PHP 4/5, and MySQL 4.1/5.0. When you install the system from the Ubuntu 6.06 (Dapper Drake) "Server CD", there is an option to install lamp at the beginning of the Ubuntu installer. Select to install Apache2, PHP5 and MySQL 5.0.

Some applications work with PHP5, while others require PHP4. Determine the PHP version of the application installation and the corresponding APACHE2 module. You cannot install PHP4 and php5 in the same apache2 instance. Installing one of these will delete the other. If you're php4 and PHP5, know which version of the apache2 PHP module you want to use. If the LIBAPACHE2-MOD-PHP5 is already installed, the PHP4 package should be installed LIBAPACHE-MOD-PHP4 instead of LIBAPACHE2-MOD-PHP4. If the LIBAPACHE2-MOD-PHP5 package is not installed, PHP4 will be apache2 PHP module (LIBAPACHE2-MOD-PHP4). Looking at this example, most Web programs use APACHE2,PHP5 and mysql5.0. If your Web program doesn't mention a specific version in the documentation, install them.

Install the default lamp cluster in the Ubuntu 6.06 LTS (Dapper Drake)

If you don't install it with the lamp installer on the server CD, you don't want to reload the system to install the same package. Install the following packages in any way

Apache2 Php5-mysql libapache2-mod-php5 Mysql-server

(for example, sudo apt install apache2 php5-mysql libapache2-mod-php5 mysql-server)
These packages can all be found in the main software library of Ubuntu 6.06 LTS (Dapper Drake). Once the lamp is installed, you need to set a root password for MySQL, and then create a database, user, and password based on your Web application. That's it!

Install the default lamp set in the Ubuntu 7.04 (feisty fawn).

In feisty, the Ubuntu basic system contains Tasksel. You can install lamp with Tasksel or as described above.

sudo tasksel install Lamp-server

How to remove the lamp cluster after activation

Remove the lamp set by removing the following package:

Apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 Libdbd-mysql-perl Libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 Mysql-common mysql-server mysql-server-5.0 Php5-common Php5-mysql

You can use the purge parameter to delete the configuration log at the same time. When you want to completely remove Apache configuration, after you delete the above packages, you have to manually remove
/etc/apache2 this folder.

Related Article

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.