Install LAMP using Tasksel on Ubuntu

Tasksel is a tool in Ubuntu, which helps to install multiple related packages used for specific tasks. This function is similar to that of meta-packages, and, in fact, most of the tasks available from tasksel are also available as meta-packages from the Ubuntu package managers (such as Synaptic Package Manager or KPackageKit). Basic Ubuntu server, OpenSSH server, DNS server, LAMP server, Mail server, Openstack, PostgreSQL database etc.
Install LAMP using Tasksel

See Also:

  • Install LAMP using Tasksel Command Line on Ubuntu
  • Install Tasksel

    Tasksel package is available under default repositories on most of Ubuntu, Use the following command to install it.

    # sudo apt-get install tasksel
    

    Install LAMP using Tasksel

    After installing tasksel, Now install LAMP setup on your Ubuntu using following command

    $ sudo tasksel
    

    Now select the LAMP server when installer will prompt like below and press OK.
    tasksel

    tasksel-1

    During installation of MySQL Server by tasksel, It will prompt for MySQL root account password twice.
    tasksel-2

    tasksel-3

    and your setup will be completed within few minutes.

    Verify LAMP Server

    Now create a phpinfo file info.php using following code.

    # vim /var/www/html/info.php
    
    <?php
      phpinfo();
    ?>
    

    Now access below URL in browser.

    http://192.168.0.108/info.php
    

    Reference:

  • Ubuntu Community
  • Enjoy it!

    No Responses

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    The reCAPTCHA verification period has expired. Please reload the page.