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
(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:
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.
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.