I have created a local WordPress 4.9.8 setup with PHP 7 inside a Fedora running machine. When I try to upload media into the WordPress admin, it keeps saying that
The uploaded file could not be moved to wp-content/uploads/
I have given full(777) file permission for content/uploads directory but still, I get the same error.
Finally, I tried to create the directory structure manually and place the media file by myself as follows
What may be the reason?