Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Upgrading PHP with NGINX

$
0
0
So I'm tasked with upgrading php that was installed with NGINX (OS = RHEL 7.9). I installed NGINX from the RHEL repo, but the instructions I followed to add PHP got it from the remi repo. Is it possible for me to move over to the RHEL repo so that I can have it take updates? My immediate concern is getting it up to 7.3.x from 7.2.24 so that the security scan stops fingering me. Any help? Here are steps I followed that I'm sure I found online somewhere, lol...

$yum install nginx

Set up php-fpm to support php running under NGINX:
• rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
• rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
• yum --enablerepo=remi,remi-php72 install php-fpm php-common
• yum --enablerepo=remi,remi-php72 install php-opcache php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-redis php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
• systemctl start php-fpm.service
• systemctl enable php-fpm.service

Thanks!
Eric

Viewing all articles
Browse latest Browse all 4759

Trending Articles