12/27/2023
Software
PHP
Linux
DevOps
If you're on a RHEL distribution, follow these steps:
- Go here: https://rpms.remirepo.net/wizard/
- Select. e.g. EL 7, 8.3.1, Default, x86_64
- Follow Steps until break
Will likely break like this
php74-fpm-httpd-7.4.21-1.el7.ius.noarch (@ius)
Requires: php74-fpm = 7.4.21-1.el7.ius
Removing: php74-fpm-7.4.21-1.el7.ius...
--skip-broken will skip the packages with these errors,
but need to solve the actual issue
In this case:
sudo yum remove imagick* ImageMagick* php-pear* php74-fpm-httpd php74-pecl-apcu php74-fpm-7.4.27-1.el7.ius.x86_6 php74-pecl-igbinary php74-fpm-nginxyum update- Either install or remove from
/etc/php.d/*-[name]- e.g.
gd,redis,gearman
- e.g.
yum install php-gd php-redis php-gearman php-pecl-igbinary php83-php-gd libwebp gearmand php-mcrypt php83-php-sodium- CHECK
/etc/php.d/for order!!! (e.g. redis should be last) php- Handle any issues
yum install ImageMagick- start services if they haven't been:
httpd, php-fpm, apache
Additional Resource: https://utho.com/docs/tutorial/how-to-install-php-8-in-centos-7/