Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Forbidden You don't have permission to access /admin/categories.php on this server.


Tony DA SILVA

Recommended Posts

Hello,

 

If I edit a product, and after making some changes, I and make a preview and a update, I get this error message and nothing change.

 

"Forbidden

You don't have permission to access /admin/categories.php on this server."

 

I alreagy have all permissions 0777 on categories.php

 

Do someboddy know what is this problem.

 

Thanks for the help

Link to comment
Share on other sites

try to put permission/chmod 777 or 755 instead of 0777.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Hello,

 

If I edit a product, and after making some changes, I and make a preview and a update, I get this error message and nothing change.

 

"Forbidden

You don't have permission to access /admin/categories.php on this server."

 

I alreagy have all permissions 0777 on categories.php

 

Do someboddy know what is this problem.

 

Thanks for the help

 

Do you have the admin directory password protected on your website?

Link to comment
Share on other sites

I have the solution

 

If in the description of a product your write SET or a word with SET inside (example set or xxxset or xxxxsetxxxx or "set")

 

 

and if you edit the product, and after making some changes, you make a preview and a update, you will get this error message and nothing change.

 

"Forbidden

You don't have permission to access /admin/categories.php on this server."

 

you have to banish (set) in the product page

 

 

 

I would like to know if other user of oscommerce have the same problem.

Link to comment
Share on other sites

  • 2 weeks later...

Guys,

 

I am having the same problem - I couldn't edit anything till I came across this

 

Guess what? The last product I added before this started to happen was a "SET top box".

 

Spooky hey?

 

So I changed the product to STB instead and from them on I could edit a few more things but I still get....

 

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

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.37 Server at www.skunkworks.com.au Port 80

 

 

On almost every type of edit I try to do.

 

Any ideas - please email me....

 

 

[email protected]

Link to comment
Share on other sites

  • 2 months later...

I got exactly the same problem. Tried to add paypal script and now gets

Forbidden

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

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.37 Server at www.maxpassion.co.za Port 80

 

I set CMOD in admin to 755 777 as well as admin/catagories.php

 

Nothing changed. Im stuck. Please help!!!

Link to comment
Share on other sites

If you've been doing the permission changes via FTP, try using your site's Control Panel (provided by your Webhost) instead.

 

FTP won't work 100% of the time.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 10 months later...
I have the solution

 

If in the description of a product your write SET or a word with SET inside (example set or xxxset or xxxxsetxxxx or "set")

 

 

and if you edit the product, and after making some changes, you make a preview and a update, you will get this error message and nothing change.

 

"Forbidden

You don't have permission to access /admin/categories.php on this server."

 

you have to banish (set) in the product page

 

 

 

I would like to know if other user of oscommerce have the same problem.

 

This happens because your server have a security module enabled for Apache. It's called mod_security and can be turned off fully or partially with .htaccess file. In this case mod_security tries to prevent mysql injections and that's why you get permission denied message.

 

More here: http://www.askapache.com/htaccess/mod_secu...ess-tricks.html

 

It can be fully disabled by adding following lines to .htaccess (DANGEROUS):

SecFilterEngine Off

SecFilterScanPOST Off

Link to comment
Share on other sites

  • 4 months later...

hi, Sir :

 

I had same problem as yours at oscommerce, when I add new product, it show that " You don't have permission to access /admin/categories.php on this server. "

 

I search , found that , you have this same problem, and then , someone post list the solution as :

 

This happens because your server have a security module enabled for Apache. It's called mod_security and can be turned off fully or partially with .htaccess file. In this case mod_security tries to prevent mysql injections and that's why you get permission denied message.

 

More here: http://www.askapache.com/htaccess/mod_secu...ess-tricks.html

 

It can be fully disabled by adding following lines to .htaccess (DANGEROUS):

SecFilterEngine Off

SecFilterScanPOST Off

 

http://www.oscommerce.com/forums/index.php?showtopic=273521

 

so, I am not expert of osC, so please someone can help us to solve this problem ~???

 

 

 

 

 

This happens because your server have a security module enabled for Apache. It's called mod_security and can be turned off fully or partially with .htaccess file. In this case mod_security tries to prevent mysql injections and that's why you get permission denied message.

 

More here: http://www.askapache.com/htaccess/mod_secu...ess-tricks.html

 

It can be fully disabled by adding following lines to .htaccess (DANGEROUS):

SecFilterEngine Off

SecFilterScanPOST Off

Link to comment
Share on other sites

Dear all :

 

when I add new product at OSC, it show that " You don't have permission to access /admin/categories.php on this server. ", It happened last week, but it still allow edit those old data inside OSC, by the way, our OSC hosting at other Hosting web site, can we solve this problem by ??

 

brs,

 

~~ iPMan ~~

Link to comment
Share on other sites

  • 3 years later...

I've just encountered this message when adding a new product to a shop that has otherwise been working fine for some time. The word mod_security didn't like in my case turned out to be casino. I was pleased to find an explanation and fix here.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...