Home » Ubuntu » Install the LAMP Ubuntu and a key to uninstall

Install the LAMP Ubuntu and a key to uninstall


Ubuntu a key installation LAMP and a key uninstall


key install LAMP service:

sudotaskselinstalllamp-server



a key to uninstall LAMP:



sudotaskselremovelamp-server





note:



LAMP=Linux+Apache+mySQL+Php



uninstall the Lamp through the above command, you can't help uninstalling the Linux system itself, so,



after uninstalling LAMP, remember to update the system :



sudoapt-getupdate



sudoapt-getupgrade



above two will execute





tasksel makes it easy to install packages such as DNS, server, lamp, Kubuntu, desktop, Ubuntu, desktop, xubuntu,.

This software is pre installed in Ubuntu server, and is not preinstalled in the desktop version. If you want to use it, you have to install it: sudo, apt-get, install, tasksel


With this software, use the command: sudo, tasksel



installing lamp environment:

Enter the command sudo, tasksel, install, lamp-server, you can complete the installation of LAMP.

The sudo tasksel LAMP command to view the installation is successful. It is necessary to point out that not only can install the LAMP component by tasksel software package, also can install other components such as server, DNS server, Mail server, print server.



Install the MySQL administration tool phpmyadmin.
through the command sudo apt-get install phpmyadmin
Because phpMyAdmin defaults to installation in /usr/share/phpmyadmin, not /var/www, it is only necessary to enter sudo ln -s /usr/share/phpmyadmin/ /var/www/ at the terminal to resolve the.

Then restart the Apache server restart via the command sudo /etc/init.d/apache2.

If you want to modify the php.ini file, you can edit it by command sudo GEDIT /etc/php5/apache2/php.ini








ubuntu uninstall lamp













Ubuntu deletes mysql










sudo, apt-get, autoremove, mysql-server

Sudo, apt-get, remove, mysql-common



dpkg-l|grep^rc|awk'{print$2}'|sudoxargsdpkg< span >-P


ubuntu uninstall apache2 php5










1, sudo, apt-get, remove, apache2

2, sudo, apt-get, remove, apache2.2-common

3, sudo, apt-get, autoremove

use this

mainly
aptitude, purge, apache2, apache2.2-common


find /etc -name "*apache*" -exec RM -rf

{};
aptitude, purge, PHP5, php5-common















Original address: click, open link,

Latest