PHP Upgrade In ISPConfig got Problem

Discussion in 'General' started by asgare, Jan 2, 2019.

  1. asgare

    asgare Member

    Hello everyone

    According HOWTOFORGE php upgrade document at below URL I got problem in
    Code:
    make
    
    make install
    section.
    https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
    here are the results of used commands:
    please recommend me a solution :)
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you remember to do the long
    Code:
    ./configure ...
    command?
     
  3. asgare

    asgare Member

    yes, I did it but after the long command " make & make install " didn't work.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    run 'make clean' and then run the configure again. the configure command must end without an error.
     
  5. asgare

    asgare Member

    Hi till
    thanks for taking part in this thread
    I did as you said but again got an error
     
  6. asgare

    asgare Member

    Is it possible that make command is not working in my Debian server?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    No. You probably run the command in the wrong directory. you have to run it while being in the directory where you had run the configure command.
     
  8. asgare

    asgare Member

    Ok.
    Here is the proof of that:
     

    Attached Files:

  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Looks like there is no Makefile. I suspect the ./configure ... did not complete, and gave you error messages why it fails.
    So, what happens when you do that long ./configure command?
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  11. asgare

    asgare Member

    I posted the results on the above post.
     
  12. asgare

    asgare Member

    Whatever PHP version I am installing, gives me the error. Here are some results according to what I did!

    Code:
    [email protected]:/# apt-get install php7.3
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      libapache2-mod-php7.3 libargon2-1 libpcre2-8-0 libsodium23 php7.3-cli php7.3-common php7.3-json
      php7.3-opcache php7.3-readline
    The following NEW packages will be installed:
      libapache2-mod-php7.3 libargon2-1 libpcre2-8-0 libsodium23 php7.3 php7.3-cli php7.3-common
      php7.3-json php7.3-opcache php7.3-readline
    0 upgraded, 10 newly installed, 0 to remove and 194 not upgraded.
    Need to get 0 B/3,849 kB of archives.
    After this operation, 17.7 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    dpkg: unrecoverable fatal error, aborting:
     unknown group 'x2gouser' in statoverride file
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    [email protected]:/#
    
     
  13. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If the results of
    Code:
    ./configure ....
    are posted I can can not see it.
    Are you doing these in chroot?
    Seems there is no info on system. What kind of host and operating system is this?
    Does
    Code:
    dpkg-statoverride --list
    show anything about x2gouser.
     
  14. asgare

    asgare Member

    I am using a Debian server and logged in as the root user. I attached the result of configure command in this thread again.

    Code:
    [email protected]:/# dpkg-statoverride --list
    amavis amavis 770 /var/lib/amavis/tmp
    amavis amavis 750 /var/lib/amavis
    root postdrop 2555 /usr/sbin/postqueue
    postfix postdrop 2710 /var/spool/postfix/public
    root Debian-exim 640 /etc/exim4/passwd.client
    root mlocate 2755 /usr/bin/mlocate
    root root 1733 /var/lib/php/sessions
    root ssl-cert 710 /etc/ssl/private
    root root 440 /etc/sudoers.d/x2goserver
    amavis amavis 750 /var/lib/amavis/virusmails
    amavis amavis 750 /var/lib/amavis/db
    amavis amavis 755 /var/run/amavis
    root x2gouser 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
    root messagebus 4754 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
    root postdrop 2555 /usr/sbin/postdrop
    [email protected]:/#
    
     

    Attached Files:

  15. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Fix the error at the end of the configure-run
     
  16. asgare

    asgare Member

    Thanks for your kind reply.
    could you please say what do you mean exactly
    I run this command according to what the tutorial say
    Code:
    ./configure --prefix=/opt/php-7.1 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-pdo-mysql --with-mysqli --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
     
  17. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    On post #14 you posted output of ./configure, that shows in the end the error message
    So there is someting wrong with libxml2. Maybe it is not installed? Check with
    Code:
    apt-cache policy libxml2
    Install it if not yet installed. If it is already installed, maybe it need configuration?
    When that is fixed, run the .configure ... again. And read the error messages it writes in the end.
    Fix the errors and run .configure until no errors appear. Then you should have the Makefile and can run make and make install.
    I told you this already three days ago in post #9.
     
  18. asgare

    asgare Member

    It looks everything fine with libxml2

    Code:
    [email protected]:/# apt-cache policy libxml2
    libxml2:
      Installed: 2.9.4+dfsg1-2.2+deb9u2
      Candidate: 2.9.4+dfsg1-2.2+deb9u2
      Version table:
     *** 2.9.4+dfsg1-2.2+deb9u2 500
            500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
            500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
            100 /var/lib/dpkg/status
    
     
  19. asgare

    asgare Member

    I fed up with this issue. I think the problem is somewhere else :mad::mad::mad:

    I tried to install libxml2 and it says I did successfully.
    Code:
    [email protected]:/# apt-get install libxml2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libxml2 is already the newest version (2.9.4+dfsg1-2.2+deb9u2).
    0 upgraded, 0 newly installed, 0 to remove and 194 not upgraded.
    
    Whatever I try to install I got the same error.
    Code:
    [email protected]:/# apt-get install libxml2-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      icu-devtools libicu-dev
    Suggested packages:
      icu-doc
    The following NEW packages will be installed:
      icu-devtools libicu-dev libxml2-dev
    0 upgraded, 3 newly installed, 0 to remove and 194 not upgraded.
    Need to get 0 B/17.5 MB of archives.
    After this operation, 96.7 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    dpkg: unrecoverable fatal error, aborting:
     unknown group 'x2gouser' in statoverride file
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    

    this error comes for whatever I wanna to install
    Code:
    dpkg: unrecoverable fatal error, aborting:
     unknown group 'x2gouser' in statoverride file
    E: Sub-process /usr/bin/dpkg returned an error code (2)
     
  20. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    From post #14 I read
    which makes me deduce it is some x2go package causing problems. The apt-get system is now broken on your host. Since I do not know what Debian version you are running I can't be bothered to search more.
    Try to find what it is yourself:
    Code:
    dpkg --list | grep -i x2go
    Code:
    dpkg --search /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
    If you have installed it from somewhere else and not with apt-get, I don't know how to proceed.
    Anyway, once you figure out which package it is, do apt-get purge <packagename> or dpkg--reconfigure -plow <package-name> to either get it removed with it's configuration or force reconfigure which should sort out the unknown group from statoverride.
     

Share This Page