Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache 2.4 directive changes


Recommended Posts

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

Link to comment
Share on other sites

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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...