• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question PHP 5.2 on Almalinux 8 (moving from CentOS 7)

Groo

New Pleskian
Server operating system version
Almalinux 8.9
Plesk version and microupdate number
18.0.56 #4
Hi all,

CentOS7 still came with Plesk supporting PHP 5.2 - I have one ancient site I'm still supporting that requires it to run.

I did finally get PHP 5.2.17 to work in Almalinux 8.9/Plesk but it was a lot of work! I had to use an earlier version of OpenSSL (1.0.2k), backports, libxml2-2.9 patch, fiddling with PCRE, and some other fun stuff.

I'm wondering if anyone else has done it and/or found a proper tutorial.

Thx
 
Hi @Groo !
On the Plesk side, we don't have any special guides on that since it's not the desired scenario (i.e. it's considered a customization and security risk). I understand that it's needed to maintain an old website, however, the main intention to move to a newer OS is to use newer technologies, like OpenSSL (1.1.1 in the case of Alma8) and PHP versions. So since Plesk uses OpenSSL from the OS repo, it's indeed required to install old OpenSSL first, and then add the required PHP. For adding a custom PHP, I'd recommend checking this article: https://support.plesk.com/hc/en-us/articles/12377508651415 (pls keep in mind, that the article assumes that your "custom" PHP is compatible with the OS vendor OpenSSL)
 
Hi,

I've used this project for a few ancient websites that needed an old PHP version:

It's mainly a solution for sites that still use the older MySQL functions in PHP. This library maps the mysql functions to the newer mysqli functions.
 
It's mainly a solution for sites that still use the older MySQL functions in PHP. This library maps the mysql functions to the newer mysqli functions.

Thanks this may come in handy!

I also looked into phpbrew but for 5.2 specifically that was even more of a headache to get working so I abandoned it.
 
Back
Top