Amazon Ec2 - How to Make Wp-Config. Php to Writable?

I'm using Amazon EC2 with Bitnami wordpress.

I recently tried to use plugins, they install and activate well, but there are still errors. Those errors look like permission errors.

Also, perhaps, how to make the whole wordpress directory writable? I'm only accessing through SSH.

Some of the errors:

"A definition of a siteurl or homeurl was detected in your wp-config.php, but the file is not writable.

Set your wp-config.php to writable and reload this page."

From W3 total Cache:

3

2 Answers

The enable it please follow the following Code

sudo chmod 664 /opt/bitnami/apps/wordpress/htdocs/wp-config.php
sudo /opt/bitnami/ctlscript.sh restart apache

Good luck

3

Your FTP user doesn't have write permission to the folder.

you can add this line to your wp-config.php

define('FS_METHOD','direct');

assign wordpress folder bitnami:daemon and assign 775 permission

sudo chown -R bitnami:daemon wordpressfolder
sudo chmod -R 775 wordpressfolder

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest