Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.i


edbrown

Recommended Posts

I'm trying to install OsCommerce on a shared server and I'm getting the following error:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

I don't have access to the PHP.INI file. How can I install OsCommerce?

Ed Brown

www.go-britain.com

Link to comment
Share on other sites

Try to enable register_globals just for yourself ...

I modified my .htaccess file and included following lines at the beginning

 

# Set Globals ON
php_flag register_globals on

 

It worked just fine locally (apache/win XP) and on my online 'net space' (shared web server on apache/*nix).

 

Last but not least, make a search in osCommerce forums, it's a question/problem discussed very often until now!

 

Antonios

Antonios

 

olympicslogo_en.gif

Link to comment
Share on other sites

go here to understand how to do things.

 

basically to set via htaccess file you have to have your httpd.conf file set to allow overrides.

 

do you have access there?

Link to comment
Share on other sites

Ah, well then ...

 

If you are good in php or if you have the necessary courage and patience, you could try to apply one of the user submitted propositions on www.php.net, on how to overturn the "register_globals off" and then "turn off" (by commenting out) the osC warning/error message. (Please note, you are on your own for doing this, it's just an idea that could work and I don't know if there are any security risks for your future shop).

 

You could also try to install the CVS version of osC (with any advantage and disadvantage that this version may have), which, if I remember well, is (or at least the catalog is) "register_globals off"-compliant ...

 

Otherwise ... wait for osC 2.2 MS 3 to be released :-) or change the hosting company! B)

 

If you need to know more about .htaccess, make a google search (that's the answer for the "where" question!) ;-)

 

Antonios

Antonios

 

olympicslogo_en.gif

Link to comment
Share on other sites

I use Hostway as my ISP and they came back with the solution below:

 

Hi,

 

You are setting up a third party product, OsCommerce, on your shared hosting site. it is apparent that part of it's configuration, this requires a php.ini file to be created and then uploaded to your FTP web site, into the following path:

 

/path/removed/for/security/cgi-bin/

 

The php.ini file is a not a standard file that ISP's such as Hostway will provide automatically, it is your responsiblity as the site administrator to create this.

 

For more info on how to create a standard php.ini, see:

 

http://uk2.php.net/configuration

 

http://tracker.tradedoubler.com/click?p=12...=967926&g=19587

Ed Brown

www.go-britain.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...