Boud Roukema a écrit :
> ANALYSIS: 
>> From the command line:
>
> as user wims:
>   cd /var/lib/wims/public_html/ && ./wims
> outputs a correct html page.
>
> as user www-data, same command:
>
>   cd /var/lib/wims/public_html/ && ./wims
> outputs:
>
>> Status: 500 WIMS Internal Error

The command ./wims, in this context, should be executed with the
identity of the user wims, since the post-installation package is
supposed to set the permission bit as stated below:

$ ls -l /var/lib/wims/public_html/wims
-rwsr-sr-x 1 wims wims 266440 2007-10-20 06:16 /var/lib/wims/public_html/wims

The question should rather be : were the permissions correct for the file
/var/lib/wims/public_html/wims ?

---------------8<-------------------------------
gk:~$ grep chmod /var/lib/dpkg/info/wims.postinst 
    chmod 700 $d
      chmod 6755 $server
      chown wims:wims $conffile; chmod 600 $conffile
      chmod 6755 $lambdawrapper
      chmod 6755 /var/lib/wims/public_html/bin/ch..root
gk:~$ grep "server=" /var/lib/dpkg/info/wims.postinst 
      server=/var/lib/wims/public_html/wims
          webserver=${webserver%,}
          webserver=${webserver%,}
---------------8<-------------------------------

probably the postinst failed at some early stage, but you manually 
installed something later and did not run again the configuration scripts?

Amitiés,                        Georges.

Attachment: signature.asc
Description: Digital signature

Reply via email to