Linux users and groups for a LAMP server

后端 未结 5 1300
醉梦人生
醉梦人生 2021-02-09 19:32

What is the best practice for setting up a LAMP server in terms of linux users and groups? If there are multiple sites hosted on the same server, is it best to have a single us

5条回答
  •  情深已故
    2021-02-09 20:17

    The best choice is create VirtualHost for each domain using Apache with suPHP module. By this way, each site will be owned by an user and run with that user's permission. Webroot of each site should be put under user's homedir to prevent local attack.

    If you use the same user for every websites, that means user from websiteA can access read/write to files of websiteB.

提交回复
热议问题