Bitnami WordPress permission issue: operation not permitted – solution | AWS

I started using WordPress on AWS using Bitnami stack last month and the main difference I found between WordPress normally found on Shared Hosting with WordPress on AWS running on Bitnami stack is the missing of CPanel and restrictive file permissions access. Today, I’ll discuss more on the latter issue – restrictive file permission access and how to get access to do modification to WordPress files inside the Bitnami stack.

For those who want to know my AWS journey, check it here.

Bitnami WordPress Error: operation not permitted

On typical WordPress installed on typical Shared Hosting, you get full read-write access and you can also change the file ownership easily.

bitnami permission issue operation not permitted jilaxzone.com
Bitnami WordPress: By default, everything is owned by daemon and you can’t do anything to alter/change the files

While on Bitnami WordPress, things are a little bit different. By default, all WordPress artefacts – files, plug-ins – are belongs to user: daemon and group: daemon, while on the other hand, the default user provided to you is bitnami. Hence you won’t be able to make any changes to the inside and out of the files.

There’s an easy way to change file name and / or contents in Bitnami WordPress

Remember this powerful command: sudo <command>

On the console view (via Putty or similar), do add “sudo” command in front of any commands / syntaxes you want to run.

For example: Renaming file inside Bitnami WordPress

To rename index.php to be index_backup.php.

Normally, you would type: “mv index.php index_backup.php”.

In Bitnami WordPress, type this instead: “sudo mv index.php index_backup.php”.

For example: Changing file ownership or folder permission inside Bitnami WordPress

To change html-start.php file ownership from daemon to bitnami.

Normally, you would type: “chown bitnami:daemon html-start.php”.

In Bitnami WordPress, type this instead: “sudo chown bitnami:daemon html-start.php”.

bitnami wordpress sudo command jilaxzone.com
Bitnami WordPress – fix issues with the mighty sudo command!

Now try it yourself!

Now I have shown you how to do it, it’s time to give yourself a try. Just add “sudo” in front of any command and you’ll be just fine.

In case you stuck with something and somehow it doesn’t work well for you, don’t hesitate to throw down any comments on the comment section down below. I’ll be happy to help!


For Life, Tech tips, iOS and Android Apps and Games quick review, do visit below:

https://jilaxzone.com


Hi, thanks for reading my article. Since you are here and if you find this article is good and helping you in anyway, help me to spread the words by sharing this article to your family, friends, acquaintances so the benefits do not just stop at you, they will also get the same goodness and benefit from it.

Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.