PHP7 tersedia dan didukung di OL7. Saluran distribusi YUM harus diaktifkan secara manual agar paket RPM tersedia:
1. Edit /etc/yum.repos.d/public-yum-ol7.repo file dan pastikan Anda mengaktifkan “ol7_software_collections ” repo.
[ol7_software_collections] name=Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64) baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
2. Instal PHP7.0 dan http24:
# yum install rh-php70-php rh-php70 httpd24-mod_ssl
3. Hentikan layanan httpd lama lainnya dan nonaktifkan juga:
# systemctl stop httpd # systemctl disable httpd # systemctl status httpd
4. Mulai layanan httpd24 dan aktifkan juga:
# systemctl start httpd24-httpd24-httpd.service # systemctl enable httpd24-httpd24-httpd.service # systemctl status httpd24-httpd24-httpd.service
5. Uji PHP7.0 dan httpd24.
# echo ' ' >/opt/rh/httpd24/root/var/www/html/phpinfo.php # rpm -q elinks >/dev/null || yum install elinks # elinks -dump http://localhost/phpinfo.php | head -15
"yum clean all" tidak menghapus cache repositori yum di CentOS/RHEL/OEL
CentOS/RHEL:Cara menemukan paket dengan file yang hilang menggunakan YUM