(13)Permission denied: exec of '.../mailgraph.css failed

View: New views
5 Messages — Rating Filter:   Alert me  

(13)Permission denied: exec of '.../mailgraph.css failed

by Marc Muehlfeld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

im using Mailgraph-1.14. This version uses an external css to format the
output. But when I put it into the same directory than the cgi file, my apache
log the following errors if I open the cgi page:


[Fri Oct 12 12:24:48 2007] [error] [client 192.168.1.254] (13)Permission
denied: exec of '/srv/www/htdocs/vhost1/cgi-bin/mailgraph.css' failed,
referer: http://vhost1/cgi-bin/mailgraph.cgi
[Fri Oct 12 12:24:48 2007] [error] [client 192.168.1.254] Premature end of
script headers: mailgraph.css, referer: http://vhost1/cgi-bin/mailgraph.cgi


When I put the css file to somewhere else outside the cgi-bin folder and
change the stylesheet-link in the cgi, the error is gone. Any idea how I can
prevent this and have both files at the same place? This is my apache2
directory directive for this folder:


<Directory "/srv/www/htdocs/vhost1/cgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        Order deny,allow
        Deny from all
        Allow from 192.168.1
</Directory>


Regards
Marc

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: (13)Permission denied: exec of '.../mailgraph.css failed

by Hugo van der Kooij :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marc Muehlfeld wrote:

> Hello,
>
> im using Mailgraph-1.14. This version uses an external css to format the
> output. But when I put it into the same directory than the cgi file, my apache
> log the following errors if I open the cgi page:
>
>
> [Fri Oct 12 12:24:48 2007] [error] [client 192.168.1.254] (13)Permission
> denied: exec of '/srv/www/htdocs/vhost1/cgi-bin/mailgraph.css' failed,
> referer: http://vhost1/cgi-bin/mailgraph.cgi
> [Fri Oct 12 12:24:48 2007] [error] [client 192.168.1.254] Premature end of
> script headers: mailgraph.css, referer: http://vhost1/cgi-bin/mailgraph.cgi
>
>
> When I put the css file to somewhere else outside the cgi-bin folder and
> change the stylesheet-link in the cgi, the error is gone. Any idea how I can
> prevent this and have both files at the same place? This is my apache2
> directory directive for this folder:
>
>
> <Directory "/srv/www/htdocs/vhost1/cgi-bin">
> AllowOverride None
> Options +ExecCGI -Includes
> Order deny,allow
> Deny from all
> Allow from 192.168.1
> </Directory>

Putting anything but CGI scripts in there is messy. Do NOT go that way.
It will hit you in the rear sometime later.

It can be done if you read the apache manual very carefully. But I am so
opposed to such a setup I will not help you to choose that path.

Hugo.

--
hvdkooij@...               http://hugo.vanderkooij.org/
        Don't meddle in the affairs of sysadmins,
        for they are subtle and quick to anger.

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: (13)Permission denied: exec of '.../mailgraph.css failed

by Marc Muehlfeld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hvdkooij@... schrieb:
 > It can be done if you read the apache manual very carefully. But I am so
 > opposed to such a setup I will not help you to choose that path.

I don't want to have that in there too, but that's what your changes file for
1.14 told me to do:
* add external css file: mailgraph.css (Patrick Nagel)
   -> you will need to add this file to where mailgraph.cgi is

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: (13)Permission denied: exec of '.../mailgraph.css failed

by Hugo van der Kooij :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marc Muehlfeld wrote:
> hvdkooij@... schrieb:
>> It can be done if you read the apache manual very carefully. But I am so
>> opposed to such a setup I will not help you to choose that path.
>
> I don't want to have that in there too, but that's what your changes
> file for 1.14 told me to do:
> * add external css file: mailgraph.css (Patrick Nagel)
>   -> you will need to add this file to where mailgraph.cgi is
Well it might have been convenient for someone but it is bad design. And
you need to correct mailgraph.cgi to correct this.

I assume you also needed to set other items in there to match your
setup. So you are allready aware of the content of the file.

Hugo.

PS: I have no need for duplicates. I read the mailinglist.

--
hvdkooij@...               http://hugo.vanderkooij.org/
        Don't meddle in the affairs of sysadmins,
        for they are subtle and quick to anger.


-- Attached file removed by Ecartis and put at URL below --
-- Type: application/x-pkcs7-signature
-- Desc: S/MIME Cryptographic Signature
-- Size: 3k (3661 bytes)
-- URL : http://lists.ee.ethz.ch/p/30-smime.p7s


--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: (13)Permission denied: exec of '.../mailgraph.css failed

by Marc Muehlfeld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hvdkooij@... schrieb:
> Well it might have been convenient for someone but it is bad design. And
> you need to correct mailgraph.cgi to correct this.
That's what I allready did, but I thought there's maybe a better solution to
change this, because I was told to put it there in the changes file.



> I assume you also needed to set other items in there to match your
> setup. So you are allready aware of the content of the file.

Maybe the next release could have a hint for that or maybe a switch to disable
the external css file and stay at some default values.

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi