Solution to problems encountered when installing LAMP on Linuxmint13 (Ubuntu12.04)

Source: Internet
Author: User
Tags linux mint
On Linuxmint13 (Ubuntu12.04), I used the apt-get command to install LAMP for a component and perform an experiment based on the steps in the UbuntuServer best practices (see the http://www.linuxidc.com/Linux/2011-07/39170.htm for download, I encountered the following problem: when I learned chapter 4, run the following command to install the LAMP package:

On Linux mint 13 (Ubuntu 12.04), according to steps on Ubuntu Server best practices (see http://www.linuxidc.com/Linux/2011-07/39170.htm for download, when you use the apt-get command to install LAMP for a component and perform an experiment, you encounter the following problems:

When I learned chapter 4, run the following command to install the LAMP package:

Sudo apt-get install apache2 libapache2-mod-php5 php5-mysql mysql-server

The following dependency problem occurs later (because not all records are recorded one by one, but the following keywords are searched, so the following keywords can only be provided during sorting ):

Libapache2-mod-php5: Dependency: apache2-mpm-prefork (> 2.0.52) but it will not be installed

Apache2.2-common (= 2.2.22-1ubuntu1) But 2.2.22-1ubuntu1. 1 is about to be installed

Apache2-mpm-itk but it will not be installed

The error cannot be corrected because you require some software packages to maintain the status quo, that is, they destroy the dependency between software packages.

This solution has not been found on the internet until it is turned upside down. The next 86th page of this book finds an ultimate solution, that is, to uninstall all the previously installed LAMP-related software packages. The command is as follows:

The fully uninstall command is

Sudo apt-get remove -- purge apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl unzip libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql- server mysql-server-5.0 php5-common php5-mysql

Sudo rm-R/etc/php5

If you do not want to fully uninstall and want to keep the configuration file, you can remove -- purge from the above command to make it the following command:

Sudo apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl unzip libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql

Sudo rm-R/etc/php5

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.