My fix would be:

cd to the document-root directory of your web server.

cd ..

mkdir cgi-bin

mv qmailadmin /to/the/directory/you/just/created


vi httpd.conf and add the following line:



ScriptAlias /cgi-bin/ /the/directory/you/just/added




then try hitting:


http://www.yourdomain.com/cgi-bin/qmailadmin



Rick





SEFEROVIC Edvin wrote:


Hi..

Its me and my RTFM question... in my httpd.conf I have following...

AddHandler cgi-script .cgi .pl

It means only .cgi and .pl files will be threated as CGI scripts.. but
qmailadmin has no extension...

-rwsr-sr-x 1 vpopmail vchkpw 127260 Feb 19 20:21 qmailadmin*

This is my output of ls command... it may be a rtfm mistake, but I really
dont have a clue where my mistake lies...

TIA

Edvin Seferovic

-----Ursprüngliche Nachricht-----
Von: Ken Jones [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Februar 2004 16:13
An: [EMAIL PROTECTED]; SEFEROVIC Edvin
Betreff: Re: [qmailadmin] cgibin text output


On Thursday 19 February 2004 2:57 pm, SEFEROVIC Edvin wrote:

Hi...

After I installed qmailadmin, I cannot call the cgi script.  My browser
always starts a text file download. Can anyone tell me what am I doing
wrong? And yes - I googled, I read the manual of apache webserver, and I
still dont know that am I doing wrong...

TIA

Edvin Seferovic


Probably because your web server doesn't know that qmailadmin
is a cgi program. Some web servers are configured to only think
programs that end with .cgi are to be run as cgi programs. What
usually happens is the web server sends the qmailadmin binary
as a text file that looks like garbage characters. The solution
is to re-configure your web server to run it as a cgi.

Ken Jones






Reply via email to