Oracle Linux 6 Install LAMP WebServer with PHP 7
Hi! The Tutorial shows you Step-by-Step How to Install Apache, MariaDB and PHP 7 in Oracle Enterprise GNU/Linux 6.x Desktop/Server.
And LAMP for Oracle Linux 6 has become a de facto Development Standard. Today, the products that make up the LAMP stack are included by default in nearly all GNU/Linux distributions, and together they make a powerful web application platform.
Thanks to the new Zend Engine 3.0, your apps see up to 2x Faster performance and 50% better Memory consumption than PHP 5.6, allowing you to serve more concurrent users without adding any hardware. Designed and refactored for today’s workloads, PHP 7 is the ultimate choice for web developers today.

-
1. Launching Terminal
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
Or Login into Server Shell.
[nextpage title=”Installing”]
-
2. Installing MariaDB
How to Install MariaDB on Oracle Linux
-
3. Setting Up Repo
How to Install Remi’s Rpm Repos on Red-Hat Linux Based
-
4. Installing
Then to Install Apache & PHP 7.3.
sudo yum --enablerepo=remi,remi-php73 install httpd php php-common
Again to Install PHP Modules.
sudo yum --enablerepo=remi,remi-php73 install mariadb php-pear php-mysqlnd php-gd php-mbstring php-mcrypt php-xml
[nextpage title=”Getting Started”]
-
5. Starting
Starting & Possibly Enabling Apache
To Launch it:sudo service httpd start
To Get it Started at boot:
sudo service httpd enable
-
6. Testing
Finally, to Test LAMP Setup
Making the Php info File:sudo nano /var/www/html/test.php
Append:
<?php phpinfo();
Ctrl+x to Save & Exit from nano editor :)
Check on Browser at:
http://localhost/test.php
Thanks to if-not-true-then-false.com