.htaccess settings for osCommerce 2.2 on LAMP Architecture

Last week, we had project where we have to install and customize the new osCommerce 2.2rc2a on one of our client server having php5 and apache 2.2

The problem here is that the apache 2.2 by default does not takes the long arrays that is $HTTP_GET_VARS, $HTTP_POST_VARS

So, in order to run the osCommerce on the apache2.2 and php 5.0, we did a lot of googling, this is could be helpful to others to integrate osCommerce 2.2 on apache 2.2 with php5, we just need to add or update the .htaccess file with the following information.

# Explorer browsers

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent “.*MSIE.*” \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# PHP configuration values
#    php_value register_globals On

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent “.*MSIE.*” \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# PHP configuration values

<IfModule mod_php5.c>
php_flag register_long_arrays On
php_flag register_globals On
php_flag display_errors Off
</IfModule>

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value register_globals 1
php_flag display_errors On
php_flag track_errors Off
</IfModule>

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • MySpace
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Switch to our mobile site