Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Apr 2000 22:38:16 PDT
From:      "Michael Lewis" <m1ewis@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   CGIWrap config problem
Message-ID:  <20000410053816.50047.qmail@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hello, I've recently installed FreeBSD 3.4, Apache 1.3.9 and CGIWrap
3.6.3 on a Cyrix 166 machine.  I've got Apache working on a
single-system server/client basis.  I can run my scripts via Apache ok,but I 
can't get CGIWrap to access the scripts.

My current problem is an "operation not permitted" error from CGIWrap.
I don't understand what "setgroups()" does.  Can anyone point me in the 
right direction?  My CGIWrap output and httpd.conf files are included below.

Thanks, Michael Lewis




Initializing Logging
Redirecting STDERR to STDOUT


Environment Variables:
     QUERY_STRING: ''
      SCRIPT_NAME: '/cgi-bin/cgiwrapd'
        PATH_INFO: '/mlewis/res_form.pl'
  PATH_TRANSLATED:
'/users/mlewis/public_html/cgi-bin/mlewis/res_form.pl'
      REMOTE_USER: '<NULL>'
      REMOTE_HOST: '<NULL>'
      REMOTE_ADDR: '127.0.0.1'


Trying to extract user from PATH_INFO.
Retrieved User Name:  'mlewis'

User Data Retrieved:
     UserID: 'mlewis'
        UID: '1002'
        GID: '71'
   Home Dir: '/users/mlewis'

Script Base Directory:  '/users/mlewis/public_html/cgi-bin'
Trying to extract script from PATH_INFO
        Script Relative Path:  'res_form.pl'
        Script Absolute Path:  
'/users/mlewis/public_html/cgi-bin/res_form.pl'

Fixing Environment Variables.

Environment Variables:
     QUERY_STRING: ''
      SCRIPT_NAME: '/cgi-bin/cgiwrapd/mlewis/res_form.pl'
        PATH_INFO: ''
  PATH_TRANSLATED: '/users/mlewis/public_html/cgi-bin'
      REMOTE_USER: '<NULL>'
      REMOTE_HOST: '<NULL>'
      REMOTE_ADDR: '127.0.0.1'

Logging Request (File)

*****************
* CGIWrap Error *
*****************

CGIWrap encountered a system error:
        When: setgroups() failed!
        Error Message: Operation not permitted
        Error Number: 1


****************
* Server Data: *
****************

        Server Administrator/Contact: [no address given]
        Server Name: autosys_debug
        Server Port: 80
        Server Protocol: HTTP/1.0

*****************
* Request Data: *
*****************

        User Agent/Browser: Mozilla/3.04Gold (X11; I; FreeBSD 3.4-RELEASE 
i386)
        Request Method: GET
        Remote Address: 127.0.0.1
        Remote Port: 1059





User #1002
Group #71

NameVirtualHost 127.0.0.1

<VirtualHost autosys>
DocumentRoot /users/mlewis/htdocs
ServerName autosys
ErrorLog /usr/www/auto_sys/logs/error_log
TransferLog /usr/www/auto_sys/logs/access_log
ScriptAlias /cgi-bin /users/mlewis/public_html/cgi-bin
</VirtualHost>

<VirtualHost autosys_debug>
DocumentRoot /users/mlewis/public_html/cgi-bin
ServerName autosys_debug
ErrorLog /usr/www/auto_sys/logs/error_log
TransferLog /usr/www/auto_sys/logs/access_log
ScriptAlias /cgi-bin /usr/www/auto_sys/cgi-bin
</VirtualHost>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000410053816.50047.qmail>