• 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

plesk 8.1, unbuntu 6.06LTS server and Php5...

One minor note - dist-upgrade is when you're moving entire new versions.

Are you upgrading from an old version of ubuntu to a newer one?

Generally speaking, with apt you want to just use "apt-get update", "apt-get upgrade"

Other than that, I would set up the sources.list to utilize the normal ubuntu repository (it does have php5 in it, right?)

then do an

apt-get install php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-ldap php5-mhash php5-mysql php5-mysqli php5-odbc
php5-recode php5-xmlrpc php5-xsl

The "kept" back usually means something has flagged them as not upgradeable, but you can bypass that by directly calling them with install.

Try that, then if that works, try an update/upgrade.

I haven't used ubuntu much, but I've done this on debian 3.1 and 4 lots of times, trying to find the best upgrade path from Sarge to Etch.
 
yes, dist-upgrade is only for new OS versions. but sometimes it solves a pending upgrade which is held back...

my problem is, that all these php5 packages are already installed from the ubuntu repository. but now, through the forced installation of psa-php5-configurator, apt-get wants to install the swsoft-php5 packages. which are conflicting with the ones installed from ubuntu.

you see, a never ending loop of conflicts starts right now...

Code:
root@test:/# dpkg -l php5*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                     Version                  Description
+++-========================-========================-================================================================
ii  php5                     5.1.2-1ubuntu3.4         server-side, HTML-embedded scripting language (meta-package)
ii  php5-cgi                 5.1.2-1ubuntu3.4         server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                 5.1.2-1ubuntu3.4         command-line interpreter for the php5 scripting language
ii  php5-common              5.1.2-1ubuntu3.4         Common files for packages built from the php5 source
ii  php5-curl                5.1.2-1ubuntu3.4         CURL module for php5
ii  php5-gd                  5.1.2-1ubuntu3.4         GD module for php5
ii  php5-imap                5.1.2-1                  IMAP module for php5
ii  php5-ldap                5.1.2-1ubuntu3.4         LDAP module for php5
ii  php5-mhash               5.1.2-1ubuntu3.4         MHASH module for php5
ii  php5-mysql               5.1.2-1ubuntu3.4         MySQL module for php5
ii  php5-mysqli              5.1.2-1ubuntu3.4         MySQL Improved module for php5
ii  php5-odbc                5.1.2-1ubuntu3.4         ODBC module for php5
ii  php5-recode              5.1.2-1ubuntu3.4         recode module for php5
ii  php5-snmp                5.1.2-1ubuntu3.4         SNMP module for php5
ii  php5-sybase              5.1.2-1ubuntu3.4         Sybase / MS SQL Server module for php5
ii  php5-xmlrpc              5.1.2-1ubuntu3.4         XML-RPC module for php5
ii  php5-xsl                 5.1.2-1ubuntu3.4         XSL module for php5
root@test:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
  php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-ldap php5-mhash php5-mysql php5-mysqli php5-odbc
  php5-recode php5-xmlrpc php5-xsl
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

you can imagine what happens if i start the forced installation of all these packages from the swsoft php repository...


i hope, you see now what i was talking about.

best regards
 
sw-soft shouldn't provide any php5 packages other than the configurator.

The engine they use for the control panel is independent from the web server php.

Are you sure those aren't coming from a different source?


If it's possible to start fresh with a new VPS, you might give that a try. Don't add the plesk source, and just upgrade to php5 prior to the install.

The two primary dependencies that affect the upgrade are the php4 and php5 configurators, and the libapache2-mod-php4/5

Those dependencies are set up as an OR though, so either one will fit as far as swsoft is concerned. But.., apt will try to adjust, so it requires direct dpkg mods.

It's definitely frustrating trying to make it all fit. But I think it is doable.
 
if inserting the following line into /etc/apt/sources.list:

deb http://autoinstall.plesk.com/ubuntu/PSA_8.1.0 dapper all

and doing an apt-get install psa-php5-configurator, first php5-mysql and php5-curl have to be installed. if installing these, many other php5-packages get 'upgraded'. but psa-php5-configurator still stays uninstallable.

and see, what dpkg -l php* says:

Code:
root@test:/# dpkg -l php*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                     Version                  Description
+++-========================-========================-================================================================
ii  php-pear                 5.1.2-1ubuntu3.4         PEAR - PHP Extension and Application Repository
un  php3                     <none>                   (no description available)
un  php4-cgi                 <none>                   (no description available)
ii  php4-cli                 4.4.2-1build1            command-line interpreter for the php4 scripting language
ii  php4-common              4.4.2-1build1            Common files for packages built from the php4 source
ii  php4-curl                4.4.2-1build1            CURL module for php4
ii  php4-domxml              4.4.2-1build1            XMLv2 module for php4
ii  php4-gd                  4.4.2-1build1            GD module for php4
un  php4-gd2                 <none>                   (no description available)
ii  php4-imap                5.1.2-1                  IMAP module for php4
ii  php4-mysql               4.4.2-1build1            MySQL module for php4
un  php4-pear                <none>                   (no description available)
ii  php5                     5.1.2-1ubuntu3.4         server-side, HTML-embedded scripting language (meta-package)
ii  php5-cgi                 5.1.2-5swsoft.1          server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                 5.1.2-5swsoft.1          command-line interpreter for the php5 scripting language
ii  php5-common              5.1.2-5swsoft.1          Common files for packages built from the php5 source
ii  php5-curl                5.1.2-5swsoft.1          CURL module for php5
ii  php5-gd                  5.1.2-5swsoft.1          GD module for php5
ii  php5-imap                5.1.2-1                  IMAP module for php5
ii  php5-ldap                5.1.2-5swsoft.1          LDAP module for php5
ii  php5-mhash               5.1.2-5swsoft.1          MHASH module for php5
ii  php5-mysql               5.1.2-5swsoft.1          MySQL module for php5
ii  php5-mysqli              5.1.2-5swsoft.1          MySQL Improved module for php5
ii  php5-odbc                5.1.2-5swsoft.1          ODBC module for php5
ii  php5-recode              5.1.2-5swsoft.1          recode module for php5
rc  php5-snmp                5.1.2-1ubuntu3.4         SNMP module for php5
rc  php5-sybase              5.1.2-1ubuntu3.4         Sybase / MS SQL Server module for php5
ii  php5-xmlrpc              5.1.2-5swsoft.1          XML-RPC module for php5
ii  php5-xsl                 5.1.2-5swsoft.1          XSL module for php5
un  phpapi-20050606          <none>                   (no description available)
un  phpapi-20051025          <none>                   (no description available)

so it seems very likely that swsoft provides it's own php packages which in turn conflict with the ones from ubuntu as the following command explains:

Code:
root@test:/# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libapache2-mod-php5: Depends: php5-common (= 5.1.2-1ubuntu3.4) but 5.1.2-5swsoft.1 is to be installed
E: Broken packages
 
but, i just got a reply from swsoft support. they activated php5 on one of our test-VPS. you won't believe it, but it looks like this:

I've modified /etc/apt/sources.list files adding ubuntu dapper and plesk repositories then ran:

# apt-get update
# apt-get install psa-php5-configurator

Now plesk will use php5.

Please let me know if you find any other issues.

Thanks,
--
xxx
Technical Support Engineer
SWsoft, Inc.

the sources.list was looking like this:

Code:
## Add comments (##) in front of any line to remove it from being checked.   
## Use the following sources.list at your own risk.  

deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper main restricted universe multiverse
deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates main restricted universe multiverse
deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main restricted universe multiverse
deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main restricted universe multiverse

deb [url]http://autoinstall.plesk.com/ubuntu/PSA_8.1.0[/url] dapper all


i'm speechless.

swsoft is telling me to do something which doesn't work at all.

you won't see the command history, the technician left which explains that he must have done a whole lot more than the three commands mentioned in his mail...

it's ridiculous...

and still, apt-get upgrade says the following:

Code:
root@test:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
  php5-cgi php5-cli php5-common php5-curl php5-gd php5-ldap php5-mhash php5-mysql php5-mysqli php5-odbc php5-recode
  php5-xmlrpc php5-xsl
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.

what interests me really: will the packages mentioned above covered through security upgrades in any way or are they in a frozen state?


regards
 
Wow, clearly swsoft + ubuntu is far more different from swsoft + debian than I thought.

I humbly bow out, and wish you luck. I think i'll go make a donation to debian. <G>
 
ok guys, SWsoft worked hard and now i have a reproducable solution. this is probably only working, when using SWsofts EZ-templates, but it gives at least hints to where the problem is.

first, install a new VPS with the EZ application templates 'devel', 'mysql', 'php' and 'plesk8'. after that, do the following:

Code:
root@test:/# apt-get remove php5-common php-pear php5-cgi php5-ldap php5-mhash php5-odbc php5-recode php5-snmp

# insert ubuntu sources
root@test:/# vi /etc/apt/sources.list
root@test:/# apt-get update
root@test:/# apt-get install php5-common php5-mysql php5-xsl php5-gd php5-imap php5-cli php5-curl

# insert swsoft sources
root@test:/# vi /etc/apt/sources.list
root@test:/# apt-get update
root@test:/# apt-get install psa-php5-configurator

# update php5 link in /etc/apache2/mods-enabled/
root@test:/# ln -s /etc/apache2/mods-available/php5.* /etc/apache2/mods-enabled/

# restart apache2
root@test:/# /etc/init.d/apache2 restart


here is my complete /etc/apt/sources.list file:
Code:
# Ubuntu supported packages
# GPG key: 437D05B5
deb [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper main restricted
deb [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper-updates main restricted
deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main restricted

deb-src [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper main restricted
deb-src [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper-updates main restricted
deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main restricted

# Ubuntu community supported packages
# GPG key: 437D05B5
deb [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper universe multiverse
deb [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper-updates universe multiverse
deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe multiverse

deb-src [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper universe multiverse
deb-src [url]http://ch.archive.ubuntu.com/ubuntu[/url] dapper-updates universe multiverse
deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe multiverse

# SWsoft plesk sources
deb [url]http://autoinstall.plesk.com/ubuntu/PSA_8.1.0[/url] dapper all

just for understanding. this is, what the SWsoft technician said to this issue:

The issue itself is caused by the following:

1) there are php5 packages on autoinstall.plesk.com repository with version 5.1.2-5swsoft.1 and php5 packages on ubuntu repository with lower version 5.1.2-1ubuntu3.4

2) libapache2-mod-php5 depends on php5-common version 5.1.2-1ubuntu3

root@test:~# apt-cache show libapache2-mod-php5|grep Dep|tail -1
Depends: libbz2-1.0, libc6 (>= 2.3.4-1), libcomerr2 (>= 1.33-3), libdb4.3 (>= 4.3.28-1), libgdbm3, libkrb53 (>= 1.4.2), libpcre3 (>= 4.5), libssl0.9.8 (>= 0.9.8a-1), libxml2 (>= 2.6.24), zlib1g (>= 1:1.2.1), mime-support (>= 2.03-1), apache2-mpm-prefork (>> 2.0.52), php5-common (= 5.1.2-1ubuntu3), libmagic1

3) So if you have php5 (5.1.2-5swsoft.1) installed from autoinstall.plesk.com it will not let you install psa-php5-configurator, because it depends on libapache2-mod-php5 which depends on php5-common (5.1.2-1ubuntu3) which could not be installed since newer php5 version is installed.

[...]

For now php5 packages status is 'not upgraded' since ubuntu packages are installed currently. This does not mean that security patches will not be installed for php5.

I reported this problem (with php5 packages from autoinstall.plesk.com) to our developers to consider.


which makes some things clearer.

thank you SWsoft support and let's hope, that the template get better in the future...

regards
 
Back
Top