httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt farey <matt.fa...@gmail.com>
Subject Re: [users@httpd] Help: GIFs that are in same directory as PERL script are being executed
Date Fri, 23 Feb 2007 23:24:37 GMT
Can you use the ForceType  image/gif inside a FilesMatch or similar stanza,
have you tried |RemoveHandler .gif
have you removed the x-bit hack if its there?
|
Stephen Truxton wrote:
> Thanks Mark, but that was one of the things that I
> tried & didn't work.  Just complains that it doesn't
> have enough permissions- if I change to 666, same
> error.
> Here's the error message:
> "[Fri Feb 23 06:13:41 2007] [error] [client
> 10.19.83.200] file permissions deny s
> erver execution:
> /home/sanscript/public_html/cricket/images/cricket-sm.gif"
> --- Mark Lavi <mlavi@sgi.com> wrote:
>
>   
>> Try taking the execute permissions off all of the
>> non-CGI files.
>>
>> Eg. cd /home/sanscript/public_html/cricket/images/;
>> chmod a-x *gif
>>
>> --Mark 
>> Mark Lavi, Enterprise Web Management Team @ SGI
>> mailto:mlavi@sgi.com || phone:+1-650-933-7707
>>
>> -----Original Message-----
>> From: Stephen Truxton [mailto:struxton@yahoo.com] 
>> Sent: Friday, February 23, 2007 2:28 PM
>> To: users@httpd.apache.org
>> Subject: [users@httpd] Help: GIFs that are in same
>> directory as PERL
>> script are being executed
>>
>> Hola!  :-)
>>
>> Environment:
>> Apache 1.3 running on Suse Linux 9.0.
>>
>> Background:
>>  - Because of my Cricket installation, I've had to
>> put
>> GIFs in the same directory as some perl scripts.
>>  - The perl scripts are in a user directory so I had
>> to modify suse_public_html.conf to allow scripts to
>> execute.
>>
>> Issue:
>>  - The perl scripts execute just dandy, but Apache
>> is
>> interpreting the GIFs in that directory as
>> executables.  At least this is how I'm interpreting
>> the messages in error_log:
>> "[Fri Feb 23 05:56:28 2007] [error] (8)Exec format
>> error: exec of /home/sanscript
>> /public_html/cricket/images/rrdtool.gif failed
>> [Fri Feb 23 05:56:28 2007] [error] [client
>> 10.19.83.200] Premature end of script headers:
>>
>>     
> /home/sanscript/public_html/cricket/images/rrdtool.gif"
>   
>> Has anyone seen this before & know how to correct?
>>
>> Thanks!
>>
>> Stephen Truxton
>>
>>
>>  
>>
>>     
> ________________________________________________________________________
>   
>> ____________
>> No need to miss a message. Get email on-the-go 
>> with Yahoo! Mail for Mobile. Get started.
>> http://mobile.yahoo.com/mail 
>>
>>
>>     
> ---------------------------------------------------------------------
>   
>> The official User-To-User support forum of the
>> Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for
>> more info.
>> To unsubscribe, e-mail:
>> users-unsubscribe@httpd.apache.org
>>    "   from the digest:
>> users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail:
>> users-help@httpd.apache.org
>>
>>
>>
>>     
> ---------------------------------------------------------------------
>   
>> The official User-To-User support forum of the
>> Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for
>> more info.
>> To unsubscribe, e-mail:
>> users-unsubscribe@httpd.apache.org
>>    "   from the digest:
>> users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail:
>> users-help@httpd.apache.org
>>
>>
>>     
>
>
>
>  
> ____________________________________________________________________________________
> 8:00? 8:25? 8:40? Find a flick in no time 
> with the Yahoo! Search movie showtime shortcut.
> http://tools.search.yahoo.com/shortcuts/#news
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>   

-- 
Matthew Farey
Web App Sec.
25 The Polygon, Southampton, Hants, SO15 2BP, UK
Phone +44(0)2380 631449



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message