Once you have installed and configured your Vagrant Virtual Machine with Linux Centos 7 follow these simple steps to get up and running PHP7-FPM (Fast Page Manager):

Step 1. Once you vagrant up the VM, vagrant ssh to open a ssh console:

$ vagrant up
$ vagrant ssh
[vagrant@localhost ~]$ 

 

Step 2. Make sure you have epel repository available

[vagrant@localhost ~]$ sudo yum -y update
[vagrant@localhost ~]$ sudo yum -y install epel-release

 

 Step 3. Get Remi Repository:

[vagrant@localhost ~]$ wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
[vagrant@localhost ~]$ sudo rpm -Uvh remi-release-7.rpm

 

Step 4. Install PHP-FPM

[vagrant@localhost ~]$ sudo yum install yum-utils -y
[vagrant@localhost ~]$ sudo yum-config-manager --enable remi-php74
[vagrant@localhost ~]$ sudo yum -y --enablerepo=remi,remi-php74 install php-fpm php-common
[vagrant@localhost ~]$ sudo systemctl start php-fpm
[vagrant@localhost ~]$ sudo systemctl enable php-fpm

 

Next Up:

 Nginx with PHP-FPM in Vagrant Centos 7 Virtual Machine