iNasser
By:
iNasser

I can't access the files with a direct link

May 19, 2015 695 views
WordPress CentOS

Hello,

I uploaded my files to the server, but after the upload I can't access the files with a direct link. For example
http://dev.kfmc-nm.com/public_html/wp-content/SWF/Acute_GIT_Bleed_Scan/index.php
http://dev.kfmc-nm.com/public_html/wp-content/PDF/Bone/BONE_SCINTIGRAPHY_E.pdf

and also on the main domain
http://kfmc-nm.com/public_html/wp-content/SWF/Acute_GIT_Bleed_Scan/index.php
http://kfmc-nm.com/public_html/wp-content/PDF/Bone/BONE_SCINTIGRAPHY_E.pdf

This is the how the file system is looking.
http://oi60.tinypic.com/15zfg4y.jpg

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.