# sudo chown wordpress-user:# sudo cp -R /var/lib/wordpress/wp-content /etc/wordpress//Īnd updated the configuration file define('WP_CONTENT_DIR', '/etc/wordpress//wp-content') You can specify a specific location for the « wp_content » folder like this:ĭefine('WP_CONTENT_DIR', '
If like me you installed WordPress using the package and so the command « sudo apt-get install wordpress », most probably all the WordPress’s files are owned by the root user. When you are prompted for the passphrase just press enter to let it empty. You can choose the name and location of the key but if you accept the default, it will create:
Let’s create the keys with ssh-keygen ssh-keygen -t rsa -b 4096 Log in as the « w ordpress-user » we just created sudo su - w ordpress-user To avoid to have to provide the credentials of the user we just created, we are going to create the SSH key.