img files not displaying

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

img files not displaying

John Heinze

I have gif, jpg and png files in my html directory which work fine with the html <img >. Today I put some new gif and jpg files and I get the 403 Forbidden

You don't have permission to access /Potter.gif on this server.

 

I have checked permissions and ownership on the files and see no difference between the previous files and the new ones.

 

Any sugguestions?


."The only real mistake is the one from which we learn nothing."     
       John Powell (1834-1902)
"Patience is the companion of wisdom." 
        Saint Augustine (354 AD - 430 AD)
"Success is the ability to go from one failure
               to another with no loss of enthusiasm."

       Sir Winston Churchill (1874 - 1965)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: img files not displaying

Eric Covener
On Thu, Jun 15, 2017 at 4:49 PM, John Heinze
<[hidden email]> wrote:
> Any sugguestions?

What does the error_log say?  Do you use selinux?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: img files not displaying

Mike Brown-18
On Thu, Jun 15, 2017 at 04:50:04PM -0400, Eric Covener wrote:
> On Thu, Jun 15, 2017 at 4:49 PM, John Heinze
> <[hidden email]> wrote:
> > Any sugguestions?
>
> What does the error_log say?  Do you use selinux?

That is what I was going to ask, i.e., selinux.  As nice as it is supposed to
be, it is a RPITA when it come to http usage.  New files placed into a
http directory is supposed to pick up the correct selinux classification,
which can be seen with the ls -C option.  I'll bet the file doesn't match
the others.

I ultimately reconfigured selinux to be in Permissive mode.  You can
temporarily set it with setenforce.  Then you can see if you can now get
at the file.

I know, one should not put selinux in permissive mode.  But, I'll be damned
if I am going to change the damn selinux flags on every new file that I
place there.

MB
--
e-mail: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (140 char limit)       \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                           X  Against
             http://vidiot.net/                          / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...