I follow this guide: How to configure Apache virtual hosts on Ubuntu 14.04 LTS .
I get the error message: Step Two - Grant Permissions , which states the following:
Now we have a directory structure for our files, but they belong to our root user. If we want our regular user to be able to modify files in our web directories, we can change the ownership by doing this:
sudo chown -R $USER:$USER /var/www/example.com/public_html
sudo chown -R $USER:$USER /var/www/test.com/public_html
The $ USER variable will take on the value of the user you are now as if pressing ENTER. By doing this, our regular user now owns the public_html subdirectories, where we will store our content.
We also need to change our permissions a bit to make sure that read access is allowed in the shared web directory and all the files and folders that it contains so that the pages can be served correctly:
sudo chmod -R 755 /var/www
Your web server should now have the permissions necessary to serve the content, and your user should be able to create content in the necessary folders.
I entered a line at the command prompt: sudo chown -R $USER:$USER /dir/ectory/
and then I get an error:chown: invalid group: ‘developer:developer’
I searched and did not find working solutions for this problem. I am using Ubuntu 14.04. I'm both new to Ubuntu and Stackoverflow, so I apologize for any stupid mistakes that I might not have made by asking a question. Any help is appreciated grealy!
source
share