WordPress, one of the most popoular blog scripts available today, is constantly being updated by its developers to both add more features and to make the script more secure. As we do with most scripts, we highly recommend our customers upgrade their WordPress blogs immediately as soon as new versions are released.
We freqently receive support tickets from clients inquiring as to whether it would be possible for them to save their FTP login information in WordPress so that all it is easy to upgrade their script when a new version comes out. Guess what – there is a way to do this!
It’s nothing complicated, all you need to do is locate your wp-config.php file which is located within the first directory of your wordpress installation. For example if your whole website runs off WordPress your wp-config.php file will be located within the public_html folder. If you have set up your wordpress installation within a sub directory such as blog so you URL is www.mywebsite/blog/ then the wp-config.php will be within the first level of that directory. Once you’ve located the wp-config.php file, open it up in some form of text editor. You can use the file manager in your cPanel control panel or your FTP software – both will work fine!
Now once you’ve got your wp-config.php file open, scroll down to the bottom of the wp-config.php file until you see ?> This represents the closing tag of a PHP script. We are going to be adding a couple of lines just before the closing tag. Make sure it’s before and not after the closing tag otherwise it won’t work. Add the following just before the end PHP tag:
1 |
/* WordPress FTP Information (For removing the constant password request on plugin install and removal) */ |
2 |
|
3 |
define("FTP_HOST", "ftp.mywebsite.com"); |
4 |
define("FTP_USER", "username"); |
5 |
define("FTP_PASS", "mypassword"); |
You will need to change the example data to your settings. By default, your FTP hostname is simply “ftp.yourdomain.tld”. For the username and password, you can use your cPanel login information. Alternatively, you can create a new FTP account to use in the “FTP Accounts” section of your control panel. Please note that if you enter in invalid FTP login credentials, this will not work.
Save your changes to your wp-config.php file and thats it! You will now be able to easily upgrade your WordPress with the click of a button!
In today’s society, online hackers pose a huge risk to webmasters, companies, and government agencies alike. While often times server security is your hosting provider’s or IT department’s responsibility, there are several actions that you can take to help ensure that your website and other accounts are safe.