[SOLVED] Magento requires PHP 7 or 7.1

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

[SOLVED] Magento requires PHP 7 or 7.1

Post by deepakdeshp »

Hello,
IN order to install Magento the prerequisites is it requires The required PHP version is ~7.0.13|~7.1.0. Hide detail
I have 3 versions of PHP installed.

Code: Select all

/usr/bin/php  /usr/bin/php7.1.0  /usr/bin/php7.2
php -v
PHP 7.2.7-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 22 2018 08:45:49) ( NTS )
I removed php with

Code: Select all

apt purge php7.2
But I am not able to install magento and also php -v shopws php version as 7.2

Please guide on how to get to install Magento with PHP version 7.0 or 7.1
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Magento requires PHP 7 or 7.1

Post by deepakdeshp »

The environment is Mint 19 Cinnamon host and Ubuntu 18.04 server as guest running under Vmware 14.I am trying to install Magento on the guest i.e. Ubuntu 18.04 server.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Magento requires PHP 7 or 7.1

Post by deepakdeshp »

This is how the switch to PHP 7.1 version was done.
https://tecadmin.net/switch-between-...ion-on-ubuntu/
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Software & Applications”