刚刚上传了个wordpress,打算安装的时候发现输入网址提示500错误,代码如下 500 – Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed.,刚开始我以为路径错了,检查下ftp和权限都没有问题,输入网址+readme.txt显示正常,不废话了,直接说解决方法。

第一步:在Wordpress根目录下找到“wp-config-sample.php”这个文件;

第二步:复制一个然后重命名为“wp-config.php”;

第三步:分别找到以下代码;

//database_name_here改为你的数据库名

define(‘DB_NAME’, ‘database_name_here’);

//username_here改为你管理数据库的用户名

define(‘DB_USER’, ‘username_here’);

//password_here改为你管理数据库的密码

define(‘DB_PASSWORD’, ‘password_here’);

//localhost改为你数据库所在服务器地址(用Godaddy主机一定要改的~!可以在数据库管理那里找到这个地址)

define(‘DB_HOST’, ‘localhost’);

解决完毕!

豫ICP备11029947号