– Plesk can be upgraded upto version 9.5.4 either from Plesk control
Panel or by using the following script :
# /usr/local/psa/admin/bin/autoinstaller
– Till this version, its pretty straightforward.
– But when trying to upgrade to a version higher with a PHP
version < 5.3, you will face issues.
— We are now trying to Upgrade Plesk using the stock CentOS repo’s and do not depend on any 3rd Party repo’s including the trusted atomic.
— From the version 9.5.4, do an installation again, selecting the
same version number (9.5.4)
# /usr/local/psa/admin/bin/autoinstaller
# After selecting the version from the installation menu, you will find
such a screen in the next page :
==========================
Please select the components of Parallels Plesk Panel you want to install:
Different PHP interpreter versions
14. (*) PHP5 support
15. ( ) PHP5.3 support
==========================
— From this select ’15. ( ) PHP5.3 support’ and proceed with the installation.
— At the end of this installation, you will get Plesk 9.5.4 with PHP
5.3 support, which means you will have the PHP required to upgrade
to the next level, without any further repo’s.
— Although this is the case, when you try to check the PHP version,
you will get something like this :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/
modules/sqlite.so' - /usr/lib64/php/modules /sqlite.so: cannot open shared
object file: No such file or directory in Unknown on line 0
— Ignore this error for the moment.
— Upgrade Plesk to 11.5 using the auto-installer.
— There should not be errors ( in usual cases), other than the license
error which can be ignored.
— Once Upgrade is completed, we will have to fix the issue with sqlite.so.
— # yum list php*sqlite*
— This is actually a bug in Plesk that this module comes with the
32-bit arch, even if the CentOS arch is 64-bit and all other modules
are installed as 64 bit.
— To get around this, remove the rpm ‘php53-sqlite2’ and install
a 64-bit arch one from RHEL/CentOS.
— Remove it using the command,
# rpm -e --nodeps php53-sqlite2
( Dont remove using YUM or
without ‘–nodeps’ option )
— Download and install the 64bit arch package
# wget http://plesk-autoinstall.mirror.serverloft.eu/PSA_10.1.1/
dist-rpm-RedHat-el5-x86_64/opt/php53/php53-sqlite2-5.3.2-11011812.x86_64.rpm
— Run the following command to install the Package :
# rpm -i php53-sqlite2-5.3.2-11011812.x86_64.rpm
— Check php -v
and ensure things are fine.