How To Add user 'apache' into new group

Discussion in 'Installation/Configuration' started by asyadiqin, Feb 1, 2007.

  1. asyadiqin

    asyadiqin New Member

    I would like to add the user 'apache' to any new group created using ISPConfig.

    Currently, whenever I created a site, ISPConfig will create the necessary user and group. By default, the ISPConfig will add the user 'admispconfig' into that new group.

    What I need is to also include the user 'apache' into any newly created account.

    I know that the script to modify is /root/ispconfig/scripts/lib/config.lib.php but the comments are in german and I don't wish to break the codes by modifying it blindly. Plus I am not really that great with PHP. So, any help is greatly appreciated.

    PS : By default, any files created is given the permission of 644. How can I can it to default to 664. Thanks. FYI, I am running fedora Core 5
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add the line:

    $mod->system->add_user_to_group("web".$doc_id,"apache");

    at line 118 in the file /root/ispconfig/scripts/lib/config.lib.php.

    The permissions of uploaded files are configured in the proftpd.conf file.
     
  3. asyadiqin

    asyadiqin New Member

    Thanks Till,

    Glad to know that I chose the right control panel for my servers. Wonderful product and great support.

    Would there be any future development of ISPConfig to use mySQL for Postfix. Would be a great and easier to migrate user accounts from one server to another, unless there is an easier way to do it now.

    Thanks again.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    This is planned for version 3 of ISPConfig.
     
  5. ZuG

    ZuG New Member

    I think you mean line 1118... took me a minute to figure this out.
     

Share This Page