Centos 6, httpd 2.4 and PHP 5.6

Issues related to applications and software problems
Post Reply
makinote
Posts: 2
Joined: 2016/03/11 09:35:39

Centos 6, httpd 2.4 and PHP 5.6

Post by makinote » 2016/03/15 11:05:27

Hi there

What would be the best way to achieve a running Centos 6 with HTTPD 2.4 and PHP 5.6?

What repos should I use?

I have tried the following repos: IUS, SCL, REMI without luck.

The IUS httpd24u package and the php56u package have conflicting dependencies (httpd-tools). Also, the remi-php56 depends on base httpd and is incompatible with httpd24u.

Thank you

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Centos 6, httpd 2.4 and PHP 5.6

Post by remirepo » 2016/03/15 14:07:36

Using SCL provides you a consistent stack

rh-php56 SCL uses httpd24 SCL.

Code: Select all

$ yum --enablerepo=extras install  centos-release-scl
$ yum install   httpd24  rh-php56   rh-php56-php
But with http 2.4, best way is to not use "mod_php" and use php-fpm instead.
In this case, you don't have any dependency between http and php.
Remi's Repository - Forum - Blog

makinote
Posts: 2
Joined: 2016/03/11 09:35:39

Re: Centos 6, httpd 2.4 and PHP 5.6

Post by makinote » 2016/03/16 12:34:09

Thx :D

I will try that

mbeddedsoft
Posts: 1
Joined: 2017/04/18 18:55:09

Re: Centos 6, httpd 2.4 and PHP 5.6

Post by mbeddedsoft » 2017/04/18 18:59:31

Hello,
I followed the instructions to install Apache httpd24 on Centos 6.9. The packages installed but now I don't have 'apachectl' and the command 'which httpd' returns nothing. Cannot start it. Is there something else I need to do to configure and run httpd24?

Any ideas?

thanks,
mbeddedsoft

AudioBrainWash
Posts: 1
Joined: 2017/04/27 22:38:47

Re: Centos 6, httpd 2.4 and PHP 5.6

Post by AudioBrainWash » 2017/04/27 22:44:46

mbeddedsoft wrote:Hello,
I followed the instructions to install Apache httpd24 on Centos 6.9. The packages installed but now I don't have 'apachectl' and the command 'which httpd' returns nothing. Cannot start it. Is there something else I need to do to configure and run httpd24?

Any ideas?

thanks,
mbeddedsoft
Think you're just missing this:

Code: Select all

scl enable httpd24 bash
After that, you should be able to use the Apache CTL - though just use httpd instead apachectl

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Centos 6, httpd 2.4 and PHP 5.6

Post by remirepo » 2017/04/28 05:37:59

Using mod_php is probably the simpler way to configure php, but have lof ot tricky bits
- hard dependency with httpd (your issue)
- single php version
- only prefork mode (no thread mode)

So using FPM is usually the better way, especially with httpd 2.4
Remi's Repository - Forum - Blog

Post Reply