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
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.
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?
Unless you must compile the PHP yourself, there is an easier way: Install from apt packages an already working PHP, and multiple versions at that. https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/ Read also the comments, especially by Jesse Norell.
Whatever PHP version I am installing, gives me the error. Here are some results according to what I did! Code: root@ns1:/# 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) root@ns1:/#
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.
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: root@ns1:/# 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 root@ns1:/#
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
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.
It looks everything fine with libxml2 Code: root@ns1:/# 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
I fed up with this issue. I think the problem is somewhere else I tried to install libxml2 and it says I did successfully. Code: root@ns1:/# 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: root@ns1:/# 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)
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.