RE: Vhosts Directory Permissions for Yeoman
05-12-2015, 06:42 PM
(This post was last modified: 05-12-2015, 06:43 PM by apinto.)
Hello compsmith, welcome to the Sentora Forums.
Are you running Yeoman via SSH (most probably you are)?
If yes than you are most likely changing the HostData folder Owner to root (or the user you ran the command).
You will need to change the /var/sentora/hostdata/ (and all subdirectories) back to the apache user:
After that the permissions are:
- Files: 644 that means files are readable and writeable by the owner of the file and readable by everyone else.
- Directories: 755 is the same thing, it just has the execute bit set for everyone. The execute bit is needed to be able to change into the directory. This is why directories are commonly set to 755.
Regarding the VHosts Directory (/etc/sentora/configs/apache/) the same applies (644 for files and 755 for directories.
Are you running Yeoman via SSH (most probably you are)?
If yes than you are most likely changing the HostData folder Owner to root (or the user you ran the command).
You will need to change the /var/sentora/hostdata/ (and all subdirectories) back to the apache user:
Code:
#CentOS
chown -R apache:apache /var/sentora/hostdata/
#Ubuntu
chown -R www-data:www-data /var/sentora/hostdata/
After that the permissions are:
- Files: 644 that means files are readable and writeable by the owner of the file and readable by everyone else.
- Directories: 755 is the same thing, it just has the execute bit set for everyone. The execute bit is needed to be able to change into the directory. This is why directories are commonly set to 755.
Regarding the VHosts Directory (/etc/sentora/configs/apache/) the same applies (644 for files and 755 for directories.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com