Change newly created site permissions

Discussion in 'Installation/Configuration' started by bswinnerton, Nov 9, 2008.

  1. bswinnerton

    bswinnerton New Member

    Is there any piece of code that sets the newly created websites permissions. For example, what I would like to do is whenever a new site is generated, automatically have its group be www-data as opposed to web*.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The site permissions are set by the function make_vhost n the file /root/ispconfig/scripts/lib/config.lib.php

    But you should consider to switch from mod_php to suphp so there is no change of permissions needed as your php scripts will run then as webx user and group. The only drawback is that suphp is not optimal for high traffic sites. There is a tutorial here on howtoforge available that explains the installation of suphp for ispconfig.
  3. bswinnerton

    bswinnerton New Member

    Hmm, Perhaps I wouldn't want to do that then. What do the php scripts run as currently?
  4. falko

    falko Super Moderator ISPConfig Developer

    They're currently running as the Apache user (www-data on Debian and Ubuntu).

Share This Page