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

PHP 5.3 / Plesk 10.1.1

M

MatthewTLS

Guest
How do I get Plesk to recognize that I now have PHP 5.3 installed and not PHP 5.1 which comes stock with CentOS 5.5? I've installed PHP 5.3 RPM's and yet, I can't for the life of me find where to tell Plesk to use PHP 5.3. It's now disabled all my PHP options for web sites and the Admin Panel reports next to "php": This component was not installed ... Which is of course, untrue. Any assistance would be appreciated!

Thanks!
 
Are you sure that your PHP installed with following paths:

/usr/bin/php
/etc/php.d
/etc/php.ini
/usr/lib/php

?

And note that Plesk doesn’t ship client’s PHP, it only downloads it from original OS vendor repo and it is quite likely it may be outdated there (especially for older OS). If your OS comes with PHP 5.3, then Plesk would run PHP 5.3 for clients.
 
I verified PHP 5.3 installed and uses the aforementioned paths. How does Plesk Panel 10 check for PHP? If it's looking for the RPM, the PHP 5.3 RPM is named "php53", whereas former php RPM's are simply named "php". Thoughts?
 
I'm not sure if this is helpful in the troubleshooting process, but here's some more information ...

[root@plesk Plesk]# ./autoinstaller --select-release-id PLESK_10_1_1 --show-components
File downloading products.inf3: 100% was finished.
File downloading plesk.inf3: 11%..21%..34%..42%..55%..62%..70%..83%..92%..100% was finished.
File downloading ppsmbe.inf3: 10%..51%..100% was finished.
File downloading sitebuilder.inf3: 22%..74%..100% was finished.
File downloading sso.inf3: 13%..67%..100% was finished.
File downloading setemplates.inf3: 24%..100% was finished.
File downloading pp-sitebuilder.inf3: 30%..99%..100% was finished.
File downloading billing.inf3: 21%..71%..100% was finished.
Checking for installed packages...
File downloading PSA_10.1.1/plesk-10.1.1-cos5-i386.inf3: 13%..23%..39%..43%..51%..62%..73%..88%..99%..100% was finished.
File downloading PSA_10.1.1/plesk-patches-10.1.1-cos5-i386.inf3: 15%..28%..35%..49%..52%..64%..77%..82%..95%..100% was finished.
File downloading SITEBUILDER_5.1.0/sitebuilder-5.1.0-rhall-all.inf3: 100% was finished.
File downloading BILLING_10.1.0/billing-10.1.0-rhall-all.inf3: 100% was finished.
Detecting installed product components.
base [up2date] - Base packages of Plesk
psa-autoinstaller [up2date] - Plesk Updater
postgresql [up2date] - PostgreSQL server support
pmm [up2date] - Plesk migration manager
health-monitor [up2date] - Health monitor
pba [up2date] - Payment gateway and registrar modules adapted to Business Manager
sitebuilder [up2date] - SiteBuilder
billing [install] - Customer & Business Manager (free, recommended for shared hosting)
php [up2date] - PHP5 support
mod-bw [up2date] - Bandwidth Limiter For Apache support (mod_bw)
asp [up2date] - Apache ASP support
java [up2date] - Tomcat Java Servlets support
mod_python [up2date] - Apache mod_python module
ruby [up2date] - Ruby on Rails support
cf-support [up2date] - ColdFusion support for Plesk
miva [up2date] - MIVA Empresa support
qmail [install] - Qmail mailserver
postfix [up2date] - Postfix mailserver
psa-firewall [up2date] - Plesk Firewall module
psa-vpn [up2date] - Plesk VPN module
psa-fileserver [up2date] - Plesk Fileserver module and SMB file server package
sshterm [up2date] - SSHTerm - SSH Terminal java applet
watchdog [up2date] - Watchdog (System monitoring module)
cs-gs [up2date] - Plesk Counter-Strike game server module
mailman [up2date] - Mailman mailing list manager support
kav [up2date] - Kaspersky antivirus
drweb [up2date] - Parallels Premium antivirus
spamassassin [up2date] - SpamAssassin support
backup [up2date] - Plesk Backup Manager
atis [up2date] - Acronis TrueImage module
horde [up2date] - Horde webmail support
atmail [up2date] - AtMail webmail support

[root@plesk Plesk]# ./autoinstaller --select-release-id PLESK_10_1_1 --install-component php
File downloading products.inf3: 100% was finished.
File downloading plesk.inf3: 11%..20%..33%..42%..57%..61%..73%..82%..97%..100% was finished.
File downloading ppsmbe.inf3: 18%..39%..59%..100% was finished.
File downloading sitebuilder.inf3: 22%..74%..87%..100% was finished.
File downloading sso.inf3: 24%..78%..100% was finished.
File downloading setemplates.inf3: 44%..100% was finished.
File downloading pp-sitebuilder.inf3: 30%..99%..100% was finished.
File downloading billing.inf3: 21%..71%..100% was finished.
Checking for installed packages...
File downloading PSA_10.1.1/plesk-10.1.1-cos5-i386.inf3: 13%..26%..39%..49%..52%..63%..76%..86%..97%..100% was finished.
File downloading PSA_10.1.1/plesk-patches-10.1.1-cos5-i386.inf3: 11%..20%..35%..51%..65%..82%..100% was finished.
File downloading SITEBUILDER_5.1.0/sitebuilder-5.1.0-rhall-all.inf3: 100% was finished.
File downloading BILLING_10.1.0/billing-10.1.0-rhall-all.inf3: 100% was finished.
Detecting installed product components.
You already have the latest version of product(s) and all selected components
installed. Installation will not continue.

[root@plesk Plesk]# rpm -qa | grep php
php5-ioncube-loader-4.0.5-11020715
php53-mysql-5.3.3-1.el5
php53-gd-5.3.3-1.el5
php53-common-5.3.3-1.el5
php53-pdo-5.3.3-1.el5
php53-xml-5.3.3-1.el5
php53-imap-5.3.3-1.el5
php53-5.3.3-1.el5
psa-php5-configurator-1.6.1-cos5.build1010110207.15
php53-cli-5.3.3-1.el5
php53-ldap-5.3.3-1.el5
php53-mbstring-5.3.3-1.el5
 
Issue resolved ... looks like Plesk queries the RPM database for the package "php". This is going to break Plesk since RedHat is naming the PHP 5.3 packages "php53". I built a blank RPM named "php" with the version 5.3.3 and it resolved my issue.
 
IgorG:

Any idea when Plesk 10 will be updated to compensate for RedHat's PHP 5.3 RPM naming convention? It appears that this has broken Plesk for quite a few people when they try and upgrade to PHP 5.3.

Thanks!
 
Thats because "php53" is not the correct naming convention. Its "php" and then version (5.3.x) followed by release (-1, -2, etc). The named-version conventions are generally frowned upon in all the packaging standards.
 
atomicturtle:

I know that, but apparently RedHat doesn't. They have named php-5.3 as php53. That's why I've had to build my own php-5.3 RPM's so that Plesk will play nice.
 
Any time you see those they're non-standard packages, it means that its going into a parallel implementation. More often than not when someone does that its for R&D, not for long term support.
 
RHEL 5.6 and CentOS 5.6 are all but out now, the bundled "php" package is still at version 5.1.6, however Redhat/CentOS now officially supply a "php53" package which provides PHP 5.3.6, and conflicts with "php" (see redhat SRPM (ftp.redhat.org) and a CentOS 5.6 mirror.)

If an upgrade to PHP(>5.1) is required, and the only path to do this from the official Repos is via the PHP53 package, it seems like there's no way to make this work with Plesk...

Our organisation has raised this with Parallels on ticket #1107990
 
Last edited by a moderator:
RHEL 5.6 and CentOS 5.6 are all but out now, the bundled "php" package is still at version 5.1.6, however Redhat/CentOS now officially supply a "php53" package which provides PHP 5.3.6, and conflicts with "php" (see redhat SRPM (ftp.redhat.org) and a CentOS 5.6 mirror.)

If an upgrade to PHP(>5.1) is required, and the only path to do this from the official Repos is via the PHP53 package, it seems like there's no way to make this work with Plesk...

Our organisation has raised this with Parallels on ticket #1107990

jiphex - feel free to follow my steps outlined in this post:

http://forum.parallels.com/showthread.php?t=108371

This will allow you to run PHP 5.3 and keep Plesk happy.
 
yeah, that's what I thought. shim RPM to fill the dependencies.

It'd be nice if Parallels had check for the PHP53 RPM though as an alternative to PHP.
 
yeah, that's what I thought. shim RPM to fill the dependencies.

It'd be nice if Parallels had check for the PHP53 RPM though as an alternative to PHP.

It would be even better if they just checked for the existence of the binary then stripped the version out of it.
 
Back
Top