Apache2 & SuExec - not working

Discussion in 'Server Operation' started by martinfst, Jan 4, 2007.

  1. martinfst

    martinfst Member Moderator

    I've setup a new server, mostly following the Ubuntu 6.10 and ISPConfig guides. All works oke, but during the process of transferring websites to this new server, I'm puzzled by a permission problem between Perl and SuExec and hope someone has an idea.

    Although ISPConfig has added the right SuexecUserGroup, it appears that perl scripts do not use this user/group, but instead run with the euid and ruid of apache: www-data in my case. Any suggestion how to tackle this problem further?

    Details:
    Directory:
    Apache2.conf
    ...
    Error:
    The only other remark to make is that the perl routines/programs called by index.pl are stored outside the webroot. But the whole application works without a problem. If I change the ownership of the uploads directory (including the subdirs) to www-data, the nodes/files are created without any issue.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must place your Perl scripts in the cgi-bin directory: /home/ispwww/web1/cgi-bin
     
  3. martinfst

    martinfst Member Moderator

    Unfortunately, that's not possible, as this is a shared codebase for a CMS for several websites . I was a bit afraid of this :(
    Thanks for confirming.
     

Share This Page