I have been testing Ubuntu 18.04 LTS recently. It is installed on my Windows 10 machine via VMware Workstation 14 Pro… There are lots of fun things in store and upcoming. Here’s how to install Apache2 with PHP support on Ubuntu 18.04 LTS.
Oh, Ubuntu 18.04 LTS also comes with the latest version of PHP… which is 7.1
If you’re going to be building any PHP based application, you’re mostly going to need PHP and related modules installed on your systems. PHP is an open source, server scripting language use for creating dynamic web applications and websites.
PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.
For those wanting to test Apache2 with PHP support on Ubuntu 18.04 LTS, the steps below show you how to do that. Majority of the popular content management systems like WordPress, Joomla, Drupal use it, so PHP is a big deal!
When you’re ready to set up Apache2 environment with PHP 7.1 support, follow the steps below:
Step 1: Install Apache2 Web Server
sudo apt install apache2
After installing Apache2, the commands below can be used to stop, start, reload and enable Apache2 service to always startup when the server boots up.