admin管理员组文章数量:1335386
I just received a backup of my WP site from the developer that includes the WP files and the database .sql file. I'm trying to install it on my server, but my WP build is ignoring wp-config.php
. When I access domain/wp-admin
I get Internal Server Error
:
Steps I've taken:
- I uploaded the ZIP file with all WP files to the server and unzipped. Everything is now on the server, including
/wp-admin
,/wp-content
,/wp-includes
and so on... - I created a new database with names that match the DB_NAME and DB_USER from
wp-config.php
below (except for the prefix). - I uploaded the
.sql
file to the new database. Database is now populated. - I updated
wp-config.php
so the database fields match my database. I had to update the prefixxxxx
because it has to start with my hosting service's username. I kept the rest the same, including the password.
define( 'DB_NAME', 'xxxx_dbname' ); // Only updated prefix xxxx
define( 'DB_USER', 'xxxx_dbuser' ); // Only updated prefix xxxx
define( 'DB_PASSWORD', '[userPassword]' ); // I set the DB user password to match this one
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
$table_prefix = 'gw48ep_'; // This matches all tables on DB
I also reset all the 'AUTH_KEY's and salts to 'put your unique phrase here'
.
When I visit my site, the content displays fine. But when I visit domain/wp-admin
or /wp-login.php
, I get:
Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.`
I tried deleting wp-config.php
and it doesn't change anything. It's like this file isn't being read by my WP installation. I also tried enabling debugging with
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
but my error_log
file only shows old logs from two weeks ago.
What step am I missing? It's like my wp-config.php
isn't even being read at all! Nothing I change on it makes any difference.
本文标签: wp adminwpconfigphp not affecting my site
版权声明:本文标题:wp admin - wp-config.php not affecting my site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742389601a2465722.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论