On 27/09/12 13:00, [email protected] wrote:
Message: 1
Date: Wed, 26 Sep 2012 19:04:15 +0100
From: Ralph Corderoy <[email protected]>
To: Dorset Linux User Group <[email protected]>
Subject: Re: [Dorset] Apache 2.4.2
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Hi Graeme,
..........
It might help if we had the permissions of the CGI file in question and
every directory above it, e.g. assuming it was the file `foo' then set f
to its full path from root and then run this while loop;  "$" is my
shell's prompt.

     $ f=/home/tmp/1348682210.641081587/foo
     $
     $ while [[ $f ]]; do ls -ld "$f"; f=${f%/*}; done; ls -ld /
     -rw-r--r-- 1 ralph ralph 0 2012-09-26 19:01 
/home/tmp/1348682210.641081587/foo
     drwxr-xr-x 3 ralph ralph 4096 2012-09-26 19:01 
/home/tmp/1348682210.641081587
     drwxrwxrwt 190 root root 12288 2012-09-26 18:56 /home/tmp
     drwxr-xr-x 20 root root 4096 2011-09-18 18:20 /home
     drwxr-xr-x 24 root root 4096 2012-09-03 13:55 /
     $

Cheers, Ralph.


It must be some sort of permission problem. I executed the following
$ cd /var/www/cgi-bin
[graeme@handel cgi-bin]$ ./multimon.cgi
which produced a whole lot of HTML.
I put that into a file with .html suffix and opened it in Firefox and got the expected display. I tried to do the same with upsstats.cgi, and in the generated HTML I found the line
<p><strong>Access to host 127.0.0.1 is not authorized.</strong></p>
The most recent line in the access log is
127.0.0.1 - - [28/Sep/2012:13:06:58 +0100] "GET /var/www/cgi-bin/multimon.cgi HTTP/1.1" 404 226
There is no entry in the error log since 13:00 hrs yesterday.
Changing the permissions on /var/www/cgi-bin had no effect.
What bit of software processes a .cgi file?
Thanks for your interest,
Graeme

--
Next meeting:  Bournemouth, Tuesday, 2012-10-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to