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

Support/Development for PHP
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post 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?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

:P I feel like any hint I come up with will give it away immediately. Its from a TV Show
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post by faris »

Nah, doesn't help. Google say Charmed. But if that's the case, Google wins the sub, not me :-)
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

PHP 5.6 (alpha2) is now available in the PHP Panda!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

PHP 5.2.17 is now available!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
12lamat
Forum User
Forum User
Posts: 14
Joined: Thu Jan 09, 2014 5:42 pm
Location: Brussels

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

Unread post by 12lamat »

How could i exclude the 5.2 while doing the yum update?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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
12lamat
Forum User
Forum User
Posts: 14
Joined: Thu Jan 09, 2014 5:42 pm
Location: Brussels

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

Unread post by 12lamat »

Please explain the workaround to axclude PHP-packages while updating the Plesk PHP Panda through yum update
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
12lamat
Forum User
Forum User
Posts: 14
Joined: Thu Jan 09, 2014 5:42 pm
Location: Brussels

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

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
Post Reply