FIX CÁC LỖI WORDPRESS TRÊN CENTOS 7
- Tuan Nguyen
- Jul 20, 2018
- 1 min read

1. Cài themes hay plugins yêu cầu hostname, ftp username, ftp password

Nếu bạn không cài FTP thì xử lý bằng cách vào file config của wordpress (wp-config.php) thêm dòng sau:
# vi /usr/share/nginx/locateyourwordpress/wp-config.php
define('FS_METHOD','direct');
2. Installation failed: Could not create directory khi cài themes, plugins, tools

Tắt SElinux.
# vi /etc/selinux/config
Chỉnh dòng sau thành:
SELINUX=disabled
# systemctl reboot
Phân quyền
# chown -R nginx:nginx /usr/share/nginx/locateyourwordpress
# chmod -R 755 /usr/share/nginx/locateyourwordpress
Commentaires