Access forbidden in Magento - magento

Can you please help me,
i am trying to access the direct image file from the media/customer/ folder, but its saying something like
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
05/15/12 14:13:26
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
Any help please !! I know, its not an error from xampp, its something from magento, please help me out
many thanks in advance

I venture to doubt, that this message is produced by Magento.
It exactly looks like the default xampp/apache/error/HTTP_FORBIDDEN.html.var of XAMPP:
Content-language: en
Content-type: text/html; charset=ISO-8859-1
Body:----------en--
<!--#set var="TITLE" value="Access forbidden!"
--><!--#include virtual="include/top.html" -->
<!--#if expr="$REDIRECT_URL = /\/$/" -->
You don't have permission to access the requested directory.
There is either no index document or the directory is read-protected.
<!--#else -->
You don't have permission to access the requested object.
It is either read-protected or not readable by the server.
<!--#endif -->
<!--#include virtual="include/bottom.html" -->
----------en--
Unfortunately you don't write anything about how your code tries to access the image.
Please post the relevant code parts.
And please find the proper 403 message in the Apache error_log and post it, too.

You should check your permissions settings in the media folder.

It looks like the directory where Magento is installed does not have permissions to access the Magento directory. This is an Apache error, not a Magento one.

Related

Magento: 500 Internal server error in admin

I keep getting the 500 internal server error. I getting 500 internal server error when I am importing customer records by csv file from magento admin side. I can't found any solution. I have given the 755 permission to all the required files and folders of magento. How i can resolve this error, any one have idea for this solution.
.htaccess by default in Magento has this options disabled that are specific to 1and1 hosting, I would try enabling them:
#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php
You may also want to read over:
http://www.magentocommerce.com/boards/viewthread/2019/
http://www.magentocommerce.com/boards/viewthread/199907/
You should find the server "var/log" but not inside the magento's "var/log"
because this is the server error - 500 internal server
For my experience, it seems the php process is out of memory during importing/exporting data.
Also there are few other reasons about the settings,
e.g. max. post variables are out of limit, upload file size exceed limit , you may check the server log to know what is the exact problem.
Try enable the logging
System - Configuration - Developer - Log Setting

Access forbidden for some files locally on xampp , Windows

I have a folder which with index.html in it, this works fine, and images inside it work fine, but when i link to other files like css or js files and try and read them i get this error...
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Ive tried changing code in /conf/extra/httpd-xamp.conf
...
Order deny,allow
Deny from all
to
Deny From none
Allow from all
but no luck,
Any suggestions?
In the end this was to do with the files being encrypted, they were in green text on windows.
This had nothing to do with XAMPP.

WP8 In-App purchase testing

I followed this guide here http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689%28v=vs.105%29.aspx#IAP_MockService to set a IIS service for in-app purchase testing, but when I try to open http://localhost/v8/help I am getting the message bellow
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Detailed Error Information:
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL
http://localhost:80/v8/help/
Physical Path C:\IapcatalogMockService\CatalogServiceMock\v8\help\
Logon Method Anonymous
Logon User Anonymous
Anybody knows what is wrong ?
I will appreciate any help.
Thank you.
I have the some problem.
Then solved by use source code to rebuild the website and re-deploy.
Some time, after re-deploy it show config section error, you can just remove the config section in web.config file.
It works for me.

Object not found

I get this error when i open the address "http://localhost/phpmyadmin/"
Object not found!
The requested URL was not found on this server. The link on the
referring page seems to be wrong or outdated. Please inform the author
of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404 localhost Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
How can i fix this?
I am using Windows 7 home basic and xampp for Windows .
You have to install phpMyAdmin first. See the phpMyAdmin website.

Magento Access denied for user error

I decided to give a try to Magento. I have used my hosting providerĀ“s service Simple Scripts to install it in a subdomain. After succesfull install a have tried to go to home page but this error has occured:
SQLSTATE[00000] [1045] Access denied for user: 'testing_1303#10.10.29.3' (Using password: YES)
I have searched google but found nothing. I have checked my data in app/etc/local.xml file. host, user, password, dbname everything is OK. I also checked minimal requirements with magento script and a I have passed all requirements.
Do you have any sugestions?
One more clue: I have renamed local.xml file to force Magento to install again, but it does not start the instalation. My browser throw this error: Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
SOLUTION:
And here is the solution with help of my hosting provider:
In the local.xml file put this as a host:
<host><![CDATA[127:0:0:1:/tmp/mysql50.sock]]></host>
This is almost definitely not an issue with Magento.
If you are sure your database credentials are correct then the problem probably lies in the fact that you are trying to connect to a non-local database server and the server does not allow remote connections.
SOLUTION: And here is the solution with help of my hosting provider: In the local.xml file put this as a host:
<host><![CDATA[127:0:0:1:/tmp/mysql50.sock]]></host>
Try emptying the var/ folder. Maybe it's a cache issue.

Resources