If Not True Then False

Install Apache/PHP 7.2.0 on Fedora 27/26, CentOS/RHEL 7.4/6.9 - Comment Page: 8

This guide shows howto install Apache HTTP Server (httpd) with PHP 7.2.0 and following modules on Fedora 27/26/25, CentOS 7.4/6.9 and Red Hat (RHEL) 7.4/6.9 systems. OPcache (php-opcache) – The Zend OPcache provides faster PHP execution through opcode caching and optimization. APCu (php-pecl-apcu) – APCu userland caching CLI (php-cli) – Command-line interface for PHP PEAR...


Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.


Now that we have Apache installed and working properly, we need to make sure that it’s set to start automatically when the Cloud Server is rebooted.

reply Reply

Hi Jaime,

Check step 1.5

## Fedora and CentOS/RHEL 7.1 ##
systemctl enable httpd.service
## CentOS / RHEL 6.7/5.11 ##
chkconfig --levels 235 httpd on
reply Reply

Thanks for the tricks, but OPCache is not installed on CentOS 7.3 with these instructions. Do you have more advice here?


reply Reply
Vasile Gorcinschi

Hi JR,

I installed httpd using dnf. I don’t need php. But placing a simple ‘index.html’ file into “var/www/html” and trying to access it at localhost:80/index.html

I have this message: The requested URL /index.html was not found on this server.

Any ideas?

Thank you.

reply Reply
Ivan Ferrer

I did all the above processes, and in the test, did not run PHP, displayed the code on the screen!

reply Reply
Leomar Junio

Olá, o “epel-release-7-8.noarch.rpm” esta off, foi atualizado para o epel-release-7-9.noarch.rpm . Valeu!

reply Reply