The officially official Devuan Forum!

You are not logged in.

#1 2020-12-15 14:23:27

mckaygerhard
Member
Registered: 2017-04-21
Posts: 283  
Website

php ported packages from sury know problem with 5.6 segfault

i started a new thread event post in the tdenetwork anunce post php package.. to mantain order here:

hey @tdrnetworks after using your packages i try now with apache2.. and got some errors.. but before write here i try if the error comes from sury shit packages.. and got something insteersting..

i setup php fpm with apache2 in pure debian way such as:

1 - install two  versions 7.2 and 7.4 only but i watn 7.2 globally as default:

apt-get install php7.2* php7.4* php7.2-fpm

2 - setup php 7.2 as default in fpm

sed -i -r 's|^.*listen =.*|listen = /var/run/php/php7.4-fpm.sock|g' /etc/php/7.4/fpm/pool.d/www.conf
sed -i -r 's|^pid =.*|pid = /var/run/php/php7.4-fpm.pid|g' /etc/php/7.4/fpm/php-fpm.conf

sed -i -r 's|^.*listen =.*|listen = /var/run/php/php7.2-fpm.sock|g' /etc/php/7.2/fpm/pool.d/www.conf
sed -i -r 's|^pid =.*|pid = /var/run/php/php7.2-fpm.pid|g' /etc/php/7.2/fpm/php-fpm.conf

/sbin/service php7.4-fpm stop

/sbin/service php7.2-fpm restart

3 -  install apache2 and setup php 7.2 as default for all

a2dismod php5.6 php7.1 php7.0 php7.4 php5.6

a2dismod php5.6-fpm php7.1-fpm php7.0-fpm php7.4-fpm

a2disconf php5.6-fpm php7.1-fpm php7.0-fpm php7.4-fpm

a2enmod actions fcgid alias proxy proxy_fcgi setenvif

a2enconf php7.2-fpm

/sbin/service apache2 restart

update-alternatives --set php /usr/bin/php7.2
update-alternatives --set phar /usr/bin/phar7.2
update-alternatives --set phar.phar /usr/bin/phar.phar7.2 
update-alternatives --set phpize /usr/bin/phpize7.2
update-alternatives --set php-config /usr/bin/php-config7.2

4 - later put a test file :

echo "<?php echo "hi"; ?>" > /var/www/html/info.php

In this point for that test code it works.. but lest try phpinfo:

5 - put info php test:

echo "<?php phpinfo(); ?>" > /var/www/html/info.php

with that i got a problem, got 503 error a proxy handler unavailable request cod seems "could not connect to proxy handler"

i tried the same setup in debian and does neither work.. only by enabling apache2 php 7.2 mod .. but fpm does not work .. any tips here?

NOTE:

found that the sock points in debian to php-fpm sock that are unique.. .. puff that was in debian not devuan ..  using lighttpd everithing is good but with apache i'm unable to setup php-fpm in debian pure way.. always i must enable php mods event confs

EDIT:

no i got

WARNING: [pool www] child 4319 exited on signal 11 (SIGSEGV) after 1800.
162054 seconds from start

[1026369.614673] php-fpm7.2[34794]: segfault at 679deb21 ip 00005631c46d76bf sp 00007ffd18d90390 error 4 in php-fpm7.2[5631c4529000+3cb000]

seems is a know problem.. i repeat all config and setup with 5.6 and got same results.. cos i found some old in google searchs..

Offline

#2 2020-12-15 14:29:04

mckaygerhard
Member
Registered: 2017-04-21
Posts: 283  
Website

Re: php ported packages from sury know problem with 5.6 segfault

found this now.. i repeat all with debian not devuan and got this:

[1026950.392088] /usr/sbin/apach[34726]: segfault at 7fbae6f167a0 ip 00007fbae6f167a0 sp 00007ffc24cd7948 error 14 in libexpat.so.1.6.2[7fbae97b0000+27000]

now i understand why when i put "<?php phpinfo(); ?>" got an error.. cos iterates in all modules until the failed one..

the only linked related are libaprutil1 that depends on libexpat1 and apache2 depends on libaprutil1 .. so apache that shit is a shit.. XD that's why is working with lighttpd and not with apache2.. puff i dont know how to solve this cos the problem is on apache2 debian packages..   

seems related: https://github.com/oerdnj/deb.sury.org/issues/1360 but we know sury packages are shit too

in any case i will send the bug mail.. but if you foun some error please hepl me

Last edited by mckaygerhard (2020-12-15 14:30:32)

Offline

#3 2020-12-15 14:53:09

mckaygerhard
Member
Registered: 2017-04-21
Posts: 283  
Website

Re: php ported packages from sury know problem with 5.6 segfault

FOUND THE SOLUTION: as post in https://t.me/s/vegnuli/295 and https://github.com/oerdnj/deb.sury.org/issues/1506 and  comments  i unninstall any php-pecl sury package and it works.. the bug is only in sury package.. cos from debian it works flameless, so in my case remove php5.6-http php7.4-http php7.3-http php7.2-http php-7.1-http php-http* and works.. is a sury package that has the bug not the **php-pecl-http** as it said .. puff only shit those support from sury

so we have a problem with the pecl http package so i dont know if by recompiling will fix that cos i dont know why is happened cos i cannot understan at all the bug reported at  https://github.com/oerdnj/deb.sury.org/ … -668471509 that seems the original problem

the problem is that php pecl http has no support to php 7.X neither 5.6 on lasted release and if you install 3.X release does not have support for php 5.6 so that is the problem

Last edited by mckaygerhard (2020-12-15 16:02:34)

Offline

#4 2021-02-20 14:26:15

mckaygerhard
Member
Registered: 2017-04-21
Posts: 283  
Website

Re: php ported packages from sury know problem with 5.6 segfault

Ibackported and sync with the @tdenetworks php 5.6 packages and now the php5.6-http does not crash anymore in my build..

https://t.me/s/vegnuli/361

i follow all changes in debian salsa git repository, removing stupid or dangerous suspiccious coimmits like the "Don't pass URLs for missing files to PHP-FPM" (reverted later in php 7.3 and 7.4, but not in php 5.6 causing some rare behaviours)

now seems works..

Offline

Board footer