Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache 13 permission denied in user's home directory [closed]

My friend's website was working fine until he moved the document root from /var/www/xxx to /home/user/xxx.

Apache gives 13 permission denied error messages when we try to access the site via a web browser.

The site is configured as a virtual directory. All the Apache configurations were unchanged (except for the directory change).

We tried to chmod 777 /home/user/xxx, chown apache /home/user/xxx. But they didn't work.

Is there some kind of security feature set on the user's home directories? The server OS is CentOS (Godaddy VPS).

Any help is appreciated!

Thanks!

like image 765
Dave Avatar asked Aug 04 '09 03:08

Dave


People also ask

How do I fix 13 Permission denied?

We can solve this error by Providing the right permissions to the file using chown or chmod commands and also ensuring Python is running in the elevated mode permission .

What is linux error 13?

Error 13 indicates a filesystem permissions problem. That is, Apache was denied access to a file or directory due to incorrect permissions.

What is Permission denied Code 13?

The PermissionError: [errno 13] permission denied error occurs when you try to access a file from Python without having the necessary permissions. To fix this error, use the chmod or chown command to change the permissions of the file so that the right user and/or group can access the file.


1 Answers

Turns out... we had to also chmod 755 the parent directory, user, in addition to xxx.

like image 106
Dave Avatar answered Oct 15 '22 00:10

Dave