Image 403 Forbidden Error - php

I have a website built with wordpress and uploaded on a linux server. It's been working fine for a long time, but yesterday my website started giving me 403 forbidden errors while loading image resources.
But when I open that resource in a new tab, it gets loaded successfully. Then I go back to my website, refresh it, and that particular image gets reloaded now.
I don't know what's going on. I need help.

Incorrect file permissions can cause 403 forbidden error. It makes your web server think that you do not have permission to access these files.
All folders on your WordPress site should have a file permission of 744 or 755.
All files on your WordPress site should have a file permission of 644 or 640
If you have ssh access you can change permissions using this command:
chmod -R 755 /var/www/html/yoursite
If you are using a ftp client like Filezilla you can select a folder, right click and then select File Permissions from the menu.
Also the 403 error is caused by a corrupt .htaccess file in your WordPress site.
You can generate a fresh .htaccess file by logging into your WordPress admin area and going to Settings ยป Permalinks page.

403 stands for permission denied. You need to check the permissions for those image.

Related

Tinymce 404 error but file is on the server

I have a new Wordpress installation which works perfectly on localhost
However, the live version has an issue with TinyMCE
https://toytrainland.com/wp-includes/js/tinymce/wp-tinymce.php
Comes up with a 404 error. however, the file is on the server
How can I fix this?
It may be file permission issue, check your files should having 644 permission and all directories have 755 permission.

Can't get image even if it exist on server - 404 not found?

Even though the image I embed in the code exists in its folder in XAMPP, the browser still logs 404 not found. I guess it is a permission issues so I set for all files the mod of 777 and it works. However, I think it is not safe. What permission I need to change so that the browser can access the image and doesn't allow write and execute?
Standard chmod for web files is 644. That will allow the owner to edit/delete, but everyone else only to read.

Made changes to cakephp view files but changes not showing in browser

This one is quit puzzling to me. Please help
I baked a cake using root via ssh and everything went well except for the fact that i could not edit the view CTP files in dreamweaver. kept getting "access denied. Permission problem".
Via ssh and the cpanel i was able to change the permission to 755, 777. Got an error when attempted to change permission via dreamweaver
After changing file permission, I still got the error "access denied. permission problem.."
I then change the USER who owns the file using chown via ssh
I was then able to edit the file without error. I viewed the edited file via cpanel and realized that the changes took place. Bravo!
However, when i viewed the page in the browser, no changes were apparent.
I cleared the cache several times. My tmp folder is chmod 777
What am i missing?
Are you using Scaffolding perhaps? If so, disable it to see what happens.
Double check if these file names are correct too: Controller, View files and View folder.

wordpress - Error 403 file javascript plugin wordpress

I have problem in my wordpress plugin, website have plugin and in the plugin not load javascript, its say 403 forbidden when I go to link plugin here. it's strange, because the file is exist. how can i solve this?
change your permision of directory and files to 775,
Generally what this means is that the webserver does not have permission to access the file. For example, on OS X, there is a user called _www that needs permission.

can not access the folders created in cpanel

why for the directories i creat getting rwx---rwxand rw----r-- permisions for the files i create?
I cant access a folder by externally via url which have rwx---rwx permition but can access the file which have rw----r-- permision.
Even I change permision to rwxrwxrwx i can not access the folder.
eg:
http://www.example.com/folder/
Gives me 403 Forbidden
403 forbidden on a folder url usually means that your server has folder browsing disabled, and there's no default document (index.html, index.php, etc...) in the directory. Since there's no default content to server, and the configuration doesn't allow for browsing, you get the forbidden error.
That's probably a pre-caution of your webserver, that denies to offer files that have the executable bit (x) set.
Check your servers documentation about the features it offers and which file permissions are needed to be set to make them work with your webserver.

Categories