Jump to content

Ideal LAMP permissions and user?


Murray
 Share

Recommended Posts

Currently installing Processwire on an Ubuntu dev PC with a standard LAMP setup (incl MariaDB) with aim to use the like of Vultr or Linode for live.

The installer prompts for permission to /site/assets which has got me wondering; What is the ideal setup for a standard LAMP server on the likes of Vultr / Linode / Digital ocean? From a security standpoint should the site ideally be owned my the linux user, or by www-data? Or should it be www-data user owning writable folders and linux user owning the remainder?

I guess not being a linux guru I'm unclear on linux permissions and how they work with LAMP. Should I be chown-ing and chmod-ing different folders or is Processwire just fine and reasonably secure running as user:user as it seems to be after install?  

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...