소프트웨어/Wordpress

Installing Theme시 ftp 정보 채우기

개발자_이훈규 2015. 7. 24. 11:37



이 화면과 대면하였다면, 아래 명령어를 쓴 기억이 있는지 확인해보자.

아래 명령어를 서버에서 실행시켜놔야 ftp가 작동한다.


pae$ cd /var/ww
pae$ sudo chown -R www-data:www-data wordpress


한번 접속시킨 후에 아예 파일에 ftp detail 정보를 넣어두자.


you can always just put your FTP credentials directly in wp-config.php like this:

define( 'FTP_USER', 'username' );
define( 'FTP_PASS', 'password' );
define( 'FTP_HOST', 'ftp.example.org:21' );


이제 끝~!


4일 후,
끝인 줄 알았는데 몇가지 더 설정해줘야한다.
define( 'FS_METHOD', 'direct' );    
define( 'FTP_SSL', false );

이것까지 하면 자동을 된다.






참고)

ubuntu에서 ftp user확인하기


$ cd /etc

$ cat /etc/ftpusers



ref )https://wordpress.org/support/topic/plugin-install-asks-for-ftp-details