On this page, we explain step by step how to setup Magento 2 with CloudPanel.
The latest Magento 2 version requires Elasticsearch 7.9.
A step by step guide how to install Elasticsearch 7.9 on Debian 10 can be found on the following site:
When you Add the Domain, make sure to select the Magento 2 Vhost Template and the right PHP Version.
Make sure to point the Document Root to the pub directory.
To install Magento do the following steps:
- Login via SSH to the server e.g. with john-ssh and go to the htdocs directory:
- Delete the project directory which has been created by CloudPanel:
- Run the composer command to install the latest Magento 2 Version.
Before you run the composer command, make sure to have Magento Authentication Keys created.
Enter the Username and Password (Authentication Keys) and press enter.
- Go to the installation directory and execute the setup::install script from Magento:
Edit the parameters like key, db-host, db-name and so on to your needs.
- Reset permissions.
You can now access the frontend and backend.
In our case the backend url would be:
Admin User Password
For security reasons, make sure to NOT use the default password !admin123!.