0

I've got a site hosted on an apache server VPS and I'm always running into problems with uploads, installing plugins etc.

The response I get from my web host is;

777 is the correct permissions for files/folders apache needs write access to

This seems to contradict with what the WordPress Codex says.

Can somebody explain why WP recommends 755 but my host is saying 777?

Thanks in advance

SSH
  • 1,609
  • 2
  • 22
  • 42
Ian Butler
  • 399
  • 7
  • 20

2 Answers2

0

The WordPress Codex has some good info for hardening WordPress. Ideally, all files should have 644 permissions, and all directories should be 755 (no higher).

If you're still running into issues adding plugins and updating WordPress, you should heed the advice of the following (unless you want to enter FTP details into WordPress each time):

Any file that needs write access from WordPress should be writable by the web server. If your hosting set up requires it, that may mean those files need to be group-owned by the user account used by the web server process.

rnevius
  • 26,578
  • 10
  • 58
  • 86
0

I think that if you can't articulate a REASON for your own settings [which is fine!], I'd leave the permissions at 777. It can get confusing otherwise. So if you don't know the purpose of what you're doing, at least simpler seams better. PS - I manage dozens of sites and have 777 on everything.

Jim Maguire
  • 1,020
  • 1
  • 8
  • 19