• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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