宝塔面板添加wordpress问题记录

Jiafeng

分类: 解决问题 401 0

一、安装准备

    server {
        listen 3002;
        server_name serverName;
        root  /www/wwwroot/http/;

        location / {
            index index.php index.html index.htm;
            try_files $uri $uri/ /index.php?q=$uri&$args;
        }

        location ~ .php$ {
            root           /www/wwwroot/http/;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
  • 修改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问题记录”

Loading...