• 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

Upgrade php5 without removing psa (debian sarge)

R

Ronaldve

Guest
I would like to upgrade php5 but somehow I can't and have te remove psa together with php5 in order to be able to install a newer version of php5.

When I do 'apt-get upgrade' I get this response:
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
libapache2-mod-php5 libming-dev php-pear php5-cli php5-common php5-curl
php5-gd php5-imap php5-mysql php5-pgsql php5-snmp php5-suhosin php5-tidy
php5-xmlrpc php5-xsl
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.


Then I did a 'apt-get -s dist-upgrade' I get this response:
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be REMOVED:
libapache2-mod-php5 libpam-plesk miva-ssl-stub php-pear php5-cli php5-curl
php5-gd php5-imap php5-mysql php5-pgsql php5-snmp php5-tidy php5-xmlrpc
php5-xsl psa psa-api psa-api-rpc psa-awstats-configurator psa-backup-manager
psa-firewall psa-horde psa-imp psa-ingo psa-kronolith
psa-manual-custom-skin-guide psa-migration-manager psa-mimp psa-miva
psa-mnemo psa-passwd psa-php5-configurator psa-qmail-rblsmtpd
psa-rubyrails-configurator psa-turba psa-updates psa-watchdog
The following packages have been kept back:
libming-dev
The following packages will be upgraded:
php5-common php5-suhosin
2 upgraded, 0 newly installed, 36 to remove and 1 not upgraded.



So how do I get php5 upgraded without having to remove all the psa packages?
 
i haven't installed php5 on sarge with plesk yet, what i did is edit the sources.list to debian etch, do a dist-upgrade, and then install php5 with the psa-php5-configurator package afterwards
 
Ok, i've edited sources.list so everything points to etch.
When I do a 'apt-get -s dist-upgrade' (simulation)
I get a huge list of files that get installed and removed. But it still wants to remove the psa packages :(
 
do you like to update only php or update to etch - that's 2 different things ....

i have done both many times with no problems.
 
The intention was to upgrade only php. But a upgrade to etch is an option.

If I upgrade to etch using dist-upgrade and thus removing the psa packages, do I have to completely reinstall all plesk stuff, like the licence key, the websites, everything?

I just want to upgrade php5 to a newer version with leaving the plesk install intact.
 
that's no problem, you don't need do reinstall something

ok, now step by step ...

first show us your source.list ....



if you like contact me pm for icq/msn/google talk
 
My current sources.list file contains this:

---
#deb file:///cdrom/ sarge main

deb http://ftp.surfnet.nl/os/Linux/distr/debian/ sarge main non-free contrib
deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ sarge main

deb http://security.debian.org/ sarge/updates main

deb http://download.concepts.nl/dotdeb stable all
deb-src http://download.concepts.nl/dotdeb stable all

#deb http://ftp.surfnet.nl/os/Linux/distr/debian/ testing main non-free contrib
#deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ testing main

#deb http://ftp.surfnet.nl/os/Linux/distr/debian/ unstable main non-free contrib
#deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ unstable main

deb http://www.backports.org/debian/ sarge-backports main contrib non-free

## This is temporary appended by Autoinstaller from SWsoft for
## specify source of product's packages for APT.
deb http://autoinstall.plesk.com/debian/PSA_8.2.1 sarge all
---

when I change all sarge strings to etch and do a 'apt-get -s dist-upgrade' it won't remove, but upgrade psa.
On the end it gives this error:
E: Couldn't configure pre-depend psa-8.2.1 for psa-api-rpc, probably a dependency cycle.

This is my new sources.list:
---
#deb file:///cdrom/ etch main

deb http://ftp.surfnet.nl/os/Linux/distr/debian/ etch main non-free contrib
deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ etch main

deb http://security.debian.org/ etch/updates main

deb http://download.concepts.nl/dotdeb stable all
deb-src http://download.concepts.nl/dotdeb stable all

#deb http://ftp.surfnet.nl/os/Linux/distr/debian/ testing main non-free contrib
#deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ testing main

#deb http://ftp.surfnet.nl/os/Linux/distr/debian/ unstable main non-free contrib
#deb-src http://ftp.surfnet.nl/os/Linux/distr/debian/ unstable main

deb http://www.backports.org/debian/ etch-backports main contrib non-free

## This is temporary appended by Autoinstaller from SWsoft for
## specify source of product's packages for APT.
deb http://autoinstall.plesk.com/debian/PSA_8.2.1 etch all
---
 
you have installed sarge with all updates before change to etch ?

please change the dotdeb lines to sarge/etch not stable ...
 
With that I was able to upgrade php on sarge without having to remove psa.

Do you know if there's a php-mssql package somewhere?
For a project i have to be able to use mssql with php.
 
Seems I need to use php5-sybase :)

Also noticed php 5.2.5 stalls horde webmail, but that can be fixed with this.

edit: some mssql functions like 'mssql_min_error_severity()' do not seem to work. They throw a 'Call to undefined function' error.
But Basic functions like connecting to the database and execute querys work fine.
(CakePHP utlilizes some functions that do not work)
 
Originally posted by Ronaldve
I would like to upgrade php5 but somehow I can't and have te remove psa together with php5 in order to be able to install a newer version of php5.
So how do I get php5 upgraded without having to remove all the psa packages?

you should install psa-php5-configurator as well as explained in knowledge base article:
http://kb.swsoft.com/en/1762
 
Back
Top