Created
June 20, 2016 14:01
-
-
Save SErr0r/e674a0878985895935b474d66940550f to your computer and use it in GitHub Desktop.
Add FTP settings to wp-config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* FTP Settings | |
*/ | |
//define('FS_METHOD', 'ftpext'); | |
//define('FTP_BASE', '/path/to/wordpress/'); | |
//define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/'); | |
//define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/'); | |
//define('FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub'); | |
//define('FTP_PRIKEY', '/home/username/.ssh/id_rsa'); | |
define('FTP_USER', 'username'); | |
define('FTP_PASS', 'password'); | |
define('FTP_HOST', 'ftp.example.com'); | |
define('FTP_SSL', false); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Helps to overcome crappy Windows server permissions or other instances when WordPress can't update/install/delete files. First 6 lines are not needed but included to show full feature set.