• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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