ravagingbacon
ravagingbacon

Reputation: 67

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:

W3 total cache error

Upvotes: 4

Views: 15184

Answers (2)

melwinpintoe
melwinpintoe

Reputation: 414

To enable it, please enter the following commands:

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

Good luck

Upvotes: 22

Biswajit Mohanty
Biswajit Mohanty

Reputation: 413

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

Upvotes: -2

Related Questions