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.

Share this Article
Carrie Smaha
Carrie Smaha Senior Manager Marketing Operations

Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.

More Articles by Carrie