After installing php, to make it work with apache we have 2 options: either installing the Apache Module or using php-fpm. This article covers how to configure php-fpm to work with Apache Prerequisite: Apache installed. Vhost configured. You must first install php which is covered in this article. Creating php.
After installing Apache and Configuring Vhost you would install PHP and configure it to work with Apache so that you can use dynamic websites or CMS built with php such as Wordpress. Install EPEL Repositoryyum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpmfor CentOS/RHEL/Oracle Linux 7 yum