7

Every time I attempt to upload a plugin or theme, I am asked for the FTP password. Is there a way to save this within Wordpress, or do I have to enter it every time? Thanks.

11

You can save this information on your wp-config.php file:

define('FTP_HOST', 'ftp_host');
define('FTP_USER', 'ftp_username');
define('FTP_PASS', 'ftp_password');

More info (WordPress Codex)

0

There's a better way to do this. chown -R apache:apache /var/www/wordpress*

Saving this data as shown above into wp-config creates a bigger vulnerability because anyone with CLI access can then see the password for your ftp server as that user, and do anything they can do on the file system (unless chrooted, say).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.