1. Hướng dẫn cài đặt Magento on Ubuntu
https://www.mageplaza.com/devdocs/ho...apache2-server
https://www.mageplaza.com/devdocs/ho...tep-76-install
2. Hướng dẫn clone lại Magento khi đã có sẳn
1. Tao lai db
mysql -uroot -p
CREATE USER 'quantridb'@'localhost' IDENTIFIED WITH mysql_native_password BY '@@m0d1fyth15K';
CREATE DATABASE quantridb;
GRANT ALL PRIVILEGES ON quantridb.* TO 'quantridb'@'localhost';
FLUSH PRIVILEGES;
2. Xóa cahe
cd /root
rm -rf .*
rm -rf *
3. Cai dat voi ten mien: magento.quantrinet.com
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento.quantrinet.com
cd /var/www/html/magento.quantrinet.com/
sudo bin/magento setup:install \
--base-url=http://magento.quantrinet.com \
--db-host=localhost \
--db-name=quantridb \
--db-user=quantridb \
--db-password=@@m0d1fyth15K \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@magento.quantrinet.com \
--admin-user=admin \
--admin-password=@@m0d1fyth15K \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1
Sau đó trên màn hình cài đặt sẽ hiện thông tin đăng nhập Admin Magento dạng sau:
http://magento.quantrinet.com/admin_11dlut
username: admin
password: @@m0d1fyth15K
Chúc các bạn thành công