Wordpress Site on AWS Lightsail LAMP instance is up HOWEVER, media upload attempts are met with "Unable to create directory wp-content/... Is its parent directory writable by the server?" How to fix??

0

I have tried several different fix attempts, including changing directory and file permissions, and hard coding the path to the uploads directory. No dice.

Background: I performed a Wordpress 6.5.5. installation which included a custom template. The site is up and running at 34n.us however I can't upload images through the wordpress media library or add plugins UNLESS I use ftp.

NOTE: I did not use the preinstalled amazon wordpress instance, but rather a fresh install on a LAMP Linux Lightsail instance.

Help.

PS A similar question was asked a year ago and it was abandoned.

asked 7 months ago108 views
1 Answer
0

Hello.

Will an error occur if I change the permission settings including under the "wp-content" directory as shown below?

chmod -R 775 wp-content

Also, has the destination directory for images been created in advance?
You can set the directory where images are saved from the WordPress screen, but please check if the directory exists.
https://wordpress.org/support/topic/how-can-i-check-where-wordpress-media-directory-is-set-to-upload-files/

profile picture
EXPERT
answered 7 months ago
  • Thank you for your reply! Yes, I tried changing the permission setting to 775 and still not working. Same error message.

    The files currently in the media library are here: wp-content/uploads/yootheme

    Here are the settings under Tools/.../Info:

    WordPress directory location /opt/bitnami/apache/htdocs WordPress directory size 55.18 MB Uploads directory location /opt/bitnami/apache/htdocs/wp-content/uploads Uploads directory size 238.60 MB

  • Does a directory called "wp-content/uploads" exist as described in the blog below? https://wp-me.com/fix-unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server/

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions