Installation PHP7 sur apache24 en mod_php et php_fpm

Latest response

Bonjour,

Je viens d'installer PHP7 sur la base de la dernière version 2.3 des Software Collections :
yum install rh-php70

Mon serveur : Red Hat Enterprise Linux Server release 7.1 (Maipo)

Je dois faire tourner PHP7 sur apache24 en mod_php, puis ensuite tester en php_fpm.

Je ne trouve pas le module php70-php suite à l'installation de PHP7.

Avez-vous une procédure d'installation qui pourrait m'éclairer ?

Cordialement,
P.Faureau

Responses

Bonjour,

My apologies - my French is not good enough to use here.

With software collections, you have to "enable" them first.

See here for some abbreviated instructions: http://developers.redhat.com/products/softwarecollections/get-started-rhel7-php/

but update with the PHP 7 version - "rh-php70"

More on the latest PHP 7 version is here: https://access.redhat.com/documentation/en-US/Red_Hat_Software_Collections/2/html-single/2.3_Release_Notes/index.html#sect-RHSCL-Changes-php

Hello Mike,

It's a little bit different in my entreprise : we use internal repository AptPlaton (synchronised with the RHSCL software repository on november 16th and the 2.3 version).

After, I used the following command to install PHP7 : yum install rh-php70

Now, I want to plugg apache24 with PHP7 as mod_php, but I can't find any libphp7.so extension :-(

Regards

Possible to find a notice "How to install and configure PHP7 to run with apache24 on Linux RHSCL - mod_php / PHP-FPM" ?

This was supplied by one of our Documentation experts, Robert Kratky:

There's [1] (How to configure Apache httpd to use PHP from RHSCL (rh-php56)). It says 'php56', but it actually mentions php70, and the instructions should be the same.

It also discusses mod_php vs php-fpm.

There's a separate solution about installing php70 [2].

The solution linked by Mike above (https://access.redhat.com/solutions/2662201) has now been updated to include specific instructions for rh-php70.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.