Tiếp tục Series về ee (EasyEngine) ở bài trước mình đã hướng dẫn bạn cài ee rồi,ở bài này mình sẽ tập trung đi vào cách cài đặt WordPress và ở bài này mình thực hiện cài WordPress mặc định với các cấu hình cache ee hỗ trợ như (Redis, Memcached, Nginx cache) SSl Let’s Encrypt.
Cấu trúc lệnh
ee site create –type=wp –option
- –ssl=le : Cài Let’s Encrypt
- –ssl=le –wildcard : Cài SSL Wikd Card
- –wpfc: Cài Nginx Cache
- –w3tc: Cài W3 Total Cache
- –wpsc: Cài WP Super Cache
- –wpredis: Cài WP Redis Cache
Hướng dẫn cài đặt
Bên dưới là một số lệnh để thực hiện cài nhanh phổ biến mà mình liệt kê cho bạn
- Tạo site WordPress mới
$ ee site create ee.linuxcanban.com --type=wp
- Tạo site WordPress và cài đặt SSL Let’s Encrypt
$ ee site create ee.linuxcanban.com --type=wp --ssl=le
- Tạo site WordPress và cài đặt SSL Let’s Encrypt Wildcard
$ ee site create example.com --type=wp --ssl=le --wildcard
- Tạo site WordPress sử dụng cache và cài đặt SSL Let’s Encrypt
ee site create ee.linuxcanban.com --type=wp --cache=wpredis --ssl=le
- Tạo website WordPress và remote database
$ ee site create ee.linuxcanban.com --type=wp --dbhost=localhost --dbuser=username --dbpass=password
Và sau đây mình sẽ thực hiện cài đặt một site WordPress sử dụng Redis cache và cài thêm SSl Let’s Encrypt
root@ee.linuxcanban.com:~# ee site create ee.linuxcanban.com --type=wp --cache=wpredis --ssl=le Configuring project. Creating WordPress site ee.linuxcanban.com Copying configuration files. Starting site's services. Downloading and configuring WordPress. Moved /var/www/htdocs/wp-config.php to /var/www/wp-config.php successfully Checking and verifying site-up status. This may take some time. Installing WordPress site. Success: https://ee.linuxcanban.com has been created successfully! Starting SSL verification. The authorization check was successful! Executing first request. Requesting first certificate for domain ee.linuxcanban.com. Certificate received Certificate stored Success: SSL verification completed. Starting site's services. Site entry created. Creating cron entry Success: Cron created successfully +--------------------+------------------------------------------+ | Site | https://ee.linuxcanban.com | +--------------------+------------------------------------------+ | Site Root | /opt/easyengine/sites/ee.linuxcanban.com | +--------------------+------------------------------------------+ | Site Title | ee.linuxcanban.com | +--------------------+------------------------------------------+ | WordPress Username | wizardly-meitner | +--------------------+------------------------------------------+ | WordPress Password | MwLHru029kRy | +--------------------+------------------------------------------+ | DB Host | global-db | +--------------------+------------------------------------------+ | DB Name | ee_linuxcanban_com | +--------------------+------------------------------------------+ | DB User | ee.linuxcanban.com-Ktj2yY | +--------------------+------------------------------------------+ | DB Password | yslr8iYv5vaD | +--------------------+------------------------------------------+ | E-Mail | admin@ee.linuxcanban.com | +--------------------+------------------------------------------+ | SSL | Enabled | +--------------------+------------------------------------------+ | SSL Wildcard | No | +--------------------+------------------------------------------+ | Cache | Enabled | +--------------------+------------------------------------------+ root@ee.linuxcanban.com:~#
Sau đó bạn cài luôn admin tools để quản lý một số Tools trong đó có phpMyAdmin
root@ee:~# ee admin-tools enable ee.linuxcanban.com Global auth exists on admin-tools. Use `ee auth list global` to view credentials. Installing admin-tools. This may take some time. Installing index Success: Installed index successfully. Installing phpinfo Success: Installed phpinfo successfully. Installing pma Success: Installed pma successfully. Installing pra Success: Installed pra successfully. Installing opcache Success: Installed opcache successfully. Success: admin-tools enabled for ee.linuxcanban.com site. root@ee:~# ee auth list global +------------+--------------+ | username | password | +------------+--------------+ | easyengine | tf2u14rbSM0k | +------------+--------------+ This auth is applied only on admin-tools
Link truy cập admin tools là bằng đường dẫn domain:admin-tools với user/pass khi chạy lệnh ee auth list global
Như vậy là đã hoàn tất rồi nhé, bây giờ bạn đã có thể thực hiện truy cập vào website của mình rồi. Ở các bài sau mình sẽ hướng dẫn bạn di chuyển, upload một webiste mới từ nơi khác về hoặc từ local lên trên ee.
ad lên bài hướng dẫn tạo tài khoản ftp cho server dùng easyengine đi ạ