Uploaded image / file forbidden chmod error
Permalink
For some reason I can upload files as normally, but the browser isn't allowed to show it!?
The numbered folders in the 'files' directory become chmod 700 for some reason, the 'files' folder is chmod 777.
Does anybody recognise this issue?
Thank you very much in advance!
Here's my phpinfo, maybe I missed a setting?
http://www.xplosief.nl/info.php...
(Yes, I know it's not 5.2.x, but the client's hosting won't upgrade ...)
Update
--------
Now I've changed 'file.php' line 94 in concrete/helpers/concrete :
Now all directories are set to chmod 755 except the file itself is now chmod 600 ...
Almost there!
Hmmm ... where to find the actual upload? (Or file creation?!)
Upload the file and chmod it to 755 or 777??
-----
If I hit 'properties > rescan':
Fatal error: Call to undefined function error_get_last() in /var/www/vhosts/xplosief.nl/httpdocs/concrete/tools/files/rescan.php on line 7
-----
I'll leave it for today. Cant figure it out ...
---
... and the next day! new chances! Tried the 'importer.php', but no results. Maybe I'll receive an answer tomorrow?
---
Another attempt. I'm going to check the filepermissions of an uploaded pdf. Maybe it's only the generated(!) images and thumbs.
ps. I'll also do a fresh install 5.4.0.5
The numbered folders in the 'files' directory become chmod 700 for some reason, the 'files' folder is chmod 777.
Does anybody recognise this issue?
Thank you very much in advance!
Here's my phpinfo, maybe I missed a setting?
http://www.xplosief.nl/info.php...
(Yes, I know it's not 5.2.x, but the client's hosting won't upgrade ...)
Update
--------
Now I've changed 'file.php' line 94 in concrete/helpers/concrete :
if ($createDirectories) { if (!is_dir($base . '/' . $d1)) { mkdir($base . '/' . $d1, 0777, TRUE); chmod($base . '/' . $d1, 0755); } if (!is_dir($base . '/' . $d1 . '/' . $d2)) { mkdir($base . '/' . $d1 . '/' . $d2, 0777, TRUE); chmod($base . '/' . $d1 . '/' . $d2, 0755); } if (!is_dir($base . '/' . $d1 . '/' . $d2 . '/' . $d3)) { mkdir($base . '/' . $d1 . '/' . $d2 . '/' . $d3, 0777, TRUE); chmod($base . '/' . $d1 . '/' . $d2 . '/' . $d3, 0755); } }
Now all directories are set to chmod 755 except the file itself is now chmod 600 ...
Almost there!
Hmmm ... where to find the actual upload? (Or file creation?!)
Upload the file and chmod it to 755 or 777??
-----
If I hit 'properties > rescan':
Fatal error: Call to undefined function error_get_last() in /var/www/vhosts/xplosief.nl/httpdocs/concrete/tools/files/rescan.php on line 7
-----
I'll leave it for today. Cant figure it out ...
---
... and the next day! new chances! Tried the 'importer.php', but no results. Maybe I'll receive an answer tomorrow?
---
Another attempt. I'm going to check the filepermissions of an uploaded pdf. Maybe it's only the generated(!) images and thumbs.
ps. I'll also do a fresh install 5.4.0.5
Here are the steps if you also run into this problem:
- fresh install
- filemanager > access >> permissions section
- make a couple of changes
- save it
- set it back the way it was again
- save it
- tadaaa!! :D
I'm really happy tonight! Whieie!