We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
public_html permissions
public_html permissions
Hello,
I'm running some Wordpress sites on a Centos 6 install. I have a big error log file with tons of
failed (13: Permission denied)
errors on it. An entry is generated everytime a user hits the homepage.
After some research, I found the error is gone if I set the permissions for public_html to 755, but I'm not sure if this is ok... I'm hosting some other sites on the server, but I'm the only one with access to ssh or ftp to the server...
So my questions are:
- Is it safe to change public_html folder permissions to 755 ?
- Is there any other way to solve this issue ?
Kind Regards
I'm running some Wordpress sites on a Centos 6 install. I have a big error log file with tons of
failed (13: Permission denied)
errors on it. An entry is generated everytime a user hits the homepage.
After some research, I found the error is gone if I set the permissions for public_html to 755, but I'm not sure if this is ok... I'm hosting some other sites on the server, but I'm the only one with access to ssh or ftp to the server...
So my questions are:
- Is it safe to change public_html folder permissions to 755 ?
- Is there any other way to solve this issue ?
Kind Regards
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: public_html permissions
I think it's better to use 644 for your files in the public_html folder.
public_html (ls -la /home/username/web/yourdomain.com/) 750
files in Public_html (ls -la /home/username/web/yourdomain.com/public_html) 644
dirs in public_html (ls -la /home/username/web/yourdomain.com/public_html) 755
public_html (ls -la /home/username/web/yourdomain.com/) 750
files in Public_html (ls -la /home/username/web/yourdomain.com/public_html) 644
dirs in public_html (ls -la /home/username/web/yourdomain.com/public_html) 755
Re: public_html permissions
Hi tjebbeke,
I think it's better to use 644 for your files in the public_html folder.
Most of the files have this setting, just wp-config.php it's on 666
public_html (ls -la /home/username/web/yourdomain.com/) 750
If I change public_html to 750 I get a 404 not found error on index.php. Original setting was on 751, but this is generating the errors in the log...
dirs in public_html (ls -la /home/username/web/yourdomain.com/public_html) 755
All dirs are on 755
By the way, the site it's running on nginx only... For if it makes any difference on the solution...
Regards
I think it's better to use 644 for your files in the public_html folder.
Most of the files have this setting, just wp-config.php it's on 666
public_html (ls -la /home/username/web/yourdomain.com/) 750
If I change public_html to 750 I get a 404 not found error on index.php. Original setting was on 751, but this is generating the errors in the log...
dirs in public_html (ls -la /home/username/web/yourdomain.com/public_html) 755
All dirs are on 755
By the way, the site it's running on nginx only... For if it makes any difference on the solution...
Regards
Re: public_html permissions
There's no harm in changing public_html folder permissions to 755. 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.