In this tutorial, we will show you how to install Magento Open Source on Ubuntu Server Latest. Magento is a popular open-source eCommerce platform used by thousands of businesses worldwide.
Before starting with the installation process, ensure that you have the following prerequisites:
git clone https://github.com/magento/magento2.git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
composer --version
cd magento2
composer install
sudo chmod -R 777 pub var generated
sudo mysql -uroot -p
CREATE DATABASE magento;
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON magento.* TO 'magento'@'localhost';
FLUSH PRIVILEGES;
cd magento2
bin/magento setup:install --base-url=http://localhost/ --db-host=localhost --db-name=magento --db-user=magento --db-password=password --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --backend-frontname=admin
Change the --base-url
, --admin-email
, --admin-firstname
, --admin-lastname
, --admin-user
, and --admin-password
parameters to your desired values.
http://localhost/
in your web browser.Congratulations! You have successfully installed Magento Open Source on Ubuntu Server Latest using Github.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!