我怎样才能configurationUbuntu的LAMPnetworking服务器像CPanel的权限?

我知道如何在Ubuntu上为单个网站/单个用户设置一个LAMP堆栈,但是我希望允许多个用户在一台服务器上托pipe多个站点。

这是针对一个组织中的不同部门,所以我不认为使用这个服务器的任何人都是恶意的,但是我想尝试将访问权分开。

我喜欢大多数CPanel是如何设置的:

  1. 用户不能看到彼此的文件
  2. Apache / PHP作为用户而不是www-data
  3. 脚本不能访问主目录之外的东西(maybe /tmp/除外)
  4. 用户可以通过FTP进行连接,但仅限于其主目录
  5. 用户可以通过jailshell访问该框

我不需要像CPanel这样的控制面板,我只是想要上面提到的行为/function。

在研究如何完成那些我发现的事情:

  1. 正确设置文件权限,也只有FTP访问(或者也许是jailshell)?
  2. suPHPsuPHPexecApache suEXEC
  3. open_basedir
  4. vsftp似乎是这个标准/最常见的东西
  5. 我看到有Ubuntu的jailkit – 不知道它有多普遍。

我一直在阅读suPHPsuPHPexecApache suEXEC – 但是:

  • 我不清楚哪一个可能与Ubuntu最好的工作
  • 我不知道哪一个可能是最常用的

我也看了一些关于mod_fcgidPHP-FPM讨论,我不确定是否适合任何要求的function – 我知道他们帮助PHP的内存pipe理。

  • 这两个工具可以用来做一个脚本“作为所有者执行”吗?
  • 他们通常与Ubuntu一起使用吗?
  • 它们是否足够稳定,可以与生产服务器一起运行? (我见过一些关于PHP-FPM投诉)

理想情况下,我想去那些最常用的。

如果你想要一个控制面板看看:

 Webmin/Virtualmin - looks most promising. ispCP - looks really slick, but seems to still be in development (maybe stalled?) vhcs - also looks slick, not sure about the licensing though. Penguinator - looks to be very actively developed, the guys that run the project do seem a little disorganised: judging by their Web site. You'll also need to get the source code from SVN as they don't appear to have an official release. eBox - more of a general configuration tool, looks pretty though. You might be able to use it somewhere else. 

请让我们知道你是怎么做的,有兴趣知道你select了什么,以及它有多好。 祝你好运!