Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

register_globals set to Off


Sam Coltier

Recommended Posts

I edited the php.ini file and set register_globals to On, but I'm still getting the fatal error in OSCommerce install.

 

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

 

I'm running Apache/2.0.52 (Unix) PHP/4.3.9 and MySQL 4.0.21 on Mac OS X 10.3.8

 

Any ideas?

 

Thanks

Sam

Link to comment
Share on other sites

I edited the php.ini file and set register_globals to On, but I'm still getting the fatal error in OSCommerce install.

 

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

 

I'm running Apache/2.0.52 (Unix) PHP/4.3.9 and MySQL 4.0.21 on Mac OS X 10.3.8

 

Any ideas?

 

Thanks

Sam

Link to comment
Share on other sites

Sam,

 

I had the same problem. You need to make sure you are editing the correct php.ini file. Is your web server your local host, is it on a remote server? If it is on your local host and you are serving web pages from your Apache server, the file you want to edit is in

 

volume_name/usr/local/php/lib/php.ini

 

If you cannot see your invisible system files and directories, download TinkerTool. It will allow you to show and hide them. Open php.ini with TextEdit, use the Edit-->Find option on the menu bar and find the actual setting and change it to on.

 

Hope this helps.

 

Jerry Nielsen

Link to comment
Share on other sites

My host has just disabled Register Globas, meanning my website has gone to sales on one day, to FATAL ERROR: register_globals is disabled in php.ini, please enable it! displayed the next day. Is a hosting company allowed to change this setting, and why would they do so?

 

Thanx for your help.

Link to comment
Share on other sites

My host has just disabled Register Globas, meanning my website has gone to sales on one day, to FATAL ERROR: register_globals is disabled in php.ini, please enable it! displayed the next day. Is a hosting company allowed to change this setting, and why would they do so?

 

Thanx for your help.

There is absolutely no good reason to change register_globals on a regular basis.

 

If that is the level of services your host is providing. It definitely is a good idea to get a new host, who knows what they are doing.

Link to comment
Share on other sites

I'm guessing and hopping it is a temporary problem they are having. But I have not been noticed about this and this site has been running on this fast and reliable server for a couple of years now. So I'm a good customer ;-) (Well at least not a bad one)

 

I'm hoppping to hear from them to know what to do, as the site cannot stay like this long, this one of the top companies in the world for what it does.

 

If you say there is no reason for disabling it, I can only hope it's a fault on their site. If it isn't I must prepare right now to react to the problem, Is there a hosting company you would recommend for hosting a sales website, that supports about a 1000 different articles in an oscommerce environnement, with about a giga of space?

 

Thanx again for your help by replying so fast !

Link to comment
Share on other sites

This is the first time I've heard of a host how keeps changing configurations as well. If you are paying for a dedicated host with SLA (service level agreement), you should be able to charge them. If not, I'm afraid that all you can do is complain and hope that they'll have it under control.

 

Anyway, good luck!

Link to comment
Share on other sites

I don't really wan't to have to charge them, If they are having problems with somebody hacking into them or have a good excuse, it can happen to anyody, but if they did change the system, than the least of things would have been to warn me... It's costing me (as you might guess)... !! If they changed it without letting me know, then they will hear from me.

 

EDIT : It's cost money, but is back and working now... Thanx a lot for your help. I don't know what the problem was but it's back. I was so worried to start with that I had done something wrong.

Link to comment
Share on other sites

You will find that your hosting company has permanently set Register Globals to 'Off', and that they won't change their mind and reverse it. Register Globals set to 'On' is a security risk, especially if the server setup is otherwise not so secure.

 

If they have been a good hosting company then I see little point in switching - as the company you move to could switch off register globals at any time.

 

Your best move is to install the Register Globals patch which will allow you to work with Register Globals set to 'Off' on your current host. If your site is a default osCommerce install, with just a few changes to the stylesheet then you can install the contribution below my name - Register Globals Patch Files - whcih contains the default osCommerce files that needed to be modified with the patch (patch is already applied to these files). If you have modified your site then you will have to install via Richard Bentley's original contribution which lists all of the changes that have to be made, and to which file.

 

Vger

Link to comment
Share on other sites

If your host can't make up their mind and is still switching the register_global from on to off then back to on again ......

 

Please let me know the name of your host.

Link to comment
Share on other sites

If your host can't make up their mind and is still switching the register_global from on to off then back to on again ......

 

Please let me know the name of your host.

 

 

You might have gott this already but if not here is what you can do. This snipit is part of the .htaccess that comes with OsCommerce, just make sure you uncomment the "php_value register_globals 1". If this isn't there then put this in your .htaccess file under the following directories, even if they disable register_globals you can over ride it with your .htaccess file.. This is what I do...

 

catalog/.htaccess

 

and

 

catalog/admin/.htaccess

 

----- begin ----------

 

<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

php_value register_globals 1

</IfModule>

 

---- end ---------------

Link to comment
Share on other sites

Yes, you can do that - but if your hosting company has decided to turn off Register Globals for security reasons and they find out you have enabled them for your site then don't be surprised if they shut your hosting account down. On a shared server if a hacker can breach security by getting access to your site by you turning register globals back on, then they can access every other site on the same server via your website.

 

All new websites I am setting up have the register globals patch applied and I use .htaccess to turn register globals off. That way when it becomes necessary to turn register globals off on the servers our sites will be fully prepared for it.

 

Vger

You might have gott this already but if not here is what you can do. This snipit is part of the .htaccess that comes with OsCommerce, just make sure you uncomment the "php_value register_globals 1". If this isn't there then put this in your .htaccess file under the following directories, even if they disable register_globals you can over ride it with your .htaccess file.. This is what I do...

 

catalog/.htaccess

 

and

 

catalog/admin/.htaccess

 

----- begin ----------

 

<IfModule mod_php4.c>

#? php_value session.use_trans_sid 0

php_value register_globals 1

</IfModule>

 

---- end ---------------

Link to comment
Share on other sites

  • 2 weeks later...

If your hosting company has permanently set Register Globals to 'Off' in php.ini then install the Register Globals patch, which allows osCommerce to work with Register Globals 'Off'

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...