• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Php (cli) default version

mikapan

New Pleskian
Hello,

Since I'm not an expert, I actually have the problem that our Plesk 12.5.30 is running on a default php 5.3.3 version. Problem is, if I have to install packages with composer, this version is a way too old. We're mostly using php 5.5 / 5.6 with our registered domains, but we can't do anything with an old php cli version.

Is there a way to update it ? Or maybe change the global PATH ?

Thanks for you help, and excuse my bad english and my poor skills :D
 
For example, for PHP 5.6 version binary located in

# /opt/plesk/php/5.6/bin/php

For PHP5.5:

# /opt/plesk/php/5.5/bin/php
 
Thanks,

But since I'm a bit noobish, is there maybe a way to create some aliases for specific users ?

I tried to to create a ~/.bashrc but it isn't sourced apparently, is there an other way ?
 
Could you please describe required scenario of using PHP in cli?
 
Actually we are always working with things like Composer.

So with the default version of php (5.3.3) when we want to install / update or whatever, I'm unable to do it with this old version of php (because many packages requires more recent versions of php).

So to make things easier I wished we were able to update the default php version, but I guess it can cause trouble.

Then, I wanted to create some alias for "php55" or "php56" (like : alias php56="/opt/plesk/php/5.6/bin/php"). But my shell env knowledge and skills are limited, so I just tried to create a ~/.bashrc, but it didn't worked. I mean, if I manually source it, it is working, but when I log out from my session and log back, the file isn't executed.
 
Back
Top