Answer the question
In order to leave comments, you need to log in
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
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
php -v
, 7.0 is also displayed in the console. <?php phpinfo(); ?>
saves) Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question