Hi,
Can anyone help with this.
I am using centOS on a small droplet with a couple of Wordpress installs, I have SSH Keys set up however I don’t want to use FTP to allow Wordpress access to auto updates and plugin installs.
There must be a solution for this but I cannot find anything really useful on the net. Any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You have two options to bypass FTP.
1. First one is using Direct write to wp-content directory
This method doesn’t require FRP or SSH, it directly writes to wp-content directory. You must ensure before using this method that you does have sufficient permissions to write to wp-content. Usually you would go with setting ownership to regular user (e.g.
sammy
) and group toapache
(apache
is CentOS equivalent to Ubuntu’swww-data
).This is done by following command:
After you make sure it is setup correctly you will have to change
wp-config.php
. Find FS_METHOD and change its value todirect
. It should look like ->define('FS_METHOD', 'direct);
2. First one is using SSH/SFTP write to wp-content directory
There is How To Configure Secure Updates and Installations in WordPress on Ubuntu by DigitalOcean. It is for older version but it still should do its job. Keep in mind if you are using php7 to use equivalent packages for it.