Jump to content

Recommended Posts

Posted (edited)

This is simply a heads up about the Apache 2.4 directive changes that may be needed
throughout the .htaccess files utilized by OSCommerce CE to remove this error.log entry
AH01797: client denied by server configuration
vsn 1.0.1.x
vsn 1.0.2.x

These contained lines 
<Files *>
Order allow,deny
Allow from all
</Files>

will cause the error 
AH01797: client denied by server configuration

To stop the error and work properly with Apache 2.4 I edited the affected files with this

<Files *>
# v2.2 Order allow,deny
# v2.2 Allow from all
Require all granted
</Files>

For those unfamiliar the # indicates a comment

The .htaccess files are in these locations (This is a list of ALL .htaccess files - NOT all will require editting)

/apache/vhosts/store/chadmin/.htaccess
/apache/vhosts/store/chadmin/backups/.htaccess
/apache/vhosts/store/chadmin/images/.htaccess
/apache/vhosts/store/chadmin/includes/.htaccess
/apache/vhosts/store/download/.htaccess
/apache/vhosts/store/ext/.htaccess
/apache/vhosts/store/images/.htaccess
/apache/vhosts/store/includes/.htaccess
/apache/vhosts/store/includes/work/.htaccess
/apache/vhosts/store/pub/.htaccess

Edited by Chadduck

Share this post


Link to post
Share on other sites

At what version is the 2.4 syntax supported? Presumably there's a crossover.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: https://github.com/gburton/Responsive-osCommerce/releases

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
14 minutes ago, BrockleyJohn said:

At what version is the 2.4 syntax supported? Presumably there's a crossover.

I really have no idea - Last week I installed a CLEAN Phoenix-v1.0.1.1 to take a look and start the upgrading process from 2.3.4.x

One of the first things I do is ensure that the basics are working, in other words a CLEAN error.log which is when I discovered the AH01797 error.  Researching it is when I discovered the change in the directives.  

The fix to remove that error was as I indicated above.  I simply commented out the existing lines and added what was indicated by the various replies on the "fix" sites - stackexchange, askubuntu, etc

 

Share this post


Link to post
Share on other sites

@burt

Thought it was wise to mention you because this might be imporant for Phoenix

 

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, BrockleyJohn said:

At what version is the 2.4 syntax supported? Presumably there's a crossover.

I figured I gave a relatively bland answer - on Ubuntu to check the apache version on the server command line you can issue 

apache2 -v

Every server I have running 3 different versions of Ubuntu are showing 

Apache/2.4.xx (Ubuntu)

If you can not find it on your own you should check with your ISP / host

Edited by Chadduck

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×