How to install LAMP by using Tasksel tool in Ubuntu

To Install Apache, MySQL and PHP using Tasksel tool in Ubuntu

Tasksel tool is used to perform specific task in Ubuntu. It allows the user to install any number of packages at the same time. In this manual we will learn how to install LAMP package.

To install Tasksel

Run the following command to install Tasksel.

root@linuxhelp1:~# apt-get install tasksel -y 
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-image-4.4.0-21-generic
linux-image-extra-4.4.0-21-generic
Use ' sudo apt autoremove'  to remove them.
The following additional packages will be installed:
tasksel-data
.
.
.
Unpacking tasksel-data (3.34ubuntu3) ...
Selecting previously unselected package tasksel.
Preparing to unpack .../tasksel_3.34ubuntu3_all.deb ...
Unpacking tasksel (3.34ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up tasksel (3.34ubuntu3) ...
Setting up tasksel-data (3.34ubuntu3) ...


Open the Tasksel from the terminal by running the following command.

root@linuxhelp1:~# tasksel


Here, choosing LAMP server from the software list and click Ok.


Set the password for the MySQL server and click Ok.


Once the installation process has been completed, open the terminal and check the LAMP services.


Tag : LAMP
FAQ
Q
What is SQL Injection and how do you deal with that?
A
SQL injection is a technique utilized by hackers to get access into your database by using malicious SQL statements. Using this, anyone can gain complete access to your database without any authorization or permission.
Q
How to destroy a session variable?
A
To destroy Session_unregister() Unregister a global variable from the current session
Q
State how can you take a backup of the whole database in MySQL?
A
You can use the command line utility to take a backup of all the mysql table or a specific mysql table easily with the following:

mysqldump –-user [user_name] –-password=[password] [database_name] > [dump_file_name]
Q
How can I install two software at the same time?
A
Yes, you can choose several applications but it gets installed one by one.
Q
How Can you increase the execution time of a php script?
A
Yes, we can use the max_execution_time variable to set the desired time you needed for executing a php script.