B
B
BarneyGumble2016-11-07 23:26:57
PHP
BarneyGumble, 2016-11-07 23:26:57

How to find out how much PHP is installed locally?

Hello everyone
. I use the latest version of MAMP PRO as a web server on my local computer, which uses PHP 7.0 in my work. The php -v command in the console shows me that I
don’t have the 7th version, but 5.4.
set myself a separate php
How can I remove the old php and continue to use only the new one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2016-11-07
@webirus

Yesterday I just installed it according to this instruction)))
help.ubuntu.ru/wiki/php
I need two, so I just switch at the right time.

sudo a2dismod php5.6
sudo a2enmod php7.0
sudo service apache2 restart

PS: Even with 5.6 enabled php -v, 7.0 is also displayed in the console.
Apparently, which one he installed first, that one is shown. Don't know.
<?php phpinfo(); ?>saves)
ZYZY: But only now it dawned on me that I painted info for Linux :)
And Mampa, if I'm not mistaken, this is Makosina) Well, maybe it will help)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question