1 (edited by ghost 2013-10-28 10:15:20)

Topic: To Build PHP 5.5 on Apache 2.4 mpm-event mod

Hi:

I download your PHP 5.5.5 src.rpm rebuild for httpd 2.4.6,
prefork mode is ok,but at default mpm-event mode with zts fail,

+ grep -q 'threaded:.*yes'
+ exit 1
error: Bad exit status from rpm-tmp (%prep)

RPM build errors:
    Bad exit status from rpm-tmp

cat rpm-tmp :

# Regenerated bison files
# to force, rm Zend/zend_{language,ini}_parser.[ch]
if [ ! -f Zend/zend_language_parser.c ]; then
  ./genfiles
fi

exit 0

Would you check it?

Thank you

Re: To Build PHP 5.5 on Apache 2.4 mpm-event mod

I don't understand what is your issue.

I'm currently running Apache 2.4.6 in event mode + PHP 5.5.5 ZTS.


P.S. and with Apache in thread mode, I will rather recommend the use of mod_proxy_fcgi + php-fpm.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by ghost 2013-10-28 10:16:34)

Re: To Build PHP 5.5 on Apache 2.4 mpm-event mod

I can't rebuild your PHP55.spec at mpm-event mod,
http.conf:

LoadModule mpm_event_module mod_mpm_event.so
#LoadModule mpm_prefork_module mod_mpm_prefork.so

must rebuild at mpm_prefork mode.

error message is show with above.

Re: To Build PHP 5.5 on Apache 2.4 mpm-event mod

> error message is show with above.
I don't see error message in your post.

I don't know what is your build environment.

The spec provides the build of both NTS and ZTS variant of mod_php.

Yes, there is a check that apache is configured as prefork during build.

# ensure than current httpd use prefork MPM.
httpd -V  | grep -q 'threaded:.*yes' && exit 1

This is because PHP don't have any option to force the build in NTS mode, but only an option to force it in ZTS.

So build environment => Apache in prefork
And runtime environment => Apache in prefork, worker or event mode.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: To Build PHP 5.5 on Apache 2.4 mpm-event mod

Ok,now I know the way is build at prefork mode.

Thank you smile