Unable to create directory in wp-content/uploads i

2019-02-04 02:53发布

I am not able to upload any images to the Media section. I get this error message:

"Unable to create directory wp-content/uploads/2015/05. Is its parent directory writable by the server?"

I tried changing the permissions, gave full access 777 to both uploads, and wp-content directory but this didn't help.

I tried changing the owners to apache : apache for /wordpress/wp-content, but that hasn't helped either.

upload_path is set to wp-content/uploads in option-media.php. Still it is not working.

Tried defining upload path define(UPLOADS, 'wp-content/uploads');No Help.

(server: centos)

Someone, please help!!!

-Thanks in advance.

14条回答
太酷不给撩
2楼-- · 2019-02-04 03:39

Just run this command:

sudo chown -R www-data /path/to/wordpress

hope it helps.

查看更多
仙女界的扛把子
3楼-- · 2019-02-04 03:44

This solution worked for me:

chown -R www-data:www-data /path-to-mywordpress-root-folde
查看更多
登录 后发表回答