Skip to content

Instantly share code, notes, and snippets.

@travisward
Created May 24, 2012 19:28
Show Gist options
  • Save travisward/2783712 to your computer and use it in GitHub Desktop.
Save travisward/2783712 to your computer and use it in GitHub Desktop.
Easy, secure updates for your WordPress MU site
define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', 0777);
define('FS_CHMOD_FILE', 0777);
define('FTP_BASE', '/var/www/vhosts/domain.com/httpdocs');
define('FTP_CONTENT_DIR', '/var/www/vhosts/domain.com/httpdocs/wp-content/');
define('FTP_PLUGIN_DIR ', '/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/');
define('FTP_PUBKEY', '/home/wp-updater/.ssh/id_rsa.pub');
define('FTP_PRIKEY', '/home/wp-updater/.ssh/id_rsa');
define('FTP_USER', 'wp-updater');
define('FTP_HOST', '255.255.255.255:22'); // your server's ip
/* That's all, stop editing! Happy blogging. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment