Page 1 of 2

PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Fri Nov 22, 2013 8:21 pm
by scott
The Plesk PHP Panda (P3) is a suite of multiple PHP versions to an alternate location using redhats SCL structure, Allowing the default system version of PHP to remain in place. It is primarily
designed for Plesk hosting environments, but can be used on any RPM based system.

* PHP 5.2
* PHP 5.3
* PHP 5.4
* PHP 5.5
* PHP 5.6


The Plesk PHP Panda is designed to enable you to have per domain PHP options using FCGI mode in plesk. While I wrote this initially for plesk, its entirely possible that this could be installed on other systems, like cpanel or directadmin. I hope that it can be, and we'll finally be able to bring these kinds of updates to the source-only environments.

In plesk 11.5, under your Domain -> Hosting Settings you will see 2 new options for FCGI php:
- Atomic 5.2
- Atomic 5.3
- Atomic 5.4
- Atomic 5.5
- Atomic 5.6

Detail nerds:
Atomic SCL installs packages under /opt/atomic, with an API layer for managing packages system wide much like the alternatives subsystem. This means that it is absolutely possible to load these packages as a DSO (Not per domain. This is an apache limitation) and *not* touch or otherwise interfere with the vendor installed PHP packages. There are many advantages to this approach, as well as serious disadvantages. My position on the SCL option is its useful in niche cases, like when you have another API to enable it like plesk does. It is not going to replace the way we've been doing updates for the last 10 years. We can have an SCL discussion in another thread.

Installation:

yum install php-panda

PS- Free Nucleus subscription to the first person who gets the P3 reference!
PPS- We'll make nucleus work with this too.

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Sat Nov 23, 2013 7:47 am
by faris
I win!!! I win!!!! P3=Cochise College Airport's FAA identifier. It is Soooooo obvious.

[cricket chirps]

What? I'm wrong? How can I be wrong?

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Sat Nov 23, 2013 10:00 am
by scott
:P I feel like any hint I come up with will give it away immediately. Its from a TV Show

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Sat Nov 23, 2013 1:29 pm
by faris
Nah, doesn't help. Google say Charmed. But if that's the case, Google wins the sub, not me :-)

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Sun Nov 24, 2013 2:00 pm
by scott
Ha, I knew that would give it away immediately. Yes its from Charmed! I code named the 4 builds of PHP after the Halliwell sisters. PHP 5.2 is Prue. Because she got kicked off the show in season 3. PHP 5.3 is Piper, because shes the stable one. PHP 5.4 is Phoebe because shes my favorite, and Paige is PHP 5.5 because shes the newest.

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Sun Nov 24, 2013 6:20 pm
by faris
You really need to catch some Phineas and Ferb if you want inspiration for codenames.

The problem with Panda is that I can't get that South Park episode out of my head.

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Tue Feb 25, 2014 11:17 am
by scott
PHP 5.6 (alpha2) is now available in the PHP Panda!

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Thu Mar 13, 2014 8:31 am
by scott
PHP 5.2.17 is now available!

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Mon Mar 17, 2014 3:20 pm
by scott
The backport process has begun for PHP 5.2. This is a major amount of work, so it will be an ongoing process for some time.

Changelog 5.2:
- Fix CVE-2011-2202
- Fix CVE-2011-1938
- Fix CVE-2011-1148

So far we've identified another 100 or so bugs and vulnerabilities to resolve in PHP 5.2. As always, the best policy here is only use PHP 5.2 in the presence of ASL with active WAF and HIDS security controls to manage the risks.

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Mar 19, 2014 3:38 pm
by 12lamat
How could i exclude the 5.2 while doing the yum update?

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Mar 19, 2014 5:23 pm
by scott
No way yet, but we'll break that out soon. How come, you don't want your users accessing something so scary? :P Theres a way to remove it from the list as a workaround

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Mar 26, 2014 4:47 am
by 12lamat
Please explain the workaround to axclude PHP-packages while updating the Plesk PHP Panda through yum update

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Mar 26, 2014 8:05 am
by scott
You can use /usr/local/psa/bin/php_handler to remove entries from the drop down. The 5.2 packages would still be installed, your users just wont see them.

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Apr 02, 2014 3:47 pm
by 12lamat
Below is the content of my _handler file.

What should i add or change.

Why is it not possible to choose which php-version i can install with php panda? I don't need/want 5.2

#!/usr/local/psa/bin/sw-engine-pleskrun
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PPP');
?>
ó^V^Y^[þÇ°5Q\iÃY^CµhòF4tò»áL¥çëU³ûÊÆ/仺<8d>?<*F­ÕO~^K@Ë<9d>0¡YX6^Tõ!<97><9b>|)Ò©ÄÎdÒ^Cu^X&^_^_ æs¸^Dxæk¨Ä<9f>²g<9f>qÁ<94>^^³ßN[wE<83>Í^L<90><95>е<9a><99>øéB^Sè»ÕqYÉ'<9d>ü±CôÛ^Z`ÐEÍàsþ<8a>¤f^P^HzW¬ì^G1rï
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
Type :quit<Enter> to exit Vim


Thanks in advance

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Wed Apr 02, 2014 4:04 pm
by scott
Well the idea was to minimize steps here. I didnt want people to have to install 5 different packages to use the system.