If Not True Then False

Install Apache/PHP 7.1.2 on Fedora 25/24, CentOS/RHEL 7.3/6.8 - Comment Page: 8

This guide shows howto install Apache HTTP Server (httpd) with PHP 7.1.2 and following modules on Fedora 25/24/23, CentOS 7.3/6.8 and Red Hat (RHEL) 7.3/6.8 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...
Categories:

259 Comments

Leave a Comment

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

Input your comment.
help

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.

Jaime

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
JR

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
Rainer

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

Thanks,
Rainer

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.
Vasile

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