cancel
Showing results for 
Search instead for 
Did you mean: 

PHP version

PHP version

Hi all,

 

I tried to install a new website Magento 2.3.2, but before starting install I get the error HTTP 500, i checked the version of PHP, and here is the result:

In my server using the phpinfo() command, the version is 7.3

but when I used the command line php -v, I get PHP 5.4.45.

How to fix this confusion please ?

 

Thanks

9 REPLIES 9

Re: PHP version

Hi 

 

I think your server have multiple PHP installed also for Magento 2.3.x you need to lower down your PHP to 7.2 as they have not tested Magento 2.3 above 7.2.11.

 

Another thing if you want to use the same version of PHP through command line you have to disable PHP 5 and enable PHP 7 .

 

You can refer this link for disabling and enabling PHP 

https://stackoverflow.com/questions/42619312/switch-php-versions-on-commandline-ubuntu-16-04

 

Re: PHP version

Hello @hicham_ait zidane ,

 

You must be having multiple php in your system. Although you have switched to php 7.3 in command line it is showing the old version. You can run following command in command line

 

 

sudo update-alternatives --set php /usr/bin/php7.3

Re: PHP version

Thanks you all for your answeers !

I am trying to fix this problem whith my web hoster.

however, I tried to install Magento 2.3.2, and at the step 5 for create Admin account, when I click on the Next button, I have the following error message:

An abstract factory could not create an instance of magentoframeworkencryptionencryptor(alias: Magento\Framework\Encryption\Encryptor)

 

Could you help me please ?

 

Thanks

Re: PHP version

@hicham_ait zidane ,

 

Try running this command from your terminal

 

  sudo apt install php-libsodium

 

 

Accept as solution and kudos if it works for you!

Re: PHP version

Hi Surbhiagr,

 

Unfortunately, I don't have the administration rights on the root, I will ask my host and keep you informed if it works.


Thank you very much for your answer

Re: PHP version

Hi,

Now I fixed the problem of PHP with my web hosting, I have php version 7.2, but during the installation I always get the error message :

An abstract factory could not create an instance of magentoframeworkencryptionencryptor(alias: Magento\Framework\Encryption\Encryptor).

create admin account.jpgHow to fix it please ?

Thanks

Re: PHP version

Please help !!!!

 

Thanks

Re: PHP version

The setting of my server is :

PHP version: 7.2.19

Apach: 2.4

MySQL: 5.6

memory_limit = 2048M

memory_limit.JPGHow to fix this problem please !?

Re: PHP version

Please find below the detail of the installation:

01 Readnes Check01 Readnes Check02 Add the Database02 Add the Database03 Web Configuration03 Web Configuration04 Customize Your Store04 Customize Your Store05 Create Admin Account05 Create Admin Account05 Error in the step 505 Error in the step 5

Thanks a lot