Debian update: recompile phpversions for Phpswitcher

  • Hi,


    Recently I update to Debian 10.


    Phpswitcher on imspc panel shows:

    Couldn't get PHP version through the '/opt/phpswitcher/20180712/php7.0/bin/php-cgi' executable: /opt/phpswitcher/20180712/php7.0/bin/php-cgi: error while loading shared libraries: libonig.so.4: cannot open shared object file: No such file or directory


    When I run:

    root@panel4:~# dpkg -L libonig4

    dpkg-query: package 'libonig4' is not installed

    Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.


    root@panel4:~# ls /usr/lib/x86_64-linux-gnu/libonig*

    /usr/lib/x86_64-linux-gnu/libonig.so /usr/lib/x86_64-linux-gnu/libonig.so.5.0.0

    /usr/lib/x86_64-linux-gnu/libonig.so.5


    But when i tried to run, I received:

    root@panel4:~# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl

    [INFO] Scanning PHP site for the PHP 5.3 sources...

    [INFO] Found PHP 5.3 sources at http://php.net/distributions/php-5.3.29.tar.gz

    [INFO] The PHP 5.3.29 sources are already present in the /usr/local/src/phpswitcher directory. Skipping download.

    [INFO] Extracting the PHP 5.3.29 archive into /usr/local/src/phpswitcher/php-5.3.29 ...

    [INFO] Setup PHP build environment...

    I: Invoking pbuilder

    I: forking: pbuilder create --configfile /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/.pbuilderrc --hookdir /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/hook.d --buildplace /var/cache/pbuilder/psw-debian-stretch.cow --mirror http://deb.debian.org/debian --architecture amd64 --distribution stretch --no-targz --extrapackages 'apt-transport-https apt-utils ca-certificates devscripts eatmydata equivs gnupg2 quilt wget cowdancer'

    I: Running in no-targz mode

    I: Distribution is stretch.

    I: Current time: Sat May 30 23:53:30 CEST 2020

    I: pbuilder-time-stamp: 1590875610

    I: Building the build environment

    I: running debootstrap

    /usr/sbin/debootstrap

    E: /var/cache/pbuilder/psw-aptcache-debian-stretch: No such directory

    I: forking: rm -rf /var/cache/pbuilder/psw-debian-stretch.cow

    [ERROR] main: An error occurred while setup of PHP build environment: W: cgroups are not available on the host, not using them.

    E: debootstrap failed

    E: debootstrap.log not present

    W: Aborting with an error

    E: pbuilder create failed


    Could yo help me?