Thứ Ba, 11 tháng 10, 2016

Cài đặt Plesk trên centos

Để cài đặt Plesk trên linux centos cần đăng nhập với quyền root rồi cài với lệnh sau:

sh <(curl https://installer.plesk.com/one-click-installer || wget -O - https://installer.plesk.com/one-click-installer)

để xem lệnh bạn có thể vào http://page.plesk.com/plesk-free-download-wp để xem chci tiết hơn.

Nếu quá trình bài đặt xảy ra lỗi sau:

"Fatal error during packages installation: Test Transaction Errors: file /etc/httpd/conf.d/fcgid.conf from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64
file /usr/lib/tmpfiles.d/mod_fcgid.conf from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64
file /usr/lib64/httpd/modules/mod_fcgid.so from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64

YumTestTransactionError: Test Transaction Errors: file /etc/httpd/conf.d/fcgid.conf from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64
file /usr/lib/tmpfiles.d/mod_fcgid.conf from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64
file /usr/lib64/httpd/modules/mod_fcgid.so from install of psa-mod_fcgid-2.3.9.1-centos7.14080113.x86_64 conflicts with file from package mod_fcgid-2.3.9-4.el7.x86_64


ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please, contact product technical support."

Hãy chạy lệnh sau:

# rpm -e --test mod_fcgid

Nếu không được thì hãy chạy lệnh sau:

# rpm -e mod_fcgid

Sau đó hãy chạy lại lệnh cài đặt Plesk ban đầu.

Sau khi cài xong dùng lệnh sau để kiểm tra xem plesk đã chạy chưa:

# /etc/init.d/psa status

sw-cp-serverd (pid 1192) is running...

Nếu thấy Plesk đang tắt thì dùng lệnh sau để start

# service psa start

Muốn kiểm tra password của plesk admin, hãy chạy lệnh sau:


# plesk bin admin --show-password
hay

# /usr/local/psa/bin/admin --show-password

Sau khi cài xong check plesk running bạn vào: https://ip_cuaban:8443 nếu chạy được tức là đã OK
Nếu chưa chạy được thì bạn kiểm tra có thể firewall chặn. Bạn thử tắt firewall đi với lệnh

Disable Firewalld

systemctl disable firewalld

Stop Firewalld

systemctl stop firewalld

Check the Status of Firewalld

systemctl status firewalld

Enable Firewalld

systemctl enable firewalld

Start Firewalld

systemctl start firewalld

Check the Status of Firewalld

systemctl status firewalld

Nếu do Firewalld chặn thì hãy sử dụng lệnh để mở port 8443 lên.

Không có nhận xét nào:

Đăng nhận xét