You don't have permission to access /marcon/assets/images/pic.jpg in apache php -


i getting error don't have permission access /marcon/assets/images/pic.jpg in apache php on local fedora 17, php,mysql , apache(not xampp installation). error occuring new files copying directory.the older files /marcon/assets/images/header.jpg accessible fine. checked permissions , 777 (now) still doesn't work. wierd error. subdirectory , other images work fine. newer files don't work

this happens when embed image when access directly. works other files in directory. not newer ones

edit: ironically problem doesn't occur if check files github , clone project again. works hunky dory.

it selinux issue:

try

$ ls -z file1 

you should similar to:

drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 scripts 

if no try:

chcon -r -t httpd_sys_content_t  /marcon/assets/images 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -