#include #include #include #include int main() { struct group *apache_group; apache_group = getgrgid(getgid()); printf("Content-type: text/html\n\n"); puts("Apache Group Check"); printf("Apache is running as group: %s\n

", apache_group->gr_name ); puts("To properly set the permissions for your Manhattan installation
"); puts("

  1. cd to the 'src' directory of your Manhattan installation
  2. "); puts("
  3. Become 'root' (or use sudo to execute the next command as 'root')
  4. "); printf("
  5. Type the command:

    ./set_dirs %s

    \n

", apache_group->gr_name); puts(""); return 0; }