I can't access the files with a direct link

May 19, 2015 1.2k views
WordPress CentOS


I uploaded my files to the server, but after the upload I can’t access the files with a direct link. For example

and also on the main domain

This is the how the file system is looking.

I am not sure why I can’t access the files.

1 Answer

Without more information about what error you are seeing it is difficult to tell you what the underlying issue is. Based on what you’ve provided, the first thing I would do is to check the permissions on the files you uploaded. If you were using SFTP as the root user you may need to change the ownership to the Apache user (nobody).

chown -Rf nobody:nobody /path/to/your/files
Have another answer? Share your knowledge.