Skip to content

Instantly share code, notes, and snippets.

@SErr0r
Created June 20, 2016 14:01
Show Gist options
  • Save SErr0r/e674a0878985895935b474d66940550f to your computer and use it in GitHub Desktop.
Save SErr0r/e674a0878985895935b474d66940550f to your computer and use it in GitHub Desktop.
Add FTP settings to wp-config
<?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);
?>
@SErr0r
Copy link
Author

SErr0r commented Jun 20, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment