Hướng dẫn cài đặt ssl certbot trên Centos 7 và cấu hình WordPress

Hướng dẫn cài đặt ssl certbot trên Centos 7 và cấu hình wordpress

Bước 1: SSH vào máy chủ

Điều cơ bản để cài đạt lúc nào bạn cũng phải cần SSH vào máy chủ, nếu bạn chưa biết cách để SSH  thì có thể search trên google

Bước 2: cài đặt dịch vụ apache lên máy chủ

#yum install httpd

Bước 3: Bật dịch vụ và kích hoạt khởi động cùng hệ thống

    # systemctl start httpd

  # systemctl enable httpd

Bước 4: Mở firewall cho dịch vụ

            #firewall-cmd –permanent –zone=public –add-service=http

            #firewall-cmd –permanent –zone=public –add-service=https

            #firewall-cmd –reload

Bước 5: Kiểm tra xem dịch vụ đã chạy trên website chưa

Bước 6: Tạo thư mục chứa website và tạo file index để test trên web

Bước 7: Cấp quyền để cho thư mục

# chown -R apache:apache /var/www/sang.thuevps.com.vn

Bước 8: Tạo file VirtualHost

Di chuyển đến thư mục /etc/httpd/conf.d/ sau đó dùng lệnh touch để tạo file

Viết cấu hình trong file VirtualHost

  <VirtualHost *:80>

    ServerName sang.thuevps.com.vn

    ServerAlias www.sang.thuevps.com.vn

    ServerAdmin [email protected]

    DocumentRoot /var/www/sang.thuevps.com.vn

     <Directory /var/www/sang.thuevps.com.vn>

        Options -Indexes +FollowSymLinks

        AllowOverride All

     </Directory> 

    ErrorLog /var/log/httpd/sang.thuevps.com.vn-error.log

    CustomLog /var/log/httpd/sang.thuevps.com.vn-access.log combined

</VirtualHost>

Bước 9: Khởi động lại dịch vụ web  và kiểm tra web trên internet

  # systemctl restart httpd

Bước 10: Tiếp theo là tải gói  ssl certbot

           # yum install epel-release

            # yum install certbot certbot-apache mod_ssl -y

Bước 11: Tiến hành cấu hình ssl

   # certbot –apache -d sang.thuevps.com.vn

ở phần này các bạn chỉ cần điền email và chọn yes

Bước 12:Kiểm tra lại trang web đã được thêm lên web

Bước 13: Cài đặt các gói hỗ trợ wordpress

# yum install php php-common php-mbstring php-gd php-intl php-xml php-json php-mysqlnd php-fpm wget mariadb-server  -y

Bước 14: Khởi động và kích hoạt dịch vụ database mariadb

            # systemctl start mariadb

            # systemctl enable mariadb

Bước 15: cài đặt database và tạo database cho trang web

# mysql_secure_installation

Chọn yes và điền mật khẩu mới sau đó tiếp tục yes

Bước 16: Tạo database và user database

>create database sangwordpress;

            >create user ‘admin’@’localhost’ identified by ‘pass’;

            >grant all privileges on sangwordpress.* to ‘admin’@’localhost’;

            >flush privileges ;

            >exit

Bước 17: Tải bản mới nhất wordpress về và đẩy lên web

  # wget https://wordpress.org/latest.tar.gz

            # tar -zxvf latest.tar.gz

            # cp -r wordpress/* /var/www/sang.thuevps.com.vn

Tạo file wp-config.php bằng cách :

# cp wp-config-sample.php wp-config.php

Khai báo thông tin database vào file wp-config.php

Bước 18: Khởi động lại dịch vụ và cấp quyền cho web

     # systemctl restart php-fpm

            # chown -R apache:apache /var/www/sang.thuevps.com.vn/

            # systemctl restart httpd

Bước 19: Cấu hình wordpress trên website

Bước 20: Đăng nhập vào wordpress bằng tài khoản vừa tạo

Chúc các bạn thành công !

Nếu trong quá trình thực hiện xảy ra lỗi hay sự cố gì, các bạn có thể liên hệ bộ phận kỹ thuật để được giúp đỡ. Hiện tại BKHOST có các cách liên hệ như sau:
• Liên hệ qua số tổng đài 024 7303 8088, sau đó ấn phím 2 để gặp BPKT.
• Gửi ticket thông qua trang web manage.bkhost.vn.
• Live chat trực tiếp trên trang chủ bkhost.vn.
• Hỗ trợ từ xa thông qua TeamView hoặc Ultraview.

superbetin güncel giriş superbetin giriş superbetin Onay kodu Sanal numara Mobil onay SMS onay superbetin güncel giriş superbetin giriş superbetin superbetin superbetin güncel giriş superbetin giriş superbetin superbetin superbetin güncel giriş superbetin giriş superbetin superbetin perabet güncel giriş perabet giriş perabet perabet perabet güncel giriş perabet giriş perabet perabet betsat güncel giriş betsat giriş betsat betsat xslot güncel giriş xslot giriş xslot xslot cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet grandpashabet güncel giriş grandpashabet giriş grandpashabet grandpashabet güncel giriş grandpashabet giriş grandpashabet grandpashabet güncel giriş grandpashabet giriş grandpashabet grandpashabet güncel giriş grandpashabet giriş grandpashabet wbahis güncel giriş wbahis giriş wbahis wbahis wbahis güncel giriş wbahis giriş wbahis wbahis robinbet güncel giriş robinbet giriş robinbet robinbet robinbet güncel giriş robinbet giriş robinbet robinbet robinbet güncel giriş robinbet giriş robinbet robinbet timebet güncel giriş timebet giriş timebet timebet betsilin güncel giriş betsilin giriş betsilin betsilin betsilin güncel giriş betsilin giriş betsilin betsilin avrupabet güncel giriş avrupabet giriş avrupabet avrupabet avrupabet güncel giriş avrupabet giriş avrupabet avrupabet betpas güncel giriş betpas giriş betpas betpas betpas güncel giriş betpas giriş betpas betpas casinoroys güncel giriş casinoroys giriş casinoroys casinoroys casinoroys güncel giriş casinoroys giriş casinoroys casinoroys parmabet güncel giriş parmabet giriş parmabet parmabet parmabet güncel giriş parmabet giriş parmabet parmabet süratbet güncel giriş süratbet giriş süratbet süratbet süratbet güncel giriş süratbet giriş süratbet süratbet galyabet güncel giriş galyabet giriş galyabet galyabet galyabet güncel giriş galyabet giriş galyabet galyabet betwoon güncel giriş betwoon giriş betwoon betwoon betwoon güncel giriş betwoon giriş betwoon betwoon norabahis güncel giriş norabahis giriş norabahis norabahis norabahis güncel giriş norabahis giriş norabahis norabahis timebet güncel giriş timebet giriş timebet timebet timebet güncel giriş timebet giriş timebet timebet robinbet güncel giriş robinbet giriş robinbet robinbet robinbet güncel giriş robinbet giriş robinbet robinbet jojobet güncel giriş jojobet giriş jojobet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet betcio güncel giriş betcio giriş betcio betcio güncel giriş betcio giriş betcio cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet bahislion güncel giriş bahislion giriş bahislion jojobet güncel giriş jojobet giriş jojobet jojobet güncel giriş jojobet giriş jojobet betcio güncel giriş betcio giriş betcio betcio güncel giriş betcio giriş betcio cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet cratosroyalbet güncel giriş cratosroyalbet giriş cratosroyalbet cratosroyalbet grandpashabet güncel giriş grandpashabet giriş