• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved PHP Version OS corrupted

grazer75

New Pleskian
Hi,
as we needed a php Version 5.3.29 we tried to install it
sudo -i
wget http://in1.php.net/distributions/php-5.3.29.tar.bz2
tar -xvf php-5.3.29.tar.bz2
cd php-5.3.29
./configure
make
make install
ended in a problem

root@hopeful-kalam:/usr/local/lib# php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
and
root@hopeful-kalam:/usr/local/lib# php -v
PHP 7.4.3 (cli) (built: Mar 9 2022 23:27:31) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
in the original it was
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
and

Configuration File (php.ini) Path: /etc/php/7.4/cli
Loaded Configuration File: /etc/php/7.4/cli/php.ini
Scan for additional .ini files in: /etc/php/7.4/cli/conf.d
Additional .ini files parsed: /etc/php/7.4/cli/conf.d/00-ioncube-loader-7.4.ini,
/etc/php/7.4/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.4/cli/conf.d/10-opcache.ini,
/etc/php/7.4/cli/conf.d/10-pdo.ini,
/etc/php/7.4/cli/conf.d/15-xml.ini,
/etc/php/7.4/cli/conf.d/20-calendar.ini,
/etc/php/7.4/cli/conf.d/20-ctype.ini,
/etc/php/7.4/cli/conf.d/20-curl.ini,
/etc/php/7.4/cli/conf.d/20-dom.ini,
/etc/php/7.4/cli/conf.d/20-exif.ini,
/etc/php/7.4/cli/conf.d/20-ffi.ini,
/etc/php/7.4/cli/conf.d/20-fileinfo.ini,
/etc/php/7.4/cli/conf.d/20-ftp.ini,
/etc/php/7.4/cli/conf.d/20-gd.ini,
/etc/php/7.4/cli/conf.d/20-gettext.ini,
/etc/php/7.4/cli/conf.d/20-iconv.ini,
/etc/php/7.4/cli/conf.d/20-imap.ini,
/etc/php/7.4/cli/conf.d/20-json.ini,
/etc/php/7.4/cli/conf.d/20-mbstring.ini,
/etc/php/7.4/cli/conf.d/20-mysqli.ini,
/etc/php/7.4/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.4/cli/conf.d/20-pdo_sqlite.ini,
/etc/php/7.4/cli/conf.d/20-phar.ini,
/etc/php/7.4/cli/conf.d/20-posix.ini,
/etc/php/7.4/cli/conf.d/20-readline.ini,
/etc/php/7.4/cli/conf.d/20-shmop.ini,
/etc/php/7.4/cli/conf.d/20-simplexml.ini,
/etc/php/7.4/cli/conf.d/20-sockets.ini,
/etc/php/7.4/cli/conf.d/20-sqlite3.ini,
/etc/php/7.4/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.4/cli/conf.d/20-sysvsem.ini,
/etc/php/7.4/cli/conf.d/20-sysvshm.ini,
/etc/php/7.4/cli/conf.d/20-tokenizer.ini,
/etc/php/7.4/cli/conf.d/20-xmlreader.ini,
/etc/php/7.4/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.4/cli/conf.d/20-xsl.ini,
/etc/php/7.4/cli/conf.d/20-zip.ini
so i tried to restore it by doing the same 7.4

and got at least this with php -v
root@hopeful-kalam:/usr/local/lib# php -v
PHP 7.4.3 (cli) (built: Mar 9 2022 23:27:31) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
but php --ini was still wrong set :/
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)

Also
ionCube PHP Loader + ionCube24 v10.4.5
Zend OPcache v7.4.3
missing.

I tried

plesk repair installation and plesk repair web didn`t help
So how can i repair this without a new installation or loosing customer/websites created?
For now it seems Monitoring grafana is affected and also tools&settings system updates

showing following error

Fehler: Paketliste konnte nicht abgerufen werden: 2022-03-10 00:53:33 INFO: pum is called with arguments: ['--list', '--repo-info', '--json'] 2022-03-10 00:53:34 ERROR: W:Target Packages (all/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/plesk-ext-panel-migrator.list:1 and /etc/apt/sources.list.d/plesk-ext-site-import.list:1, W:Target Packages (all/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/plesk-ext-panel-migrator.list:1 and /etc/apt/sources.list.d/plesk-ext-site-import.list:1, W:Target Translations (all/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/plesk-ext-panel-migrator.list:1 and /etc/apt/sources.list.d/plesk-ext-site-import.list:1, W:Target CNF (all/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/plesk-ext-panel-migrator.list:1 and /etc/apt/sources.list.d/plesk-ext-site-import.list:1, W:Target CNF (all/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/plesk-ext-panel-migrator.list:1 and /etc/apt/sources.list.d/plesk-ext-site-import.list:1, E:The repository 'Dotdeb – The extra repository for Debian servers stable Release' does not have a Release file. 2022-03-10 00:53:34 ERROR: Exited with returncode 1.
Any help solving this :)
 
Hi,
Try the following:
- run plesk installer
Bash:
plesk installer
- in command interface select Web hosting, then PHP interpreter versions on the next page
- there is PHP from OS vendor option, if this is checked as installed : uncheck it to follow uninstallation procedure
- after that run installer again and install PHP from OS vendor back
If the issue still remains, let me know OS and Plesk version
 
:)
Hi,
Try the following:
- run plesk installer
Bash:
plesk installer
- in command interface select Web hosting, then PHP interpreter versions on the next page
- there is PHP from OS vendor option, if this is checked as installed : uncheck it to follow uninstallation procedure
- after that run installer again and install PHP from OS vendor back
If the issue still remains, let me know OS and Plesk version
Thanks we will try, is this affecting any website, client Data?
Will this restore
php --ini and php -v to defaults before the change? :)
 
Back
Top