cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie manual install of Magento 2.2.3

Newbie manual install of Magento 2.2.3

Hi,

 

I'm trying to install magento, but get the following error:

 

An abstract factory could not create an instance of magentoframeworkencryptionencryptor(alias: Magento\Framework\Encryption\Encryptor). when trying to create an admin account on Magnenro on the last page of the setup.
 
I believe this may be an issue with the version of libsodium I've installed. I'm on a Debian GNU/Linux  environment, I have tried to install libosoium with the following commands:
 
(uiserver):u97786752:~/libsodium-1.0.18$ curl https://packages.sury.org/php/apt.gpg -o /etc/apt/trusted.gpg.d/php.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /etc/apt/trusted.gpg.d/php.gpg: Permission
Warning: denied
curl: (23) Failed writing body (0 != 678)
(uiserver):u97786752:~/libsodium-1.0.18$ u97786752 root
-bash: u97786752: command not found
(uiserver):u97786752:~/libsodium-1.0.18$ root
-bash: root: command not found
(uiserver):u97786752:~/libsodium-1.0.18$ curl https://packages.sury.org/php/apt.gpg -o /etc/apt/trusted.gpg.d/php.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /etc/apt/trusted.gpg.d/php.gpg: Permission
Warning: denied
curl: (23) Failed writing body (0 != 678)
(uiserver):u97786752:~/libsodium-1.0.18$ ^C
(uiserver):u97786752:~/libsodium-1.0.18$ ^C
(uiserver):u97786752:~/libsodium-1.0.18$
I don't even know is this correct. I'd really appreciate some guidance on this.
 
 
 
7 REPLIES 7

Re: Newbie manual install of Magento 2.2.3

Hello @james_connor2 

 

You need to upgrade your libsodium version to match the requirement, which is version 1.0.13 or above.

Ubuntu:

$ sudo apt install php-libsodium

CentOS:

$ yum install php-pecl-libsodium2

Restart your web-server.

After installing libsodium, make sure that it is loaded:

$ php -i | grep libsodium
libsodium headers version => 1.0.17
libsodium library version => 1.0.17

If you get another error such as PHP Fatal error: sodium_init() in Unknown on line 0, you should try installing libsodium using PECL. But for now at least you should try installing it using apt/yum first.

 

For more reference: https://github.com/jreckner/docker-libsodium/blob/master/Dockerfile

https://github.com/magento/magento2/issues/23405

Manish Mittal
https://www.manishmittal.com/

Re: Newbie manual install of Magento 2.2.3

Hi Manish,

 

Thank you very much for your response.

 

When I'm trying to install libosoduim, I'm having the following issue:

 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
(uiserver):u97786752:~$ sudo apt install php-libsodium
-bash: sudo: command not found
(uiserver):u97786752:~$ yum install php-pecl-libsodium2
-bash: yum: command not found
(uiserver):u97786752:~$  $ sudo apt install php-libsodium
-bash: $: command not found
(uiserver):u97786752:~$ ^C
(uiserver):u97786752:~$

Please can you advise?

 

Many thanks,

 

James

Re: Newbie manual install of Magento 2.2.3

Hello @james_connor2 

 

It seems not related to Magento but still sharing some links which you can follow to fix:

 

https://lukasmestan.com/install-libsodium-extension-in-php7/

https://github.com/paragonie/halite/issues/48

https://www.liquidweb.com/kb/install-php-7-2-ubuntu-16-04/

 

Try if any link works for you.

Manish Mittal
https://www.manishmittal.com/

Re: Newbie manual install of Magento 2.2.3

Hi Manish,

 

The following happened:

 

 

(uiserver):use47w89 pecl install -f libsodium

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /usr/lib/php4.4/PEAR/PackageFile/v2.php on line 1288

I understand that this could be an issue with memory limit on the php.ini file, however this is set to 256M in the config file.

 

I am really struggling to install libosodium with ssh commands, and as I'm rather new, any advice on this would be great.

 

Re: Newbie manual install of Magento 2.2.3

Hello @james_connor2 

 

No problem, will fix this.

 

You can disable the memory limit by setting memory_limit to –1 in PHP.ini.

Manish Mittal
https://www.manishmittal.com/

Re: Newbie manual install of Magento 2.2.3

Hi Mannish,

 

I followed your instructions, please see below:

 

(left is master value, right is local value)

 

Capture2.JPG

 

However, I am still getting the following error message:

 

(uiserver):u97786752:~$ pecl install -f libsodium

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /usr/lib/php4.4/PEAR/PackageFile/v2.php on line 1288                                                                                                                                                      

I've been trying to resolve this ,and have spent a lot of time googling this issue, and I would have expected that these memory limits ought to allow for an allocation of 92160 bytes.

 

I'm really  struggling with this, and would appreciate your help.

 

I've been following the following instructions:

 

http://blog.grafzahl.io/magento-warning-after-updating-to-2-3-2/

 

which reference the issue.

 

Many thanks.

Re: Newbie manual install of Magento 2.2.3

Installing Magento can be a bit tricky for new users, but it is definitely doable with the right guidance. Before beginning the installation process, it is important to make sure that your server meets the system requirements for running Magento. Additionally, you should also familiarize yourself with the legal requirements for running an online store, such as obtaining any necessary business licenses and complying with data privacy laws.