I need to install php 5.6 and some php modules on a Red Hat 7.4 server which is managed using puppet. Here's my init.pp file:
package {"epel-release":
provider=>rpm,
ensure=>installed,
install_options => ['--nodeps'],
source=> "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm",
}
package {"ius-release":
provider=>rpm,
ensure=>installed,
install_options => ['--nodeps'],
source => "https://centos7.iuscommunity.org/ius-release.rpm",
require => Package["epel-release"],
}
$php_packages = ['php56u', 'php56u-devel', 'php56u-intl', 'php56u-ldap', 'php56u-mysqli', 'php56u-xsl', 'php56u-gd', 'php56u-mbstring', 'php56u-mcrypt']
package { $php_packages:
ensure => 'installed',
}
xsl and mysqli fail to install. All other packages install correctly. Here are the errors:
Error: Execution of '/bin/yum -d 0 -e 0 -y list php56u-xsl' returned 1:
Error: No matching Packages to list
Error: Execution of '/bin/yum -d 0 -e 0 -y list php56u-mysqli' returned 1:
Error: No matching Packages to list
All packages in development environment (Centos 7.3) install correctly using the following:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh epel-release-latest-7*.rpm
wget https://centos7.iuscommunity.org/ius-release.rpm
sudo rpm -Uvh ius-release*.rpm
sudo yum install php56u php56u-devel php56u-intl php56u-ldap php56u-mysqli
php56u-xsl php56u-gd php56u-mbstring php56u-mcrypt
I don't understand how php56u-xsl can be installed on Centos but not on Red Hat when I have the same rpms enabled on both. Apologies for the wall of text. Getting to the point:
Do rmps contain different packages per OS?
Does anyone know a way I can get php56u-xsl installed on a red hat server?