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