• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP4 to PHP5. 2 additional questions.

L

lanschue

Guest
Hi,

i'm planning to update our plesk 8.6.0 server (on Debian etch) from php4 to php5, and found most needed information in http://kb.odin.com/en/1762.

But still 2 questions keep me from upgrading, because there are many websites of customers on this server and I have to avoid downtimes at all costs:

1) When trying to simulate the upgrade with
apt-get -s install psa-php5-configurator libapache2-mod-php5

It tries to deinstall the packages "ppwse" and "php4-ioncube-loader", so as i don't want to loose any packages (although I don't really know, if i need above 2 packages) I would try to update with
apt-get -s install psa-php5-configurator libapache2-mod-php5 php5-ioncube-loader ppwse

But still this leaves me with many broken packages (according to "man apt-get"), as you see in the output:
(Sorry for the german output, but should be readable anyway)

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
ppwse ist schon die neueste Version.
Die folgenden zusätzlichen Pakete werden installiert:
php4-cli php4-common php4-curl php4-domxml php4-gd php4-imap php4-mysql php5 php5-cli php5-common php5-curl php5-gd php5-imap php5-mysql
php5-xsl
Vorgeschlagene Pakete:
php-pear
Die folgenden Pakete werden ENTFERNT:
libapache2-mod-php4 php4 php4-ioncube-loader psa-php4-configurator
Die folgenden NEUEN Pakete werden installiert:
libapache2-mod-php5 php5 php5-cli php5-common php5-curl php5-gd php5-imap php5-ioncube-loader php5-mysql php5-xsl psa-php5-configurator
Die folgenden Pakete werden aktualisiert:
php4-cli php4-common php4-curl php4-domxml php4-gd php4-imap php4-mysql
7 aktualisiert, 11 neu installiert, 4 zu entfernen und 57 nicht aktualisiert.
Remv php4-ioncube-loader [3.2-dbn40.build07072610] [ppwse ]
Remv php4 [6:4.4.4-8+etch4] [ppwse ]
Remv psa-php4-configurator [1.4.0-debian4.0.build86080722.01] [psa ppwse ]
Remv libapache2-mod-php4 [6:4.4.4-8+etch4] [psa ppwse ]
Inst php5-common (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst libapache2-mod-php5 (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-cli (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-mysql (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-gd (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-imap (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-curl (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst php5-xsl (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Conf php5-common (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Conf libapache2-mod-php5 (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [psa ppwse ]
Inst psa-php5-configurator (1.4.0-debian4.0.build86080722.01 autoinstall.plesk.com) [ppwse ]
Inst php4-curl [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-mysql [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-imap [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-domxml [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-gd [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-cli [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php4-common [6:4.4.4-8+etch4] (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php5 (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable) [ppwse ]
Inst php5-ioncube-loader (3.2-dbn40.build07072610 autoinstall.plesk.com)
Conf php5-cli (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-mysql (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-gd (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-imap (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-curl (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-xsl (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf psa-php5-configurator (1.4.0-debian4.0.build86080722.01 autoinstall.plesk.com)
Conf php4-common (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-cli (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-curl (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-mysql (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-imap (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-domxml (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php4-gd (6:4.4.4-8+etch6 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5 (5.2.0-8+etch11 Debian:4.0r4a/stable, Debian-Security:4.0/stable)
Conf php5-ioncube-loader (3.2-dbn40.build07072610 autoinstall.plesk.com)

The broken packages in square brackets are "psa" and "ppwse".
So are only mentioned, because there will be unresolved dependencies during the installation-process but after installation everything will be ok, or will the installation really result in brocken packages?

2) If some of our customers rely on php4, is it possible to switch back to php4?

I think a
apt-get install psa-php4-configurator libapache2-mod-php4 php4-ioncube-loader ppwse
should do it. But just to get sure, i wanted to ask, if anyone has ever tried this.

Would be nice, if anyone could help me on this two questions, before i have to try it. (The server is not even in our city and downtime would be very very bad.)

Thanks in advance.
 
Hello lanschue, I'm in the same situation. Did you do the upgrade anyway? How does it result?

Regards,
 
solution

doing this got me closer, but still errors.

i did the thing where upgrade to php5 and uninstalls all this plesk stuff. really annoying. right now i've moved beyond the 'Problems found: could not find pleskctl' to plesk more nicely telling me that 'The Plesk Control Panel service is switched off' which might just mean that it's installed.

wolvntv:/# apt-get install ppwse
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libpam-plesk php5-ioncube-loader psa psa-api
The following NEW packages will be installed:
libpam-plesk php5-ioncube-loader ppwse psa psa-api
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.0MB of archives.
After unpacking 88.5MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
psa-api psa libpam-plesk php5-ioncube-loader ppwse
Install these packages without verification [y/N]? Y^Hy
Get:1 http://autoinstall.plesk.com etch/all psa-api 8.6.0-debian4.0.build86081001.10 [1451kB]
Get:2 http://autoinstall.plesk.com etch/all psa 8.6.0-debian4.0.build86080722.01 [25.9MB]
Get:3 http://autoinstall.plesk.com etch/all libpam-plesk 8.6.0-debian4.0.build86080722.01 [72.9kB]
Get:4 http://autoinstall.plesk.com etch/all php5-ioncube-loader 3.2-dbn40.build07072610 [280kB]
Get:5 http://autoinstall.plesk.com etch/all ppwse 1.1-debian4.0.build86080722.01 [5309kB]
Fetched 33.0MB in 3s (10.6MB/s)
Selecting previously deselected package psa-api.
(Reading database ... 44683 files and directories currently installed.)
Unpacking psa-api (from .../psa-api_8.6.0-debian4.0.build86081001.10_i386.deb) ...
Selecting previously deselected package psa.
Unpacking psa (from .../psa_8.6.0-debian4.0.build86080722.01_i386.deb) ...


===> Checking for the necessary system accounts
Checking for the system groups and users necessary for MySQL...
Checking for the group 'mysql'...
Group 'mysql' already exists

Checking for the user 'mysql'...
User 'mysql' already exists

Checking for the system groups and users necessary for admin server...
Checking for the group 'psaadm'...
Group 'psaadm' already exists

Checking for the user 'psaadm'...
User 'psaadm' already exists

Checking for the group 'psaserv'...
Group 'psaserv' already exists

Checking for the group 'psaserv'...
Trying to add supplementary group 'psaserv' for user 'www-data'... already there
Checking for the group 'psaserv'...
Trying to add supplementary group 'psaserv' for user 'psaftp'... already there
Checking for the group 'psaserv'...
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Checking for the group 'psacln'...
Group 'psacln' already exists

Checking for the system groups and users necessary for Apache...
Checking for the group 'www-data'...
Group 'www-data' already exists

Checking for the user 'www-data'...
User 'www-data' already exists

Checking that /opt/psa/bin/chrootsh registered as login shell...

Selecting previously deselected package libpam-plesk.
Unpacking libpam-plesk (from .../libpam-plesk_8.6.0-debian4.0.build86080722.01_i386.deb) ...
Selecting previously deselected package php5-ioncube-loader.
Unpacking php5-ioncube-loader (from .../php5-ioncube-loader_3.2-dbn40.build07072610_i386.deb) ...
Selecting previously deselected package ppwse.
Unpacking ppwse (from .../ppwse_1.1-debian4.0.build86080722.01_all.deb) ...
Setting up php5-ioncube-loader (3.2-dbn40.build07072610) ...

Setting up psa-api (8.6.0-debian4.0.build86081001.10) ...
Setting up psa (8.6.0-debian4.0.build86080722.01) ...
Setting the default locale
The default locale is set to en-US (ENGLISH, UNITED STATES)
Setting the services information on VZ mode.

Unable to upgrade. You have 8.6.0 version installed,
but upgrader is incompatible with this version.
To install new Plesk copy, please move '/opt/psa'
to another place manually.
dpkg: error processing psa (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ppwse:
ppwse depends on psa; however:
Package psa is not configured yet.
dpkg: error processing ppwse (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-plesk:
libpam-plesk depends on psa-8.6.0; however:
Package psa-8.6.0 is not installed.
Package psa which provides psa-8.6.0 is not configured yet.
dpkg: error processing libpam-plesk (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
psa
ppwse
libpam-plesk
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Back
Top