Post by Herwig BauernfeindPost by David McKennaI would like to be able to use SWAT to configure. I have Apache2 running
and have followed the cookbook for SWAT on the Netlabs SAMBA site. When I try
to use the SWAT web interface, it asks for a user and password, I enter them
'premature end of script headers: swat.exe'. What does that mean?
Did you let the Samba installer find and configure Apache for SWAT? The
cookbook is a bit outdated (but still usable, by and large).
Which version of Apache2 are you using?
Unfortunately it is very easy to break SWAT usage - I have seen
"Internal Server Error" quite often, usually there is something broken
in the configuration.
If you provide more details (version, install path, etc), I will try to
rebuild your situation and check if it should work and if not, why...
Regards,
Herwig
I have the same problem here
Using apache 2.2.17
Samba version 3.3.16-eCS 1.1.0-613
the relevant section of httpd.conf is
=>
Alias /swat/ "N:/programs/samba/"
ScriptAlias /cgi-bin/samba/ "N:/programs/samba/"
ScriptAlias /cgi-bin/ "D:/apache2/cgi-bin/"
PassEnv UNIXROOT
PassEnv ETC
PassEnv PATH
PassEnv TMPDIR
<Directory "N:/programs/samba">
AllowOverride All
Options None
Order allow,deny
Allow from all
AuthName "Samba Web Admin Tool"
AuthType Basic
AuthUserFile "D:/apache2217/conf/users"
Require valid-user
</Directory>
<=
The path to samba is n:\programs\samba
swat.exe resides there
Samba config is in N:\MPTN\ETC\samba\smb.conf
What is the "samba installer"? I used Warpin and SSCC and they don't
seem to have an option for configuring Apache.
I also see that SWAT has a command line option "Use alternate
configuration file", but I don't have any (except smb.conf, of course).
If I run SWAT from the command line nothing happens (except if I use the
--help or the --version command line options) Even using the -a option
has no effect (and I assume that line options are only intended to be used in a
command window).
Anyway, the problems that I encounter are two:
1)Authentication doesn't work: the error_log says "Configuration error:
couldn't check access. Check your 'Require' directive:
/cgi-bin/samba/swat.exe"
Indeed, swat.exe in this case doesn't even start (and it is not involved
in the issue, which is related to Apache or its configuration)
2)if (just for testing) I REM out authentication lines (from AuthName
on), swat.exe does in fact run in VIO mode in background, but it never
returns anything to the browser, which after a while ends with a Gateway
Time-out Error. Error_log says" Script timed out before returning
headers: swat.exe"
Portscan shows that port 901 remain closed while swat is running.
any suggestion?
thanks
Piersante Sestini