Jump to content



Latest News: (loading..)

- - - - -

You don't have permission to access /shop/admin/configuration.php on this server

error

  • Please log in to reply
3 replies to this topic

#1   omyrah

omyrah
  • Members
  • 2 posts
  • Real Name:Ashish

Posted 21 May 2013 - 06:20 AM

Dear,

I am getting error,"You don't have permission to access /shop/admin/configuration.php on this server."

As i have installed osCommerce with the help of softaculous from my hosting cpanel.

Can anybody help please....

#2   MrPhil

MrPhil
  • Members
  • 4,141 posts
  • Real Name:Phil
  • Gender:Male

Posted 21 May 2013 - 01:24 PM

Are you on a Linux or Windows server?
Who is listed as the "owner" of the file? Is it the same as the other files on your site?
What are its permissions? On a Linux server, it should be typically 644.
I don't think configuration.php gets invoked with any GET or POST data, so it's probably not "Mod Security" interfering with you. However, if nothing else pans out, you can try disabling mod_security and seeing if it makes any difference. You'll have to ask your host how to do this (or do it for you).

#3 ONLINE   rudolfl

rudolfl
  • Members
  • 129 posts
  • Real Name:Rudolf Ladyzhenskii
  • Gender:Male
  • Location:Melbourne, Australia

Posted Today, 11:13 AM

Hi,
Most likely you are on Linux server and file access permission is wrong. This file should be readable by everyone. Normally permissions for this file should be 444 (not writable by anyone, including owner). 644 will also work (readable by everyone and only writable by owner), but I would suggest 444 as more secure option.
I assume you do not have shell access, but, in any case, you may not be able to change permissions yourself.
Please ask technical support of your hoster to check permissions of this file and set them to 444 if not already set.

Rudolf

#4   MrPhil

MrPhil
  • Members
  • 4,141 posts
  • Real Name:Phil
  • Gender:Male

Posted Today, 01:20 PM

He said "configuration.php", not "configure.php". configure.php has to be non-writable by PHP (444, but sometimes 644 is OK), or you'll get a warning message. configuration.php can be normal permissions (usually 644, but 444 is OK).