Linux users and groups for a LAMP server

后端 未结 5 1302
南笙
南笙 2021-02-09 19:52

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:15

    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.

提交回复
热议问题