Cloud/Google Cloud
(구글클라우드 플랫폼) Wordpress error - Unable to locate WordPress Content directory (wp-content)
kjun.kr
2017. 9. 8. 01:17
728x90
테마를 새로 받기 위해 ftp 설정을 마치고..
Proceed 하니 아래처럼 에러가 발생된다.
Unable to locate WordPress Content directory (wp-content).
에러는 wp-config.php 파일의 마지막 부분에
아래 내용을 넣으면 해결된다.
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}
centos 에서 wp-config.php 파일은 :/usr/share/wordpress 경로에 있다. 해당 경로에서 편집하면 된다.
junijuniya@centos-kjun:/usr/share/wordpress$ sudo nano wp-config.php
728x90