Possible cPanelX Problem

Status
Not open for further replies.

army8392

New Member
Messages
13
Reaction score
0
Points
1
Just created a new folder off of public_html called Smilies. Uploaded several images yesterday and those links where working just fine and now, all I get is X instead of seeing the actual image/images and sometimes, I don't even get an X with nothing showing.
Are those images not allowed or is there a setting I may have missed or enabled that is causing those images not to show?
Regards,
aRMY83
Note: I just uploaded another image to the Smilies folder and when I clicked on it's link:
I get this:
403 Forbidden
Access to this resource on the server is denied!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
What are the permissions of
1. The directory ... should be 0755
2. The images ... should be 0644

Also, did you ever try to set up "Hotlink Protect" for the images?
 

army8392

New Member
Messages
13
Reaction score
0
Points
1
Thanks descalzo for the rapid reply...

Just checked the directory, which is set at 0755 and the images was 0755 and just changed it to 0644. Just took a look over at the site and those images are not loading with the same:
403 Forbidden
Access to this resource on the server is denied!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!

Tried the ""Hotlink Protect" for the images" yesterday and got no change at all when the images was loading. Seems that the "Hotlink Protect", or at least on my end, is not working.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Could you post the contents of .htaccess in public_html and public_html/Smilies , if they exist
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
[Moved thread to Free Hosting]
 

army8392

New Member
Messages
13
Reaction score
0
Points
1
Could you post the contents of .htaccess in public_html and public_html/Smilies , if they exist

Just checked and they don't exist descalzo
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Just checked and they don't exist descalzo

At the bottom of cPanel x, click "Reset All Interface Settings," then when loading file manager enable "show hidden files (dotfiles)" - there is indeed a .htaccess in your public_html folder, and it is causing the 403:

Code:
RewriteEngine on

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

I'm not sure why that line is in there 4 times, but it does the same thing - if the file is a jpg, jpeg, gif, png, or bmp, return error 403 (F). If you were trying to do hotlink protection, I'd recommend enabling direct URL access or disabling it altogether for the time-being.
 

army8392

New Member
Messages
13
Reaction score
0
Points
1
Thanks Livewire and after your instructions, I found the .htaccess and should I remove these:

Code:
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

within the .htaccess?

As to hotlink settings, I've tried to disable several times, but when going back, for some reason it is back at enabled.

EDIT: Went ahead and removed the above and everything working just fine now. The only problem I'm still having, is the hotlink disable feature will not work. No matter how many times I click on it and submit, it stays enabled.
 
Last edited:
Status
Not open for further replies.
Top