Answer the question
In order to leave comments, you need to log in
How to solve rights problems?
Hello. I am using Linux Ubuntu 14.04
Downloaded apache with all modules and settings.
Everything that could be configured for convenience - configured.
However, now there is a problem when installing any engine.
I upload files to the root of the "/var/www" folder.
Before that, I give the rights so that you can somehow interact with this directory:
sudo chmod 775 /var/www
sudo chmod -R 775 /var/www
You don't have permission to access / on this server.
Answer the question
In order to leave comments, you need to log in
sudo chmod 775 /var/www
sudo chmod -R 775 /var/www
For such rights, it is necessary to beat hands and tear off everything that comes off. Why do you have write access to the directory for everyone in the group? Why do you have all the executable files?
chmod 750 /srv/www
chmod -R 640 /srv/www/
PS The directory containing the data returned by the web server for more than 13 years should not be in /var, this is a relic of the past, /srv exists for such purposes, read FHS.
See what user apache is running as (User in httpd.conf), usually it is apache
Change the owner of the directory
After that chmod will work as it should.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question