Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Magento (http://quantrinet.com/forum/forumdisplay.php?f=551)
-   -   Hướng dẫn clone hoặc cài đặt Magento on Ubuntu (http://quantrinet.com/forum/showthread.php?t=10323)

hoctinhoc 25-07-2022 09:19 AM

Hướng dẫn clone hoặc cài đặt Magento on Ubuntu
 
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


Bây giờ là 01:24 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.