Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Unable to set absolute path #1081

Open
Merith-TK opened this issue Aug 15, 2018 · 2 comments
Open

Unable to set absolute path #1081

Merith-TK opened this issue Aug 15, 2018 · 2 comments

Comments

@Merith-TK
Copy link

So i am on ubuntu, and codiad is located in /home/nuse-dev, Its a blank folder with normal permissions, and setup as the properly permissioned folder for codiad.

I am trying to make codiad point at either /var/www/html/web, or /home/nuse-webpage.

but it gives me this error

An Error Occoured

No Read/Write Permission

@ElkoHoll
Copy link

Try making a symlink in the Codiad workspace/ directory to where you'd like to be able to edit,
someething like: cd /home/nuse-dev/workspace && ln -s /var/www/html/web

@mitchellurgero
Copy link

mitchellurgero commented Aug 27, 2018

To do anything outside of codiad's "home"dir you must add the dir to the config.php file:

define("WHITEPATHS", BASE_PATH . ",/home");

Once the path is in that list, then add www-data to the user folder group:

usermod -a -G nuse-dev www-data
chmod g+w /home/nuse-dev

Or setacl:

setfacl -m u:www-data:rwx /home/myfolder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants