cancel
Showing results for 
Search instead for 
Did you mean: 

A problem with installing Magento on Arch Linux

SOLVED

A problem with installing Magento on Arch Linux

Hello

I am new to Magento, and I have a problem with installing it on Arch Linux.

I am following the steps in the below link,

https://ipv6.rs/tutorial/Arch_Linux/Mag … en_Source/

In the Step 3: Install Magento / install the software, I got this error  Class"Magento\Framework\App\ResourceConnection\Proxy" does not exist when I run the following command ,

$ bin/magento setup:install \ --base-url=http://palm-sw.com/ \ --db-host=localhost \ --db-name=magento2 \--db-user=magentouser \--db-password=magento@password \--admin-firstname=Admin \--admin-lastname=User \--admin-email=admin@palm-sw.com \--admin-user=admin \--admin-password=Admin123! \--language=en_US \--currency=USD \--timezone=America/Chicago \--use-rewrites=1 

Your support is highly appreciated.

Regards,

Hossam

1 ACCEPTED SOLUTION

Accepted Solutions

Re: A problem with installing Magento on Arch Linux

Hi @hossammaghbcbe ,

 

ext-sodium and ext-xsl both are required extensions based on your php version and system requirements.

 

Using sudo with Composer is not recommended as a best practice.

Instead, ensure your local directory has the correct permissions. For example:

 

sudo chmod -R 777 /srv/http/magento2

 

Once permissions are set, you can safely run the Composer command without sudo:

 

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /srv/http/magento2

 

This approach helps avoid permission issues and potential security risks associated with running Composer as root.

 

Ankit Jasani

View solution in original post

4 REPLIES 4

Re: A problem with installing Magento on Arch Linux

Hi @hossammaghbcbe ,

 

Could you please confirm which magento version you are trying to install?

 

Also, refer below link for system requirements

https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirement...

Example: php version compatibility issues

 

Try composer install before setup:install command and check vendor folder exists with proper permission or not.

 

Problem Solved? Accept as Solution!

 

Hope it helps!

Thanks

Ankit Jasani

Re: A problem with installing Magento on Arch Linux

@Ankit Jasani 

- I am installing Magento2.

- For system requirements, 

  • I had a problem with these two packages (ext-sodium and ext-xsl) while using the following command to download Magento. So I bypass the tow packages. Also, I use the sudo with the command due to an authentication issue.

Finally, could you please clarify this point? "Try composer install before setup:install command and check vendor folder exists with proper permission or not. "

 

Thank you for your time. appreciated

 

The command to download Magento.

sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /srv/http/magento2

 

Re: A problem with installing Magento on Arch Linux

Hi @hossammaghbcbe ,

 

ext-sodium and ext-xsl both are required extensions based on your php version and system requirements.

 

Using sudo with Composer is not recommended as a best practice.

Instead, ensure your local directory has the correct permissions. For example:

 

sudo chmod -R 777 /srv/http/magento2

 

Once permissions are set, you can safely run the Composer command without sudo:

 

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /srv/http/magento2

 

This approach helps avoid permission issues and potential security risks associated with running Composer as root.

 

Ankit Jasani

Re: A problem with installing Magento on Arch Linux

Thanks @Ankit Jasani 

The problem has been resolved. It was a permissions issue.