Sam Coltier Posted February 16, 2005 Share Posted February 16, 2005 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 More sharing options...
Guest Posted February 16, 2005 Share Posted February 16, 2005 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 <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2005 Share Posted February 16, 2005 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 More sharing options...
TCwho Posted February 17, 2005 Share Posted February 17, 2005 and may sound silly but, make sure you are actually editing code and not the comments sections...comments sections has a register_globals part as well..... Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00 Link to comment Share on other sites More sharing options...
mat123slade Posted February 24, 2005 Share Posted February 24, 2005 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 More sharing options...
Guest Posted February 24, 2005 Share Posted February 24, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
ax145 Posted February 24, 2005 Share Posted February 24, 2005 make sure you restart apache after you are done updating php.ini Link to comment Share on other sites More sharing options...
mat123slade Posted February 24, 2005 Share Posted February 24, 2005 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 More sharing options...
Guest Posted February 24, 2005 Share Posted February 24, 2005 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 More sharing options...
mat123slade Posted February 24, 2005 Share Posted February 24, 2005 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 More sharing options...
♥Vger Posted February 25, 2005 Share Posted February 25, 2005 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 More sharing options...
Guest Posted February 25, 2005 Share Posted February 25, 2005 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 More sharing options...
Guest Posted February 25, 2005 Share Posted February 25, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
mat123slade Posted February 25, 2005 Share Posted February 25, 2005 Thanx a lot. Everything is working now finaly. I have other urgent work to be done, then I will come back and go through everything explained here. I appreciate your time and effort. Thanx again. Link to comment Share on other sites More sharing options...
♥Vger Posted February 25, 2005 Share Posted February 25, 2005 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 --------------- <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2005 Share Posted March 7, 2005 so whats the best way around it? Link to comment Share on other sites More sharing options...
♥Vger Posted March 7, 2005 Share Posted March 7, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.