Print
Wordpress on servers running mod_php may occasionally want to use FTP for uploads, which is the most secure option.
To avoid having to enter the details every time, you can add them to wp-config.php.
We recommend that you create a new FTP user for this purpose rather than using the main one, which also has access to the control panel.
Add the following to wp-config.php (replace the values with your own details):
define('FS_METHOD', 'ftpext');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'localhost');
The FTP user should have access only to the public_html folder.
Related Articles
Self-Hosted Help Desk Software by
SupportPal