httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saisab Pradhan <>
Subject [users@httpd] Help with suexec
Date Fri, 13 Aug 2004 09:21:39 GMT

I have configured apache 1.3 with suexec option enabled on solaris 8.0. The 
suexec caller has been set to "cgi", min gid and uid are 100, cgi user 
exists with uid  1004 and also cgi group with gid 102. It seems to have 
installed correctly i.e. when i do

httpd -l , it gives

Compiled-in modules:
suexec: enabled; valid wrapper /usr/local/apache/bin/suexec

and suexec -V command shows

-D DOC_ROOT="/usr/local/apache/test"
  -D GID_MID=100
  -D HTTPD_USER="cgi"
  -D LOG_EXEC="/usr/local/apache/logs/suexec_log"
  -D SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
  -D UID_MID=100
  -D USERDIR_SUFFIX="public_html"

I setup a virtual host for my domain, the entries are

<VirtualHost myipaddress>
     User cgi
     Group cgi
     ServerName myservername
     DocumentRoot /usr/local/apache/test
      ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/test/"
<Directory "/usr/local/apache/cgi-bin/test">

     AllowOverride None
     options ExecCGI
     AddHandler cgi-script .cgi
     AuthType Basic
     AuthName " Test Login"
     AuthUserFile /usr/local/apache/passwd/dspampassword
     Require valid-user

But when I try to run test.cgi script in that directory, su_exec.log gives 

[2004-08-13 12:10:51]: crit: calling user mismatch (nobody instead of cgi)

and error log shows

[Fri Aug 13 12:10:51 2004] [error] [client] Premature end of 
script headers: /usr/local/apache/cgi-bin/dir/test.cgi

Please help,

Thanks in advance...


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message