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.
Leave a Reply
You must be logged in to post a comment.
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.
You must be logged in to post a comment.
You can save this information on your wp-config.php file:
More info (WordPress Developer Resources)
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).