I am new to Azure cloud and trying to install wordpress on sub-directory on azure aks cluster with azure file share for persistent volume. I have try different approach but I am not able to resolve the file/folder permission and ownership.
I believe Azure file share doesn't allow to change dir/file permission after mount thus they need to be mentioned on mountOptions:
I also tried the default storage type where the files and folder shows as www-data ownership and write permission but still the site health info shows "plugins not writable". Running the same docker image with latest tag, the plugins and themes directory are fine and I am able to install plugins as well. I am not sure what I am missing and any help or guidance is really appreciated.
Option 1 > azure file share that mount dir/files with root permissions
Option 2 > default azure csi storage, that adds right permission but still plugins and themes are not writable
Option 3 > running docker locally is all good
I am trying my luck on both side, if i can get any answer.
I think i figure out the casue, I remove the define('WP_CONTENT_DIR', '/var/www/html/blog/'); from config vars and I am able to access wordpress on sub-directory as expected.
Hello All,
I am new to Azure cloud and trying to install wordpress on sub-directory on azure aks cluster with azure file share for persistent volume. I have try different approach but I am not able to resolve the file/folder permission and ownership.
I believe Azure file share doesn't allow to change dir/file permission after mount thus they need to be mentioned on mountOptions: I also tried the default storage type where the files and folder shows as www-data ownership and write permission but still the site health info shows "plugins not writable". Running the same docker image with latest tag, the plugins and themes directory are fine and I am able to install plugins as well. I am not sure what I am missing and any help or guidance is really appreciated.
I am trying my luck on both side, if i can get any answer.
For wordpress doc > https://learn.microsoft.com/en-us/azure/mysql/flexible-server/tutorial-deploy-wordpress-on-aks For azure file share doc > https://learn.microsoft.com/en-us/azure/aks/azure-csi-files-storage-provision#mount-options
Site health info, that shows plugins and themes are not writable.
While accessing site, it returns below error, and themes are actually present in the directory, but I am able to access wp-admin/* without any issues.
installation dir permissions are good tho plugins and themes are not writable.
Manifest file: