Forbidden - You don't have permission to access this resource - Laragon - wordpress

I had to install Windows again today. The Laragon folder stayed in the same place. I installed Laragon again too and it worked again but when I access the sites locally the images do not appear.
When I try to access the file via browser like this:
http://localhost:90/mysite/wp-content/uploads/2022/08/logo.png
The message appears:
Forbidden
You don't have permission to access this resource.
It seems to be a folder permission issue.
Does anybody know how to solve this? I use Windows 10.
I am using Laragon 4.0.16 with Apache httpd-2.4.47-win64.
Thank you for your help.

This can have several causes.
You may not have set the required permissions for the folder or file.
The .htaccess does not contain all the required information.
The VirtualHost has an invalid value.

Related

Getting nginx 404 error on uploaded files

I am using PHP (5.3) to upload jpeg files, create folders for those files and store them. I have a development version and a live version both running on the same server (CentOS 7, Apache, Plesk 12).
On the live version, I am experiencing no problems, but on the dev version, the files are uploading successfully but I am getting nginx 404 errors when trying to access them through the browser.
If I try to access something which doesn't exist, I get a standard 404 error (not an nginx one).
When checking the access_log, I see a 200 code for the files.
Nothing in the error_log nor in the nginx error log.
No differences in PHP code, folder structure or configuration.
I recently changed servers and this is the first time I have attempted this upload on the dev system on this new server. Live version is used daily for this activity.
If I try to access older uploads on the dev server, they all work fine. It is only affecting new uploads.
Permissions and ownership are the same for both live and dev systems and old/new folders/files.
If I manually upload a jpeg to the folder, it also triggers an nginx 404 when accessed.
I have no experience with nginx so I am at a loss as to what I can try to resolve this issue.
It looks like you have upload and access files in one place but checking log in another place.
Are you sure you have no issues with domain name resolving?
Also it can be issue with virtual host - when you access file it overtaken by some other virtual host. It maybe default host for IP address.
I recommend you grep all system and vhost logs for file you have trying to access.

Access Forbidden Error in XAMPP

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
Error 403
HELP!
I am getting this error whenever I am trying to activate any plugin in my wordpress site in localhost (XAMPP) which I cloned from my live site. And same error I am getting when I am trying to change setting/reading options.
HELP!
check the permissions on the plugin folder, make sure it is readable by the web server.

Can't access drupal 6 pages after migration

Please I just moved a drupal 6 site from a Suse Linux server where its working well to a Mac lion server where i have set up a test domain for it. I have successfully imported the existing database and configured settings.php with exactly the same database name, username, password and server name.
when i enter the url of the test domain on the server, I can see the index page of the site but when i click on any of the links, i get an error message like this one "The requested URL /content/about was not found on this server."
Please does anyone have an idea on how i can solve this problem? I copied the entire sites folder and database including the .htaccess folder.
Thanks.
First, try to access the internal pages using ?q=. e.g. site.com/?q=admin. And disable clear URL.
Make sure you have uploaded drupal's default .htaccess file to your websites root. Apparently because you worked on MAC, you forgot to upload the .htaccess file, because it's hidden by default.
Hope this helps.

I have ActivePerl64 5.16.1 installed alongside IIS7

I have ActivePerl64 5.16.1 installed alongside IIS7 on SBS2008
When i browse the site i get a 403 permission error.
I have checked all the permissions on the site root folder and all the logon credentials.
if i turn all directory browsing on, i can browse the folder, one level up.
the site is an instance of OTRS.
any help gratefully received.
You should make sure IIS_IUSRS has 'owner' permissions on the OTRS folder, this way you actually have permissions to see the contents in the OTRS folder, and it allows you to install packages as well.

iis 7 \ windows 7 asp.net access is denied

I am trying a very simple action of saving a file into a folder of mine. I am hosting my application on windows 7 using iis 7. When I try saving my file I get the following error:
Access to the path 'C:\MyWebsite\MyFolder' is denied
I am not impersonating, I have given network service full control on the folder. What can be causing this?
Thank you!
Sorry: My mistake, apprently I have an installation of iis 7 (not 7.5)
If you never solved this, something else to check - are you overwriting an existing file? If so, make sure it's not read-only. That will give you this same error, and none of the usual permission changes will fix it.
I had a similar setup and had tried everything. That finally did it.

Resources