Solve Create Directory Wordpress Upload Error

TDhendup
0

 

How to resolve the Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server in WordPress

A.    Through the wordpress admin dashboard.

1.      Login to your wordpress admin panel (localhost/wp-admin/). Make changes to the media storage to wp-contents/uploads as shown in the following images

 

2.     Once you are done, try to upload files to the media library again.

(if this does not work) follow step B.

B.    If you can’t find the field proposed in step A, do the following

1.      Check your wp-config.php file

2.     Define/write the following

Define ( ‘UPLOADS’, ‘wp-content/uploads’ );

Just before the following line

Require_once (ABSPATH . ‘wp-settings.php’);

3.     The error should be solved

C.    Or in case, if you are having issues with the wordpress installed in your localhost/xampp, please run the following command from you terminal Applications=>Utilities=>Terminal

sudo chown -R nobody:staff /Applications/XAMPP/xamppfiles/htdocs/wordpress

D.    If all the remedies list above fail, use the following command from your mac terminal.

sudo chmod -R 777 /Applications/XAMPP/xamppfiles/htdocs/wordpress

NOTE: This is a dangerous command which will expose ‘read/write/execute’ by every users of your computer. However, while uploading to the public domain, please ensure that the permissions are ‘reverted’ back.

Tags:

Post a Comment

0Comments

Will review your comment and get back!

Post a Comment (0)