#1
  1. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    I have a webserver on which I try to run some cgi-scripts. I looked at /var/log/apache/suexec.log and it says that something is going wrong when I run a script. If I run www.domain.com/cgi-bin/someScript.pl it returns some error (Some Internal Error) and the suexec.log contains something like:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    [2000-08-24 10:00:17]: cannot run as forbidden gid (33/profSchets.pl)
    [2000-08-24 10:03:23]: uid: (euramco/euramco) gid: (www-data/www-data) cmd: prof
    Schets.pl
    [/quote]

    The server runs Perl 5.005 and has Apache as webserver. Someone knows what's going wrong? I have really no idea.. /usr/bin/perl has mode 277 (?) (lrwxrwxrwx) so that's not the problem either...
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>cannot run as forbidden gid

    Start here -> http://www.apache.org/docs/suexec.html

    Read thru the 20 questions.
  4. #3
  5. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    Thnx!

    But I now get the following error in the suexec.log when using suexec:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    [2000-08-24 18:43:53]: command not in docroot (/home/euramco/cgi-bin/profSchets.
    pl)
    [/quote]
    In the file access.log is /home registered as directory and the cgi-bin is located at /home/euramco/cgi-bin
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    So what is your DocumentRoot?

    Are there any UserDir? ScriptAlias?
  8. #5
  9. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    The problem is already solved.. gave somebody access to the server and he fixed it.. no idea what was changed though...
    Thanx for your help freebsd!

IMN logo majestic logo threadwatch logo seochat tools logo