Bitnami provides a free all-in-one tool to install in Linux with Apache, MySQL and PHP, you are able to use this of development purpose for your applications. 

$ sudo wget

$ sudo chmod +x

Click on button  " Next >"

then click on "Next >"

The XAMPP will be installed to /opt/lampp directory by default, click on button "Next >"

Click on button "Next >"

Click on button  "Finish".

Apache, MySQL and ProFTPD services are running, you will see the screenshot below, 

Open your browser and open the URL: http://localhost/

If would like to open the PHPMyAdmin page open the URL: http://localhost/phpmyadmin/
for PHP Info: http://localhost/dashboard/phpinfo.php