部署wordpress和phpMyAdmin常見問題及解決方法
阿新 • • 發佈:2018-11-15
部署wordpress和phpMyAdmin常見問題及解決方法
(一) wordpress常見問題:
建立資料庫連線時錯誤
解決:
1. MySQL服務所在的主機防火牆存在干擾;
關閉防火牆即可:
[[email protected] ~]# iptables -F
2. apache服務或nginx服務所在的主機selinux存在干擾;
關閉selinux即可:
[[email protected] ~]# setenforce 0
3. MySQL服務沒有開啟;
開啟MySQL服務即可:
[[email protected] ~]# systemctl start mariadb (CentOS 7) [[email protected]~]# service mysqld start
(二) phpMyAmin常見問題:
解決:
[[email protected] ~]# cd /var/lib/php [[email protected] php]# mkdir session [[email protected] php]# chown root:apache session/ [[email protected] php]# chmod 770 session/