• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 pthread PHP 5.4 - plesk

talnaim2323

New Pleskian
Hi all , i need enable "pthread" on php , im use plesk and php 5.4
i didnt find that so i think its not installing , my question how do it ? and if its possible do it with php 5.4 ?
 
It’s a really bad idea to still use the ancient and EOLed PHP5.4 version.

But you could try to compile pthreads PHP module with following steps (I do not have servers with such an ancient PHP version to write exactly the working way, so I give you only general steps that you can adapt yourself):

# yum install make gcc plesk-php54-devel
# /opt/plesk/php/5.4/bin/pecl install pthreads
# echo "extension=threads.so" > /opt/plesk/php/5.4/etc/php.d/threads.ini
# plesk bin php_handler --reread

Check that module is loaded:

# /opt/plesk/php/5.4/bin/php -m | grep threads
 
It’s a really bad idea to still use the ancient and EOLed PHP5.4 version.

But you could try to compile pthreads PHP module with following steps (I do not have servers with such an ancient PHP version to write exactly the working way, so I give you only general steps that you can adapt yourself):

# yum install make gcc plesk-php54-devel
# /opt/plesk/php/5.4/bin/pecl install pthreads
# echo "extension=threads.so" > /opt/plesk/php/5.4/etc/php.d/threads.ini
# plesk bin php_handler --reread

Check that module is loaded:

# /opt/plesk/php/5.4/bin/php -m | grep threads
Im use php 5.4
Because its really old website
and im not developer to upgrade all site to php 7+
Thanks!!
 
Back
Top