Search code examples
phpgithubservercloudcloudways

How to give Write Permission to public in Github Folder?


My project is deployed in a server. Server is pulling from Github. I want, users can upload images in one folder in Github which is deployed in server. It is showing "Permission Denied". How to give write access to that folder in github ?

I am using CloudWays PHP project. Deployed via Github.


Solution

  • You need to change the permission of the directory and enable others to create files inside.

    sudo chmod -R 777 /yourfolderpath
    

    This command will change the permission of the directory recursively and enable all other users to create/modify and delete files and directories inside.