• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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