Topic: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

Using your src rpm php-pear-1.9.5-4.remi.src.rpm I'm getting the following when rebuilding it against Php 5.6.0
(Httpd 2.4.10 rpms and Php 5.6.0 rpms were built on the same machine)
Running rpmbuild as unprivileged user "freds" and I don't understand why it's trying to touch a file somewhere accessible only by root...

PHP Warning:  touch(): Unable to create file /usr/share/pear/.lock because Permission denied in /home/freds/rpmbuild/BUILD/php-pear-1.9.5/PEAR/Registry.php on line 838

Re: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

I cannot reproduce... with rpmbuild or mock (which should be preferred in all case)
try to uninstall php-pear from your local computer during build...

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: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

php-pear was already uninstalled...

Re: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

Sorry... no idea...

Seems like something wrong in your environment.
You should really give a try using "mock" instead of rpmbuild.


Notice: I don't really understand why you need to rebuild everything.
Ok, I understand you want httpd 2.4.10.

But you can use my RPM of php, just can't use mod_php, but php-fpm is really easy to use
Just change
    SetHandler application/x-httpd-php
to
    SetHandler "proxy:fcgi://127.0.0.1:9000"

And even if you really want to rebuild php, why do you think you also need to rebuild the other packages ?

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: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

Ah of course it was a user error :-)
Uninstalling php-pear didn't remove everything... So I had to delete /usr/share/php-pear and /var/cache/php-pear
Then rpmbuild php-pear just worked fine.

As for the rebuilding it's the only way to maintain an upgrade path for a number of apps without having to rely on yum from distros. It's a pain but less so than being stuck in the past :-)

Using php-fpm with Nginx. Never tried with Apache. Why is mod_php not usable? (Threading issues?)

Merci.

Re: Unable to rebuild php-pear 1.9.5 against Php 5.6.0 on SL 6.5

> Ah of course it was a user error :-)

wink
Another proof, if needed, that building on a dev computer is a bad idea, once again : use mock.

> Using php-fpm with Nginx. Never tried with Apache. Why is mod_php not usable? (Threading issues?)

mod_php from my build is for apache 2.2, so doesn't work with 2.4 (of course, if you rebuild everything, it will work).

But I think mod_php should die.
php-fpm is better (except for a few cases) especially as it now support SetHandler to proxy.
Process isolation (security), and allow to use apache in threaded mode (worker/event) even if mod_php is provided for ZTS, it is not officially supported by upstream.

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