Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added sample code for wp-content

...

DirectoryPurposeAccessTech Notes
/wp-content/plugins/Plugins are dropped in here.Administrator and developers.

The plugin can be installed through WordPress Administration two ways,

  1. Via FTP and FTPS (whatever that is) Login Prompt (not sure how this works).
  2. Upload into WordPress zip file.

Option 2 does not work out of the box unless the owner of the directory is www-data. me, but I suspect it is due to having set in php open_basedir which does not have a writable temporary folder. This can be resolved by specifying upload_tmp_dir which must reside in open_basedir and also where www-data has rwx access.

 

To setup these permissions with ACLs as the staff user,

Code Block
languagebash
cd /opt/www.dailyplanet.com/www/blog
sudo setfacl -Rm g:www-date:rwX ./wp-content/
getfacl --access ./wp-content/ | sudo setfacl -d -RM - ./wp-content/

... still being worked on...

Configure WordPress

Create Config File for Database Access

...