CodeIgniter Forums
CI4 Folder Permissions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI4 Folder Permissions (/showthread.php?tid=77540)



CI4 Folder Permissions - mbjino - 09-13-2020

Hi all,

I accidentally ran a CHMOD -R 777 on a project which is located in my /opt/lampp/htdocs of my local linux machine. Now I want to move to live server I fear this permissions will expose my files to all users. Can anyone please help me with the correct folder permissions for each folder and files in CI4.


RE: CI4 Folder Permissions - jreklund - 09-13-2020

Only "writable"-folder should be writable by the user group or how you have set up your server. Everything else can be read only.


RE: CI4 Folder Permissions - InsiteFX - 09-13-2020

chmod - File permissions

You can set the file permissions to read and write owner only which would be you.


RE: CI4 Folder Permissions - mbjino - 09-13-2020

(09-13-2020, 07:53 AM)jreklund Wrote: Only "writable"-folder should be writable by the user group or how you have set up your server. Everything else can be read only.

 Thank you. This helps.


RE: CI4 Folder Permissions - mbjino - 09-13-2020

(09-13-2020, 08:13 AM)InsiteFX Wrote: chmod - File permissions

You can set the file permissions to read and write owner only which would be you.

Thank you for the link. It not only helped me with codeigniter, but also with Linux folder permissions. I guess only the writable folder should have 777 permission others will be 744.


RE: CI4 Folder Permissions - jreklund - 09-13-2020

Generally speaking you should not use the world permission at all. It all boils down to who have access to your server. So 760 and 740.