How to Install Nginx with PHP-FPM on CentOS 7

Prepare Repository for CentOS / RHEL 7 : # yum install epel-release # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm Install PHP7.4 : # yum –enablerepo=remi-php74 install php-mysql php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt Prepare NGINX repository : # vi /etc/yum.repos.d/nginx.repo Then, open the nginx.repo file using a text editor and add the following lines. [nginx] name=nginx repo …

Read more