• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How To Enable PHP 7.0 And httpd24 On Oracle Linux 7

by admin

PHP7 is available and supported on OL7. The YUM distribution channel must be manually enabled for the RPM packages to be available:

1. Edit /etc/yum.repos.d/public-yum-ol7.repo file and make sure you enable “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. Install PHP7.0 and http24:

# yum install rh-php70-php rh-php70 httpd24-mod_ssl

3. Stop any other old httpd service and also disable it:

# systemctl stop httpd
# systemctl disable httpd
# systemctl status httpd

4. Start httpd24 service and also enable it:

# systemctl start  httpd24-httpd24-httpd.service
# systemctl enable httpd24-httpd24-httpd.service
# systemctl status httpd24-httpd24-httpd.service

5. Test PHP7.0 and 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

Filed Under: CentOS/RHEL 7, Linux, OEL 7

Some more articles you might also be interested in …

  1. How to disable avahi-daemon service in CentOS/RHEL
  2. What are SELinux Users and how to Map Linux Users to SELinux Users
  3. UNIX / Linux : How to change the niceness (priority) of a process
  4. repquota Command Examples in Linux
  5. Unable to start Nagios Service (CentOS/RHEL)
  6. How To Disable Ksplice Service on OEL
  7. CentOS / RHEL 5, 6 : how to disable NetworkManager
  8. How to use strace and ltrace commands in Linux
  9. Beginner’s Guide to LVM (Logical Volume Management)
  10. Installation Steps of jEdit on Ubuntu Linux

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright