• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Multiple PHP Versions in Plesk 12.0 Out of the Box!

dash

Regular Pleskian
Staff member
Hi all,
I glad to inform you that finally PHP 5.x builds from Plesk team are available in Plesk 12.0 Linux out of the Box! :)

Please check this guide for usage details: http://kb.odin.com/en/125146
We glad to see your feedback and suggestions here.

Now, with Plesk 12.0, you can install and use multiple PHP 5.x versions built by Plesk team via Plesk panel, without any additional third-party repositories or building PHP from sources by yourself! Plesk PHP packages do not conflict with or replace other PHP packages, so you can continue using your current PHP builds or third-party PHP packages.

Note: Currently, PHP packages from the Plesk team are available on CentOS 6, CentOS 7, and Ubuntu 14. In Plesk 12.1, we are going to extend this list with Ubuntu 12, Debian 6, Debian 7, and RHEL 5, 6, 7 operating systems.
 
I have a customer that needs php-mcrypt, so I was thinking this would be a good feature that will enable me to add it.
However, I'm running plesk-12.0.18 update 41 on CentOS release 5.10 (Final). It appears CentOS 5 isn't supported.
To upgrade CentOS 5 to 6 or 7 seems to require a fresh install and a migration, however that changes the password storage, which I cannot do.
Is there a chance you'll support multiple PHP versions with CentOS 5?
 
I'm not sure that we will support old version of CentOS. As possible solution you can use previous methods for 'multiple PHP' feature implementation. Like official from Plesk documentation or Atomic Panda.
 
It's hard to maintain new php builds on such an old system as Centos-5 so we decided to keep 2 latest stable centos versions: 6 & 7.
as Igor wrote before you still can use other third-party solutions for this.
 
Great work guys!
excellent timing

no issues found on centos6 and plesk 12
and using mariadb10
 
Hi, I am very glad with this. I am new on Plesk and Centos, so this would be a great help for me.

Using Centos 6.6 with Plesk 12.0.18., just was downgraded by VS Provider because of an image problem with Centos 7.
1. I am not seeying the new possibility for PHP yet in my version of Plesk. When will it be available?

Will have to upgrade from PHP 5.3 on Centos 6.6 to PHP 5.5, so reading the post on http://kb.odin.com/en/125146. I saw the next note
The PHP-FPM handler is not a part of Plesk PHP packages at the moment.
And at possible issues and limitation the next phrase: PHP-FPM and PHP Apache module are not included in PHP packages from the Plesk team.

2. I am using nginx with apache in Plesk 12. Can you please tell me if above comment is stating that I will be having problems with my configuration? I can remember choosing the PHP_FPM module in the settings to be installed!
3. What will I have to do to avoid problems when I choose to upgrade to PHP 5.5 from out the Panel when available?
 
Hi Eugene1,

1. You should have such possibility right now. first step - install necessary php versions in Plesk Installer UI: "Updates and upgrades" button. (If you are not able to find this link - just type "updates and upgrades" in "search" box). Please follow http://kb.odin.com/en/125146
Probably your provider uses Plesk his repository mirror and did not mirrored latest update yet. If you do not see multiple php versions in Plesk Installer UI - I recommend you to ask your provider if he uses Plesk mirror.

2. This point means that you have no option to choose option "apache module" for this new PHP versions on domain. Only option "fastcgi" or "cgi" are available. We strongly recommend to avoid "apache module" option anyway as it's security model is not safe.
If your php files are served by php-fpm ( "Process PHP by nginx" checkbox on WebSite -> "Web Server Settings") then it does not meter what PHP interpreter version is selected for the site - php sites are served by php-fpm & nginx.
Please check customer's guide for details: http://download1.parallels.com/Plesk/PP12/12.0/Doc/en-US/online/plesk-customer-guide/72320.htm#

3. We included most useful php extensions to our PHP builds and do not expect any issues. Anyway - new components installation does not reconfigure existent sites automatically, so you can make site copy ("clone website" operation) to check it with new PHP.
 
What if we need additional php modules like i.e. php-memcache or php-memcached? Is PECL the recommended way? /opt/plesk/php/5.6/bin/pecl exists.
 
Hi Odin Team,

Thanks for the answers, but you have left me worrying and confused now after reading your answer at point 2.
I had allready been reading about Apache and Nginx in Plesk, and liked this possibility very much. Need it for a webshop.
The Plesk guide says: "By default, to achieve better performance, Apache is supplemented with another web server - nginx."

But you are saying "We strongly recommend to avoid "apache module" option anyway as it's security model is not safe."

1. Correct me if I am wrong. Do you suggest to disable, the next modules under Webhosting Features, Apache mod_fcgid module, Apache mod_perl module, Apache ASP support, Apache web server support, Bandwidth Limiter For Apache support (mod_bw). So almost everything about Apache?

As I told you before I am completely new to this topic, and have to say, my server provider is giving me a serious heartache with there support. They did not new nothing about the new update for multiple PHP's. And still have not updated after my polite request.

I have read various articles about Nginx, and know it could work alone. But its adviced to use both for webshops, for it would increase the accessibility off the webshop, making it also much faster.

2. But I would like some advice from someone with more experience about this. Would you advice indeed to only use Nginx on Centos 6.6 with Plesk 12.08, for performance and security? Using Apache version 2.2.15 (Unix).
 
What if we need additional php modules like i.e. php-memcache or php-memcached? Is PECL the recommended way? /opt/plesk/php/5.6/bin/pecl exists.
Yes, pecl is OK:
Code:
# /opt/plesk/php/5.6/bin/pecl install memcached
# echo "extension=memcached.so" > /opt/plesk/php/5.6/etc/php.d/memcached.ini
# /opt/plesk/php/5.6/bin/php -i | grep "memcached support"
memcached support => enabled

Required devel packages can be downloaded from http://autoinstall.plesk.com/
Code:
http://autoinstall.plesk.com/PHP_5.2.17/dist-deb-Ubuntu-14.04-i386/extra/plesk-php52-dev_5.2.17-ubuntu14.04.15040611_i386.deb
http://autoinstall.plesk.com/PHP_5.2.17/dist-deb-Ubuntu-14.04-x86_64/extra/plesk-php52-dev_5.2.17-ubuntu14.04.15040611_amd64.deb
http://autoinstall.plesk.com/PHP_5.2.17/dist-rpm-CentOS-6-i386/extra/plesk-php52-devel-5.2.17-centos6.15040611.i386.rpm
http://autoinstall.plesk.com/PHP_5.2.17/dist-rpm-CentOS-6-x86_64/extra/plesk-php52-devel-5.2.17-centos6.15040611.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.2.17/dist-rpm-CentOS-7-x86_64/extra/plesk-php52-devel-5.2.17-centos7.15040611.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.3.29/dist-deb-Ubuntu-14.04-i386/extra/plesk-php53-dev_5.3.29-ubuntu14.04.15040611_i386.deb
http://autoinstall.plesk.com/PHP_5.3.29/dist-deb-Ubuntu-14.04-x86_64/extra/plesk-php53-dev_5.3.29-ubuntu14.04.15040611_amd64.deb
http://autoinstall.plesk.com/PHP_5.3.29/dist-rpm-CentOS-6-i386/extra/plesk-php53-devel-5.3.29-centos6.15040611.i386.rpm
http://autoinstall.plesk.com/PHP_5.3.29/dist-rpm-CentOS-6-x86_64/extra/plesk-php53-devel-5.3.29-centos6.15040611.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.3.29/dist-rpm-CentOS-7-x86_64/extra/plesk-php53-devel-5.3.29-centos7.15040611.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.4.39/dist-deb-Ubuntu-14.04-i386/extra/plesk-php54-dev_5.4.39-ubuntu14.04.15033115_i386.deb
http://autoinstall.plesk.com/PHP_5.4.39/dist-deb-Ubuntu-14.04-x86_64/extra/plesk-php54-dev_5.4.39-ubuntu14.04.15033115_amd64.deb
http://autoinstall.plesk.com/PHP_5.4.39/dist-rpm-CentOS-6-i386/extra/plesk-php54-devel-5.4.39-centos6.15033115.i386.rpm
http://autoinstall.plesk.com/PHP_5.4.39/dist-rpm-CentOS-6-x86_64/extra/plesk-php54-devel-5.4.39-centos6.15033115.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.4.39/dist-rpm-CentOS-7-x86_64/extra/plesk-php54-devel-5.4.39-centos7.15040115.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.5.23/dist-deb-Ubuntu-14.04-i386/extra/plesk-php55-dev_5.5.23-ubuntu14.04.15033113_i386.deb
http://autoinstall.plesk.com/PHP_5.5.23/dist-deb-Ubuntu-14.04-x86_64/extra/plesk-php55-dev_5.5.23-ubuntu14.04.15033113_amd64.deb
http://autoinstall.plesk.com/PHP_5.5.23/dist-rpm-CentOS-6-i386/extra/plesk-php55-devel-5.5.23-centos6.15033113.i386.rpm
http://autoinstall.plesk.com/PHP_5.5.23/dist-rpm-CentOS-6-x86_64/extra/plesk-php55-devel-5.5.23-centos6.15033113.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.5.23/dist-rpm-CentOS-7-x86_64/extra/plesk-php55-devel-5.5.23-centos7.15033113.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.6.7/dist-deb-Ubuntu-14.04-i386/extra/plesk-php56-dev_5.6.7-ubuntu14.04.15033113_i386.deb
http://autoinstall.plesk.com/PHP_5.6.7/dist-deb-Ubuntu-14.04-x86_64/extra/plesk-php56-dev_5.6.7-ubuntu14.04.15033113_amd64.deb
http://autoinstall.plesk.com/PHP_5.6.7/dist-rpm-CentOS-6-i386/extra/plesk-php56-devel-5.6.7-centos6.15033113.i386.rpm
http://autoinstall.plesk.com/PHP_5.6.7/dist-rpm-CentOS-6-x86_64/extra/plesk-php56-devel-5.6.7-centos6.15033113.x86_64.rpm
http://autoinstall.plesk.com/PHP_5.6.7/dist-rpm-CentOS-7-x86_64/extra/plesk-php56-devel-5.6.7-centos7.15033113.x86_64.rpm
 
I've changed the PHP settings in one domain, but when i want to change it in one of my subdomains it doesn't show the additional versions and i'm still on 5.4.
Is the subdomain automatically using the version from the domain, or is something going wrong?

My system:

OS: CentOS Linux 7.1.1503 (Core)
Plesk-versie: 12.0.18 #41

See attached screenshots:

psa1.png


psa2.png


psa3.png
 
Hi PacoRB,

please keep in mind, that if you use the webserver - setting "Process PHP by nginx", then PHP5-FPM from your system-wide PHP installation will be used - you can't change the PHP - version in this case at the moment ( Odin / Parallels ) might change this behaviour in the near future, because they think about implementing PHP5-FPM on each PHP - version! ).

Websites and Domains > Web Server Settings > and disable "Process PHP by nginx"

... if you would like to have the choice to choose other installed PHP - versions for your domain.
 
I've changed the PHP settings in one domain, but when i want to change it in one of my subdomains it doesn't show the additional versions and i'm still on 5.4.
Is the subdomain automatically using the version from the domain, or is something going wrong?

Hello PacoRB,
If the subscription has no "Hosting Management" permission and you change PHP handler on domain then subdomains of this domain switches to this handler too. If the subscription has "Hosting Management" permission then on all subscription's sites PHP handlers are managed independently. But this behaviour is not actual when the site php files processed by nginx as UFHH01 said.
 
Thank you, what UFHH01 said was indeed the cause for my problem.

Do you know when it'll be possible to use php 5.6 with nginx php-fpm?
 
Hi PacoRB,

as I stated, they "think" about an implementation in each additional Plesk-PHP-version, it is not clear yet, if they'll do it and in that case it is as well not clear when they will do it.


...

If you select PHP-FPM, only vendor PHP version is available, so yeah, this is currently working as expected. We are considering packaging PHP-FPM for other versions, though, so stay tuned.
 
Last edited by a moderator:
Back
Top