- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP version
Try running this command from your terminal
sudo apt install php-libsodium
Accept as solution and kudos if it works for you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
How to fix it please ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP version
Please help !!!!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP version
The setting of my server is :
PHP version: 7.2.19
Apach: 2.4
MySQL: 5.6
memory_limit = 2048M
How to fix this problem please !?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP version
Please find below the detail of the installation:
01 Readnes Check
02 Add the Database
03 Web Configuration
04 Customize Your Store
05 Create Admin Account
05 Error in the step 5
Thanks a lot