Page 1 of 1

rh-php70 cannot run in apache 2.2 in CentOS 6

Posted: 2019/02/01 06:50:31
by yylib
I am using CentOS 6.10 with Apache 2.2. Recent, I have to upgrade PHP from 5.4 to 7.0. I downloaded rh-php70* packages. rh-php70 is enable. And php-v showed that the version is 7.0. However, an error message is returned when I restart httpd service.
undefined symbol: ap_unixd_config
Does rh-php70 compatible with apache 2.2? If yes, please provide some instructions to me.

Re: rh-php70 cannot run in apache 2.2 in CentOS 6

Posted: 2019/02/01 14:37:40
by TrevorH
What is the output from rpm -qa rh-php70\*

Re: rh-php70 cannot run in apache 2.2 in CentOS 6

Posted: 2019/02/01 15:23:17
by remirepo
> Does rh-php70 compatible with apache 2.2? If yes, please provide some instructions to me.

The rh-php70-php package only provides the mod_php module for httpd 2.4 from httpd24 SCL

(and you should not be able to install it without the proper dependency)

Re: rh-php70 cannot run in apache 2.2 in CentOS 6

Posted: 2019/02/01 15:53:24
by TrevorH
The rh-php70-php package only provides the mod_php module for httpd 2.4 from httpd24 SCL
I am using rh-php70 packages on CentOS 6 with httpd 2.2.15 and it works just fine. Are you thinking of CentOS 7?

Looking further, it seems that you have to run rh-php70-php-fpm.

Re: rh-php70 cannot run in apache 2.2 in CentOS 6

Posted: 2019/02/02 07:46:47
by remirepo
using FPM is very simple with httpd 2.4 (SetHandler to fcgi proxy)

With httpd 2.2 in C6, not so easy (ProxyPass... using mod_proxy-fcgi from EPEL)

IMHO, far simpler to use httpd24 SCL
Or switch to C7.