• 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.

Make compatible PHP installation with sockets, pthreads for PLESK 12.08

hristo_ivanov

New Pleskian
Hello Plesk support team!

Thanks for your help for Plesk it's really good stuff!

my question is: How to install PHP (v.5.3+) compatible with Plesk v.12.08 with support for sockets and pthreads, mysql and etc. for Centos 6.5 (I have some configuring options).
Should I build it or there are another options provided by Plesk panel?

I need only one PHP (not multiple releases) but fine working if possible.

Excuse me if there is similar tread but I can't a solution for me.

Best Regards!
H Ivanov
 
Just use official multiple PHP feature described in KB and Plesk documentation. Compile new PHP with needed options, register this new php handler and use only this PHP for your hosting.
 
Thanks Igor,

Just for clarification - except the sites there is an application which need to run this way:

#php scriptName.php

where the scriptName.php is a part of threaded socket server placed somewhere (not mandatory in any domain structure) in the filesystem.
Should I remove the previous PHP version (5.3.3) ?
 
Hi there,

let me share the result:

I compile and install the new PHP 5.4.0 but pthreads wasn't correctly installed due to unacceptable parameter into the configure option (--enable-pthreads).
So I remove the configure command and run: ./buildconf --force , as desscribed here.
Continue with clear installation of the new PHP into /usr/php540/php54-cgi
and now everything is working.
There are two PHP's - the official PHP 5.3.3 (which continue to support PLESK sites and panel - it's tested) and new PHP 5.4.0 for all command line applications,
called under "screen" as: /usr/php540/php540-cgi/bin/php MyScript.php

Thanks Igor and have a luck for all!

Hristo Ivanov
 
Back
Top