You are viewing an old revision of this post, from November 16, 2016 @ 00:40:21. See below for differences between this version and the current revision.

Reset the Recommended File and Directory Permission of Bitnami WordPress Website on Linux

As seen on Code Channels. You have a WordPress website provisioned from Bitnami. Sometimes you may not be able to write or edit files in the WordPress directory, create new directories or edit files in the wp-content folder. The article introduces how to reset the recommended access permission of the WordPress files and directories. 1. Reset the ownership of the files and directories The following command sets the ‘Owner’ = ‘bitnami’ and ‘Group’ = ‘daemon’ for all files and folders in WordPress. [js]sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/[/js] 2. Set the access permission 644 for all the files inside /installdir/apps/wordpress/htodcs/, and 755 for all the directories inside: [js]installdir/apps/wordpress/htdocs/ find /opt/bitnami/apps/wordpress/htdocs/ -type d -print0 | xargs -0 chmod 755 find /opt/bitnami/apps/wordpress/htdocs/ -type f -print0 | xargs -0 chmod 644[/js] 3. Overwrite the access permission of these files/folders: 750 for /installdir/apps/wordpress/htdocs/wp-config.php 775 for all the folders inside the wp-content directory /installdir/apps/wordpress/htdocs/wp-content/ 664 for all the files inside for the wp-content directory /installdir/apps/wordpress/htdocs/wp-content/ 664 for /installdir/apps/wordpress/htdocs/sitemap.xml or /installdir/apps/wordpress/htdocs/sitemap.xml.gz 750 for /installdir/apps/wordpress/htdocs [js]sudo chmod 750 /opt/bitnami/apps/wordpress/htdocs/wp-config.php find /opt/bitnami/apps/wordpress/htdocs/wp-content/ -type d -print0 | xargs -0 chmod 775 find /opt/bitnami/apps/wordpress/htdocs/wp-content/ -type f -print0 | xargs -0 chmod 664 sudo chmod 664 /opt/bitnami/apps/wordpress/htdocs/sitemap.xml sudo chmod 750 /opt/bitnami/apps/wordpress/htdocs/[/js]

Revisions

  • November 16, 2016 @ 00:40:48 [Current Revision] by PeterLugg
  • November 16, 2016 @ 00:40:48 by PeterLugg
  • November 16, 2016 @ 00:40:21 by PeterLugg

Revision Differences

November 16, 2016 @ 00:40:21Current Revision
Content
Unchanged: As seen on <a href="http:// www.codechannels.com/article/ fionabi/how-to-reset-the- recommended-file- and-directory- permission-of- bitnami-wordpress- website-on-linux/">Code Channels</a>.Unchanged: As seen on <a href="http:// www.codechannels.com/article/ fionabi/how-to-reset-the- recommended-file- and-directory- permission-of- bitnami-wordpress- website-on-linux/">Code Channels</a>.
Unchanged: You have a WordPress website provisioned from Bitnami. Sometimes you may not be able to write or edit files in the WordPress directory, create new directories or edit files in the wp-content folder. The article introduces how to reset the recommended access permission of the WordPress files and directories.Unchanged: You have a WordPress website provisioned from Bitnami. Sometimes you may not be able to write or edit files in the WordPress directory, create new directories or edit files in the wp-content folder. The article introduces how to reset the recommended access permission of the WordPress files and directories.
Unchanged: 1. Reset the ownership of the files and directoriesUnchanged: 1. Reset the ownership of the files and directories
Unchanged: The following command sets the ‘Owner’ = ‘bitnami’ and ‘Group’ = ‘daemon’ for all files and folders in WordPress.Unchanged: The following command sets the ‘Owner’ = ‘bitnami’ and ‘Group’ = ‘daemon’ for all files and folders in WordPress.
Unchanged: [js]sudo chown -R bitnami:daemon /opt/bitnami/ apps/wordpress/ htdocs/[/js]Unchanged: [js]sudo chown -R bitnami:daemon /opt/bitnami/ apps/wordpress/ htdocs/[/js]
Unchanged: 2. Set the access permission 644 for all the files inside /installdir/apps/ wordpress/htodcs/, and 755 for all the directories inside:Unchanged: 2. Set the access permission 644 for all the files inside /installdir/apps/ wordpress/htodcs/, and 755 for all the directories inside:
Unchanged: [js]installdir/ apps/wordpress/htdocs/Unchanged: [js]installdir/ apps/wordpress/htdocs/
Deleted: find /opt/bitnami/ apps/wordpress/htdocs/ -type d -print0 | xargs -0 chmod 755 Added: find /opt/bitnami/ apps/wordpress/htdocs/ -type d -print0 | xargs -0 chmod 755
Deleted: find /opt/bitnami/ apps/wordpress/htdocs/ -type f -print0 | xargs -0 chmod 644[/js] Added: find /opt/bitnami/ apps/wordpress/htdocs/ -type f -print0 | xargs -0 chmod 644[/js]
Unchanged: 3. Overwrite the access permission of these files/folders:Unchanged: 3. Overwrite the access permission of these files/folders:
Unchanged: 750 for /installdir/apps/ wordpress/htdocs/ wp-config.phpUnchanged: 750 for /installdir/apps/ wordpress/htdocs/ wp-config.php
Unchanged: 775 for all the folders inside the wp-content directory /installdir/apps/ wordpress/htdocs/wp-content/Unchanged: 775 for all the folders inside the wp-content directory /installdir/apps/ wordpress/htdocs/wp-content/
Unchanged: 664 for all the files inside for the wp-content directory /installdir/apps/ wordpress/htdocs/wp-content/Unchanged: 664 for all the files inside for the wp-content directory /installdir/apps/ wordpress/htdocs/wp-content/
Unchanged: 664 for /installdir/apps/ wordpress/htdocs/sitemap.xml or /installdir/apps/ wordpress/htdocs/ sitemap.xml.gzUnchanged: 664 for /installdir/apps/ wordpress/htdocs/sitemap.xml or /installdir/apps/ wordpress/htdocs/ sitemap.xml.gz
Unchanged: 750 for /installdir/apps/ wordpress/htdocsUnchanged: 750 for /installdir/apps/ wordpress/htdocs
Unchanged: [js]sudo chmod 750 /opt/bitnami/ apps/wordpress/ htdocs/wp-config.phpUnchanged: [js]sudo chmod 750 /opt/bitnami/ apps/wordpress/ htdocs/wp-config.php
Deleted: find /opt/bitnami/ apps/wordpress/ htdocs/wp-content/ -type d -print0 | xargs -0 chmod 775 Added: find /opt/bitnami/ apps/wordpress/ htdocs/wp-content/ -type d -print0 | xargs -0 chmod 775
Deleted: find /opt/bitnami/ apps/wordpress/ htdocs/wp-content/ -type f -print0 | xargs -0 chmod 664 Added: find /opt/bitnami/ apps/wordpress/ htdocs/wp-content/ -type f -print0 | xargs -0 chmod 664
Deleted: sudo chmod 664 /opt/bitnami/ apps/wordpress/ htdocs/sitemap.xml Added: sudo chmod 664 /opt/bitnami/ apps/wordpress/ htdocs/sitemap.xml
Deleted: sudo chmod 750 /opt/bitnami/ apps/wordpress/ htdocs/[/js] Added: sudo chmod 750 /opt/bitnami/ apps/wordpress/ htdocs/[/js]

Note: Spaces may be added to comparison text to allow better line wrapping.

Tags: ,

No comments yet.

Leave a Reply