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
Centos 6, httpd 2.4 and PHP 5.6
Re: Centos 6, httpd 2.4 and PHP 5.6
Using SCL provides you a consistent stack
rh-php56 SCL uses httpd24 SCL.
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.
rh-php56 SCL uses httpd24 SCL.
Code: Select all
$ yum --enablerepo=extras install centos-release-scl
$ yum install httpd24 rh-php56 rh-php56-php
In this case, you don't have any dependency between http and php.
Re: Centos 6, httpd 2.4 and PHP 5.6
Thx
I will try that
I will try that
-
- Posts: 1
- Joined: 2017/04/18 18:55:09
Re: Centos 6, httpd 2.4 and PHP 5.6
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
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
-
- Posts: 1
- Joined: 2017/04/27 22:38:47
Re: Centos 6, httpd 2.4 and PHP 5.6
Think you're just missing this: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
Code: Select all
scl enable httpd24 bash
Re: Centos 6, httpd 2.4 and PHP 5.6
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
- 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