• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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