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 US 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 1 165 02-06-2019, 08:20 PM
Last Post: Kingsolomon
  WOW How to Change WordPress Theme via phpMyAdmin khodex 2 180 01-18-2019, 07:36 AM
Last Post: olades
  TIPS How To Allow Automatic Database Repair In Wordpress khodex 2 163 01-16-2019, 07:42 PM
Last Post: pola
  HOW TO How to Fix Too Many Redirects Errors After Moving to SSL / HTTPS khodex 1 139 01-09-2019, 07:56 AM
Last Post: Kingsolomon
  HOW TO How to Exclude a Category From Your WordPress Homepage khodex 1 152 01-09-2019, 07:55 AM
Last Post: Kingsolomon

Forum Jump:


Users browsing this thread:
1 Guest(s)

Adding FTP/SSH Constants to WordPress Configuration00