08-27-07 12:14 PM
On 08/26/2007 10:53 PM, Dave Murray wrote:
>
> Thank you for your continuing interest in helping me with this.
>
> /var/www/dc_fb.html (owner/group www-data) (permissions -rw-r--r--)
>
> collects data and has
>
> <form method="GET" action="cgi-bin/fb.cgi">
>
> /var/www/cgi-bin/fb.cgi (owner/group www-data) (permissions -rwxr-xr-x)
>
> has
>
> #!/usr/bin/perl
> --logic and such--
> print "Content-type: text/html\n\n";
> print "<html>\n";
> --more cgi output--
>
> When I "submit" from the html file instead of executing the PERL and
> outputing the cgi, it downloads fb.cgi and opens it in an editor.
>
> The properties for the .cgi has open with text editor. I have tried to
> add "opens with" perl, but get "Could not add application to the
> application database".
>
> I am certain that boa is running;
>
> /var/log/boa/error_log shows:
>
> [26/Aug/2007:15:34:48 +0000] caught SIGHUP, restarting
> [26/Aug/2007:15:34:48 +0000] re-reading configuration files
> [26/Aug/2007:15:34:48 +0000] successful restart
>
> interestingly it also has:
>
> 127.0.0.1 - - [26/Aug/2007:16:05:39 +0000] request "GET /crossdomain.x
ml
> HTTP/1.1" ("/var/www/crossdomain.xml"): document open: No such file or
> directory
>
> and /var/log/boa/access_log shows:
>
> 127.0.0.1 - - [26/Aug/2007:16:05:39 +0000] "GET /crossdomain.xml
> HTTP/1.1" 404 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6)
> Gecko/20070725 Firefox/2.0.0.6"
>
> I don't know what happened there; nothing that I remember consciously
> doing.It is not from trying to submit with the html file. But it seems
> to be evidence that boa is running, so perhaps it has somethin to do
> with my html/cgi (which did work when I had it on my old isp's server)
>
> Regards,
> Dave
The request of /crossdomain.xml probably has to do with an extension
that you installed into Firefox; ignore it, and don't bother
reconfiguring Firefox because the problem is in boa's configuration.
Boa.conf has this section which might need to be changed:
> # Uncomment the next line if you want .cgi files to execute from anywhere
> #AddType application/x-httpd-cgi cgi
>
So I uncommented the line, and CGI scripts work for me.
Another option, which would be better for you probably, would be to
change the ScriptAlias directive in boa.conf to point to the location of
your cgi-bin directory.
If you do that, you won't need to uncomment the "AddType
application/x-httpd-cgi cgi" line.
Whenever you access a script, and you see its source instead of its
output, that means that the web server isn't configured to execute those
kinds of scripts from that location on the filesystem. The server must
be reconfigured when this happens.
Read /etc/boa/boa.conf again and read the documentation in
/usr/share/doc/boa.
[ Post a follow-up to this message ]
|