V
V
Valeriu Vodnicear2019-03-31 02:34:47
CentOS
Valeriu Vodnicear, 2019-03-31 02:34:47

How to change the default PHP version on a server with ISPmanager and Centos 7?

How to change the default PHP version on a server with ISPmanager and Centos 7?
Right now there are these versions:
5c9ffcccb9e8e938916773.jpeg

with the command:

alias php='/var/www/php-bin-isp-php72/www-root/php'

changed the alias for the php command I thought that the default version would also change,

but no, it did not work

Can someone help?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2019-03-31
@Sanes

https://help.dreamhost.com/hc/en-us/articles/21420...
Look for alternative versions in /opt/...

S
SubGANs, 2019-03-31
@SubGANs

The native version cannot be changed through the panel.
If you need a different version, then specify the path to the interpreter - /opt/php72/bin/php script_name.php, you can of course still manually update php on the server to the desired one, but I would not recommend doing this on a server with Spanish.
If you need another version directly in the console without aliases and other things, then take a look at the article - https://m.habr.com/en/company/plesk/blog/306682/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question