If you’re going to be developing any PHP application, you’re mostly going to need PHP installed. 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.
This brief tutorial is going to show students and new users how to setup Apache2 web server environment with PHP support. Most popular content management systems like WordPress, Joomla, Drupal use PHP.
PHP is a big deal!
When you’re ready to set up Apache2 environment with PHP 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 and enable Apache2 service to always startup when the server boots up.
After installing Apache2 above, run the commands below to install PHP and related PHP modules. There are many PHP modules that perform different functions.. however, there are some important ones that are always needed when developing PHP based websites.