Install Apache, PHP and MySQL on Ubuntu 16.04 in one command

Ubuntu is one of the most user friendly distributions of Linux operating system. If you want to do PHP and MySQL development on an Ubuntu based machine or want to host an application developed in these technologies on a virtual server that runs Ubuntu, then you will first need to install the LAMP stack on that system.

Fortunately, it is very easy and simple to do so. First of all, update your repositories:

Now, install  tasksel . It is a helper program that provides easy installations for a number of related software packages, one of which is LAMP stack.

It might be already installed on your Ubuntu distro, as was the case on my DigitalOcean droplet. Now, run tasksel. Continue reading Install Apache, PHP and MySQL on Ubuntu 16.04 in one command

Send Emails from PHP on Ubuntu localhost LAMP setup

In this article, I will walk you through the process of configuring your local, Ubuntu based development machine to send emails from within PHP and also from the command line terminal. In a nutshell, you need to install and configure a mail server on your local computer. The mail server that we are going to use is Postfix. So without any further delay, lets get started.

Open up the terminal and, first of all, enter the following command:

It will make available the “mail” command on your terminal and also will install all the programs that it depends on. Our desired mail server Postfix is one of them. During installation, accept the defaults as configuration options of Postfix when asked.

Once the installation is complete, type following command:

Continue reading Send Emails from PHP on Ubuntu localhost LAMP setup