OsCommerce register_globals error

When installing OsCommerce for the first time you may receive this error:

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

To enable register_globals for your account, you will need to edit the .htaccess file in your OsCommerce root directory. There should already be an .htaccess in there, and you should just have to comment out these lines (may vary per version)

php_value register_globals 1

If you are on a PHP 5 server, you should change mod_php4.c to mod_php5.c. If you do not have an .htaccess in your OsCommerce directory, you can simply create one and insert the above lines.

CS
Carrie Smaha Manager, Demand Generation

More Articles by Carrie

Thoughts on “OsCommerce register_globals error

  • Hi 

    I have question like how to change mod_php 4.c to mod_php5.c 

    Can you please give me steps or file location

    Thanks

Was this article helpful? Let us know!