Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hot Adding FTP/SSH Constants to WordPress Configuration
#1
By default, WordPress allows you to upgrade WordPress core, themes, and plugins from the admin dashboard. There are some hosts that require an FTP or SSH connection everytime you try to upgrade, or install a new plugin.

[Image: ftpinformation-naijakit.png]

By using the codes, you can set the FTP or SSH constants and never have to worry about it again.


PHP Code:
// forces the filesystem method: "direct", "ssh", "ftpext", or "ftpsockets"
define('FS_METHOD''ftpext');
// absolute path to root installation directory
define('FTP_BASE''/path/to/wordpress/');
// absolute path to "wp-content" directory
define('FTP_CONTENT_DIR''/path/to/wordpress/wp-content/');
// absolute path to "wp-plugins" directory
define('FTP_PLUGIN_DIR ''/path/to/wordpress/wp-content/plugins/');
// absolute path to your SSH public key
define('FTP_PUBKEY''/home/username/.ssh/id_rsa.pub');
// absolute path to your SSH private key
define('FTP_PRIVKEY''/home/username/.ssh/id_rsa');
// either your FTP or SSH username
define('FTP_USER''username');
// password for FTP_USER username
define('FTP_PASS''password');
// hostname:port combo for your SSH/FTP server
define('FTP_HOST''ftp.example.org:21'); 

Note: Don’t forget to replace the WordPress path and ftp.example.com with your own FTP Host information.
Creativity Speaks!!! , Chat Me on Messenger @DonKhodex // +2349099784140
#2
Nice  Arrow
To Purchase Credit Click here , For how to make money on Sologet forum Click here 

HIRE ME FOR WEBSITE DESIGNING USE THE PM BUTTON TO SEND ME MESSAGE

There is love in sharing
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  HOW TO How To Convert A Wordpress Theme Into A Blogger Template lagosmp 2 633 08-20-2019, 01:39 PM
Last Post: Nupe360
  6 Easy Steps On How to Write a Blog About Home Improvement Kingsolomon 0 67 08-04-2019, 06:51 AM
Last Post: Kingsolomon
  How To Use Mp3 Tag Editor Script Free Download Emvidowealth 1 66 08-02-2019, 09:25 AM
Last Post: Kingsolomon
  WOW Get approved by Google Adsense in 3-5 days Opoopo 0 337 06-13-2019, 05:02 PM
Last Post: Opoopo
  TIPS How to add voice tag in a music using your Android phone Kingsolomon 0 494 06-01-2019, 12:38 PM
Last Post: Kingsolomon

Forum Jump:


Users browsing this thread:
1 Guest(s)

Adding FTP/SSH Constants to WordPress Configuration00