oracledba.help
Legacy

PHP 7 Beta Installation

<- Legacy

Overview

This Quickstart covers installing Apache 2.x and PHP 7.x on Oracle Enterprise Linux (OEL).

Quick Install Session

Change as required for your environment.

 -- Disble packagekit
 systemctl stop packagekit
 systemctl disable packagekit
 systemctl status packagekit

 -- Install Apache
 yum install httpd -y
 systemctl start httpd.service
 systemctl enable httpd.service
 Test: http://localhost

 -- Install Packages
 mv /etc/yum.repos.d/public-yum-ol7.repo /etc/yum.repos.d/public-yum-ol7.repo.bak
 wget -O /etc/yum.repos.d/public-yum-ol7.repo http://yum.oracle.com/public-yum-ol7.repo
 yum install -y yum-utils
 yum-config-manager --enable ol7_developer_php72
 yum install -y php

 systemctl restart httpd.service
 systemctl enable php.service

 -- Test PHP
 vi /var/www/html/pi.php 
 <?php phpinfo(); ?>

 http://localhost/pi.php