• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question AlmaLinux php 5.6 support

We do not support EOLed third-party components.

 
Hi
Thanks for getting back to me.
I get its EOL but I can still load it in Plesk on Centos 7 so the latest version of Plesk still allows me to install it but is that still the case if I upgrade the OS to Centos 8 then Almalinux?
 
Hi
Can anyone please tell me if Plesk on AlmaLinux supports php 5.6?
Thanks


If you do what I tell you after the normal plesk install, you can use 5.6 without any problems.



Almalinux 8 PHP 5.6 İnstall

dnf install -y epel-release dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm dnf install php56-php.x86_64 dnf install php56-build.x86_64 dnf install php56-php-gd.x86_64 dnf install php56-php-fpm.x86_64 dnf install php56-php-bcmath.x86_64 dnf install php56-php-gmp.x86_64 dnf install php56-php-geos.x86_64 dnf install php56-php-xmlrpc.x86_64 dnf install php56-php-soap.x86_64 dnf install php56-php-pecl-imagick.x86_64 dnf install php56-php-pecl-imagick-devel.x86_64 dnf install php56-php-pecl-geoip.x86_64 dnf install php56-php-brotli.x86_64 dnf install php56-php-imap.x86_64 dnf install php56-php-interbase.x86_64 dnf install php56-php-intl.x86_64 dnf install php56-php-ioncube-loader.x86_64 dnf install php56-php-ldap.x86_64 dnf install php56-php-libvirt.x86_64 dnf install php56-php-libvirt-doc.noarch dnf install php56-php-lz4.x86_64 dnf install php56-php-magickwand.x86_64 dnf install php56-php-maxminddb.x86_64 dnf install php56-php-mbstring.x86_64 dnf install php56-php-mcrypt.x86_64 dnf install php56-php-mysqlnd.x86_64 dnf install php56-php-odbc.x86_64 dnf install php56-php-opcache.x86_64 dnf install php56-php-pecl-redis4.x86_64 dnf install php56-php-pecl-ip2location.x86_64 dnf install php56-php-pecl-yaml.x86_64 dnf install php56-php-pecl-rar.x86_64 dnf install php56-php-pecl-radius.x86_64 dnf install php56-php-pecl-crypto.x86_64 dnf install php56-scldevel.x86_64 dnf install php56-syspaths.x86_64 dnf install php56-scldevel.x86_64 dnf install php56-php-zstd-devel.x86_64 dnf install php56-php-zephir-parser-devel.x86_64 dnf install php56-php-pecl-dom-varimport-devel.x86_64 /usr/local/psa/bin/php_handler --add -displayname 5.6.40 -path /usr/bin/php56-cgi -phpini /etc/opt/remi/php56/php.ini -clipath /usr/bin/php56 -type fastcgi plesk bin php_handler --reread

Finish reboot.
 
Thank you mahmut. It works fine.

I have old project on PHP 5.3.
Are the same packages (modifying 56 to 53)?
 
I have some customers still using PHP 5.3 :)
I installed REMI's Repo to add 5.3 about 2 years ago.. works well..
 
Like that?

dnf install -y epel-release
dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf install php53-php.x86_64
dnf install php53-build.x86_64
dnf install php53-php-gd.x86_64
dnf install php53-php-fpm.x86_64
dnf install php53-php-bcmath.x86_64
dnf install php53-php-gmp.x86_64
dnf install php53-php-geos.x86_64
dnf install php53-php-xmlrpc.x86_64
dnf install php53-php-soap.x86_64
dnf install php53-php-pecl-imagick.x86_64
dnf install php53-php-pecl-imagick-devel.x86_64
dnf install php53-php-pecl-geoip.x86_64
dnf install php53-php-brotli.x86_64
dnf install php53-php-imap.x86_64
dnf install php53-php-interbase.x86_64
dnf install php53-php-intl.x86_64
dnf install php53-php-ioncube-loader.x86_64
dnf install php53-php-ldap.x86_64
dnf install php53-php-libvirt.x86_64
dnf install php53-php-libvirt-doc.noarch
dnf install php53-php-lz4.x86_64
dnf install php53-php-magickwand.x86_64
dnf install php53-php-maxminddb.x86_64
dnf install php53-php-mbstring.x86_64
dnf install php53-php-mcrypt.x86_64
dnf install php53-php-mysqlnd.x86_64
dnf install php53-php-odbc.x86_64
dnf install php53-php-opcache.x86_64
dnf install php53-php-pecl-redis4.x86_64
dnf install php53-php-pecl-ip2location.x86_64
dnf install php53-php-pecl-yaml.x86_64
dnf install php53-php-pecl-rar.x86_64
dnf install php53-php-pecl-radius.x86_64
dnf install php53-php-pecl-crypto.x86_64
dnf install php53-scldevel.x86_64
dnf install php53-syspaths.x86_64
dnf install php53-scldevel.x86_64
dnf install php53-php-zstd-devel.x86_64
dnf install php53-php-zephir-parser-devel.x86_64
dnf install php53-php-pecl-dom-varimport-devel.x86_64
/usr/local/psa/bin/php_handler --add -displayname 5.3 -path /usr/bin/php53-cgi -phpini /etc/opt/remi/php53/php.ini -clipath /usr/bin/php53 -type fastcgi
plesk bin php_handler --reread
 
Like that?

dnf install -y epel-release
dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf install php53-php.x86_64
dnf install php53-build.x86_64
dnf install php53-php-gd.x86_64
dnf install php53-php-fpm.x86_64
dnf install php53-php-bcmath.x86_64
dnf install php53-php-gmp.x86_64
dnf install php53-php-geos.x86_64
dnf install php53-php-xmlrpc.x86_64
dnf install php53-php-soap.x86_64
dnf install php53-php-pecl-imagick.x86_64
dnf install php53-php-pecl-imagick-devel.x86_64
dnf install php53-php-pecl-geoip.x86_64
dnf install php53-php-brotli.x86_64
dnf install php53-php-imap.x86_64
dnf install php53-php-interbase.x86_64
dnf install php53-php-intl.x86_64
dnf install php53-php-ioncube-loader.x86_64
dnf install php53-php-ldap.x86_64
dnf install php53-php-libvirt.x86_64
dnf install php53-php-libvirt-doc.noarch
dnf install php53-php-lz4.x86_64
dnf install php53-php-magickwand.x86_64
dnf install php53-php-maxminddb.x86_64
dnf install php53-php-mbstring.x86_64
dnf install php53-php-mcrypt.x86_64
dnf install php53-php-mysqlnd.x86_64
dnf install php53-php-odbc.x86_64
dnf install php53-php-opcache.x86_64
dnf install php53-php-pecl-redis4.x86_64
dnf install php53-php-pecl-ip2location.x86_64
dnf install php53-php-pecl-yaml.x86_64
dnf install php53-php-pecl-rar.x86_64
dnf install php53-php-pecl-radius.x86_64
dnf install php53-php-pecl-crypto.x86_64
dnf install php53-scldevel.x86_64
dnf install php53-syspaths.x86_64
dnf install php53-scldevel.x86_64
dnf install php53-php-zstd-devel.x86_64
dnf install php53-php-zephir-parser-devel.x86_64
dnf install php53-php-pecl-dom-varimport-devel.x86_64
/usr/local/psa/bin/php_handler --add -displayname 5.3 -path /usr/bin/php53-cgi -phpini /etc/opt/remi/php53/php.ini -clipath /usr/bin/php53 -type fastcgi
plesk bin php_handler --reread
Yes, that looks correct.. It's been a while :)
 
First command:
#dnf install php53-php.x86_64
No match for argument: php53-php.x86_64
Error: Unable to find a match: php53-php.x86_64

:(
 
Sorry - spoke too soon; PHP 5.3 has been removed from Remi as well. But I had it on my old server, so I just copied the whole /opt/plesk/php/5.3/ directory to the new server.. Had to create 5-6 symbolic links because of the versions of the libraries.
but it works great.. I also added it as a PHP handler to plesk.. If you have a RedHat compatible system, I could put the php 5.3 directory somewhere for you..
 
I was able to get REMI's Repo working a few years ago and it still works. However, you will have to do lots of linking "ln -s" of the SSL libraries -- the PHP 5.x needs some old SSL libraries, for example, making this up: it might say it needs libssl.so.5 but you have libssl.so.11, so you do: ln -s libssl.so.11 libssl.so.5
 
I try to compile php5.6 with chat gpt help , its full of errors. I quit. its mostly related to ssl. I need smooth auto install.
Remi do not work. Chat gpt gave me that first. Remi dont support 5.6

So i need manual install. My host said his php 5.6 came with plesk

Issue is we moved to new server by our host but imgttftext do not print text anymore. when i change or mistype font file name it give me font file name not found. That mean it reads ttf font and also gd library installed freetype version 2 enabled.

So i am out of ideas.

I installed laragon and php 5.6 in my local pc and same code works fine. I am googling for hours to find anyone had same problem. no luck
 
==========sample =======code ======to test imgtfttext===================

// Check if the font file exists and is accessible
if (!file_exists($font_path)) {
die('Error: Font file not found');
exit();
}
// Check if we have write permission to the directory
if (!is_readable($font_path)) {
die('Error: Font file is not readable');
exit();
}
header('Content-Type: image/jpeg');

$text = 'Testing...';
imagestring($im, 10, 10, 10, $text, $text_color); // shows up
imagettftext($im, 10, 0, 100, 100, $red, $font_path,' TTTT '); //do not show and silent
imagejpeg($im);
imagedestroy($im);

====================================================
 
We do not support EOLed third-party components.

My host says his php 5.6 comes with PLESK version. i have plesk obsidian running. I need that what my host uses. I need to install it in alma linux 8
Liquid web offers 2 year hosting but try to rip me off on php 5.6 so i thought i go unmanaged and install plesk in liquid web.

or atleast they wont need to manage php part if i make it work. Current site still running in php 5.6 and i am rewriting in Nodejs and it will take 6 month.

So i need help.
 
I see nothing in your code that should work only in PHP 5.6.

Did you check if the GD library is on the new server?
Code:
php -r "echo extension_loaded('gd') ? 'GD is installed and active' : 'GD is not installed or not active';"
 
ya i got the license for one month reloaded old plesk and ran phpinfo.php and found old server version of gd is 2.33 and new one is 2.1
My test image.php show text in old server
======================
<?php

ob_clean();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
ini_set('display_errors', 1);
try{
$gd_info = gd_info();
if (extension_loaded('gd') && function_exists('gd_info')) {
// echo "It looks like GD is installed";
// exit();
}
// echo "GD Info: <pre>" . print_r($gd_info, true) . "</pre>";
if (function_exists('gd_info')) {
//echo "GD library is enabled.<br>";
} else {
echo "GD library is not enabled.<br>";
exit();
}
if (isset($gd_info['FreeType Support']) && $gd_info['FreeType Support']) {
//echo "FreeType support is enabled.<br>";
} else {
echo "FreeType support is not enabled.<br>";
exit();
}
$basedir=__DIR__."/resources/certifcateresources/";
$im =imagecreatetruecolor(400, 200);
$bg = imagecolorallocate($im, 255, 255, 0); // White background
$text_color = imagecolorallocate($im, 0, 0, 0); // Black text
$white =imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 0xFF, 0x00, 0x00);
$black = imagecolorallocate($im, 0x00, 0x00, 0x00);
//imagefilledrectangle($im, 0, 0, 400, 200, $bg);
imagefilledrectangle($im, 0, 0, 399, 200, $white);
$font_path = './arial.ttf';
$font_path = __DIR__.'./calibrib.ttf';
// Check if the font file exists and is accessible
if (!file_exists($font_path)) {
// die('Error: Font file not found');
// exit();
}
// Check if we have write permission to the directory
if (!is_readable($font_path)) {
// die('Error: Font file is not readable');
// exit();
}
$text = 'Testing...';
//imagestring($im, 10, 10, 10, $text, $text_color);
imagettftext($im, 20 , 0, 50, 60, $red, $font_path, " @@@@@ ");

//p($bbox);
//exit();
header('Content-Type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
}
catch(Exception $e)
{
echo $e;
exit();
}
?>
================================
 
Back
Top