宝塔面板添加wordpress问题记录

Jiafeng

分类: 解决问题 0 0

一、安装准备

  1. server {
  2. listen 3002;
  3. server_name serverName;
  4. root /www/wwwroot/http/;
  5. location / {
  6. index index.php index.html index.htm;
  7. try_files $uri $uri/ /index.php?q=$uri&$args;
  8. }
  9. location ~ .php$ {
  10. root /www/wwwroot/http/;
  11. fastcgi_pass 127.0.0.1:9000;
  12. fastcgi_index index.php;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. include fastcgi_params;
  15. }
  16. }
  • 修改php-fpm配置文件,切换到服务器根目录,然后可以通过find / -name "php-fpm.conf"查询配置文件

    修改框起来的部分内容
  1. 访问数据库管理提示405
    解决方法:
    php和phpMyAdmin版本不对应导致的,我们只要把现有的phpMyAdmin卸载掉,再重新安装一个符合要求的版本即可。
    最终测试正常版本 php:v.7.4,phpMyAdmin:v.4.9
  • 1人 Love
  • 0人 Haha
  • 0人 Wow
  • 0人 Sad
  • 0人 Angry
wordPress、宝塔面板

作者简介: Jiafeng

共 0 条评论关于 “宝塔面板添加wordpress问题记录”

发表评论

昵称、邮箱为必填项,电子邮件地址不会被公开