I have read some tutorials about install LAMP and I have seen that they install differents packages for MySQL and PHP.
For example to install MySQL:
1. mysql-server
2. mysql-server libapache2-mod-auth-mysql php5-mysql
3. mysql-server mysql-client libmysqlclient-dev
4. mysql-server mysql-client
For PHP:
1. php5 libapache2-mod-php5 php5-mcrypt
2. php5 libapache2-mod-php5 php5-cli php5-mysql
3. libapache2-mod-php5
4. php5 php-pear
Also I noticed that LAMP can be installed with only one command:
lamp-server^
And also with tasksel:
sudo apt-get install tasksel
sudo tasksel install lamp-server
This all very confusing. I have two machines one ubuntu 12.04 and other ubuntu 14.04. How can I know what packages I need to install?