Hướng dẫn cài đặt wordpress trên server Openlitespeed
Để cấu hình server Openlitespeed như thế nào bạn vào link sau :
https://nguyenhuuhoang.com/huong-dan-cai-dat-litespeed-server-tren-centos-6-x/
Source :
wordpress 4.x
Mục lục:
Hướng dẫn cài đặt :
Bước 1: SSH vào server và download source code wordpress
1 2 3 4 5 |
cd /usr/local/lsws/DEFAULT/html wget http://wordpress.org/latest.zip unzip latest.zip chown -R nobody. wordpress |
Bước 2: Cấu hình vitual host cho source code vừa download về
WebAdmin Console > Configuration > Virtual Hosts > Example > Rewrite
Bước 3: Cấu hình Mysql cho website
Login vào ssh:
1 2 |
mysql -u root -p123456 create database wordpress;grant usage on *.* to wordpress@localhost identified by '123456';grant all privileges on wordpress.* to wordpress@localhost; |
Bước 4: Cấu hình cho webserver ưu tiên chạy file index.php
Configuration > Virtual Hosts chọn View/Edit -> tại mục Example Virtual Host -> chọn General.
# Tại mục : “Index Files”.
# Thay đổi index.html thành index.php
1 |
/etc/init.d/lsws restart && service mysql restart |
Bước 5: Cấu hình chạy wordpress
http://[Nhập IP]/wordpress/
Bước 6: Sau khi cài đặt xong thì kiểm tra xêm website có hoạt động hay không
http://[Nhập IP]