Home 워드프레스 워드프레스 HTTP ERROR 500 오류

워드프레스 HTTP ERROR 500 오류

by maxblog
0 comment

HTTP ERROR 500 오류가 나오며 접속되지 않는 경우가 있다.
원인은 매우 다양하다..

이런 오류를 접해서 많이 고쳐봤지만 정말 시크릿 오류가 있었다.

Nginx 서버에서 DNS 잘 세팅되어있고 폴더 파일권한 모두가 완벽하게 잘 세팅 되어있었는데
계속 HTTP ERROR 500 오류가 나온다.

폴더를 다시 올려도 보고 서버를 재부팅해보고 DB를 다시 세팅해보고 많은 반복을 한후 찾아내었다.

/var/log/nginx/error.log

위와 같이 Nginx 서버인 경우 nginx 로그를 확인하면 좀더 쉬워지므로 참고한다.

워드프레스 루트 폴더에 wordfence-waf.php 파일이 생겼는데
보안 최고의 플러그인인 workdfence 연동된 파일이다.

<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.

if (file_exists(__DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php')) {
	define("WFWAF_LOG_PATH", __DIR__.'/wp-content/wflogs/');
	include_once __DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php';
}

wordfence-waf.php 파일을 열면 위와 같은 소스들이 있는데
여기에 기존 서버 주소가 남아있는 것이었다..

도메인, Nginx 서버, DB, 권한 모두 세팅하고도 안된다면 이런 부분도 참고바란다.
기존 서버 주소들을 지우고 올렸더니 한방에 잘 되었다.

banner

좋아할만한 추천 글

Leave a Comment

Soledad is the Best Newspaper and Magazine WordPress Theme with tons of options and demos ready to import. This theme is perfect for blogs and excellent for online stores, news, magazine or review sites.

Buy Soledad now!

Edtior's Picks

Latest Articles

ⓒ 2023.  FUNCOM all rights reserved.