Page 1 of 1
Install error:Error: register_globals is enabled!
Posted: Sun May 13, 2007 8:06 am
by enzearth
I have installed on a unix server thought I had done everything ok.Deleted installation folder.Then got this.Help?
Re: Install error:Error: register_globals is enabled!
Posted: Sat Jun 02, 2007 4:37 am
by Daniel
Goto php.ini and change registered globals to off.
Re: Install error:Error: register_globals is enabled!
Posted: Tue Jun 12, 2007 12:29 pm
by enzearth
Thanks Daniel ,I tried contacting my host to see if they could help.They tell me that because I am on a shared server they couldnt modify the php ini just for me.Tried commands in htaccess but to no success.Any other way around it.(I wonder how many others are on shared servers)its a lot more expensive to go to a dedicated server or install my own.I suppose I just need to be put out of my misery.Its such a good product.
Re: Install error:Error: register_globals is enabled!
Posted: Tue Jun 12, 2007 4:39 pm
by Daniel
Most companies will aloow you you some way of shutting off globals.
Globals is a major security risk and has been completly removed as over PHP6.
You can try switching off globals using ini_set() or using .htaccess.
Re: Install error:Error: register_globals is enabled!
Posted: Tue Jun 12, 2007 4:45 pm
by Daniel
open up .htaccess and change:
#php_flag register_globals off
to
php_flag register_globals off
Re: Install error:Error: register_globals is enabled!
Posted: Fri Jun 15, 2007 5:06 am
by enzearth
Thanks again Daniel.Tried changing htaccess ,still no go.Can you expand a bit more on ini_set().
Re: Install error:Error: register_globals is enabled!
Posted: Fri Jun 15, 2007 4:16 pm
by Daniel
try putting ini_set("register_globals","Off"); at the start of the index.php in the main directory and admin directory.
Re: Install error:Error: register_globals is enabled!
Posted: Sat Jun 16, 2007 10:15 am
by enzearth
Thanks once again Daniel for your time with this.I tried the putting ini_set("register_globals","On"); in both index files and still no go.It seems its time to give up,i will try another provider,maybe they will be more flexible.Good Luck to you sir and thanks again.
Re: Install error:Error: register_globals is enabled!
Posted: Sat Jun 16, 2007 6:26 pm
by Daniel
If you can not disable register globals your hosting company is providing an opening for their customers sites to get hacked.
Re: Install error:Error: register_globals is enabled!
Posted: Thu Jun 28, 2007 4:19 pm
by ysayita
I got the same problem and contacted to my host too. I was told that it was already turned off. But it was giving the error. After that I recognised that the problem was solved automatically. I guess the hosting company restarted the IIS or the server itself. You may want your host to do it if the register_globals flag seem turned off in the php.ini file. Because most of them keep it turned off. As I read from your messages they did not mentioned about its current state.
Re: Install error:Error: register_globals is enabled!
Posted: Tue Jul 03, 2007 7:50 pm
by rwallin
Hey guys,
I'm new here and ran into the same problems of being on a shared server with Register Globals set to ON in a php.ini file I had no control of and wanted to share a fix that worked for me.
I tried making the changes in the .htaccess file but that threw a server configuration error.
Adding the ini_set("register_globals","Off"); to the index.php files in the main directory and admin directory did absolutely nothing.
I finally found a fix that worked for me and was to create a php.ini file that had one line of code and save it to the root of the store and admin directory.
everything works beautifully now
Re: Install error:Error: register_globals is enabled!
Posted: Fri May 09, 2008 9:13 am
by fvergara
I have the same problem, but i cant change the Error: register_globals is enabled! making all the another steps.
PLEASE HELP ME!
Re: Install error:Error: register_globals is enabled!
Posted: Tue May 13, 2008 4:56 am
by JNeuhoff
This can be indeed a problem with many shared hosting accounts. register_globals should be set to off for security reasons and is the recommended default value for PHP 5.x. We set up six OpenCart based websites with different customer accounts on MDWebHosting, and on one of their servers the register_globals kept going back to the wrong value (On) instead of Off. After several weeks we finally asked them to move account to another server box where we knew for sure that register_globals was Off all the time.
As Daniel pointed out, having register_globals=On is an open invitation to hackers, and if the webhosting company doesn't change it to Off, then it is time to find another one. IXWebHosting is a good one which we use for our own web hosting needs.
Re: Install error:Error: register_globals is enabled!
Posted: Sun Jun 01, 2008 11:54 am
by david.gilbert
try adding the following code to the very first line of .htaccess
Re: Install error:Error: register_globals is enabled!
Posted: Thu Jun 26, 2008 4:37 am
by Lobsterman
For those who did not see this, juste create a php.ini
rwallin wrote:
Hey guys,
I'm new here and ran into the same problems of being on a shared server with Register Globals set to ON in a php.ini file I had no control of and wanted to share a fix that worked for me.
I tried making the changes in the .htaccess file but that threw a server configuration error.
Adding the ini_set("register_globals","Off"); to the index.php files in the main directory and admin directory did absolutely nothing.
I finally found a fix that worked for me and was to create a php.ini file that had one line of code and save it to the root of the store and admin directory.
everything works beautifully now
Re: Install error:Error: register_globals is enabled!
Posted: Fri Jul 11, 2008 2:43 am
by virtualgeorge
I am on a shared server and today something changed so a few sites I have using opencart all get the register_globals error.
Changing the .htaccess file won't work on my server but the php.ini file did work. But I couldn't just put it in the root & admin folders. I had to put it in ALL folders for it to work.
Re: Install error:Error: register_globals is enabled!
Posted: Fri Jul 11, 2008 2:49 am
by Luvz2drv
yes the php.ini will only work on the current folder.. so yes you would have to copy that from folder to folder
Re: Install error:Error: register_globals is enabled!
Posted: Fri Jul 11, 2008 7:00 am
by bruce
Try sorting it out with your hosting provider and if they will not set it back... change.
Re: Install error:Error: register_globals is enabled!
Posted: Thu Jul 17, 2008 12:52 am
by JNeuhoff
Yes, indeed, on most shared servers, such as IXWebHosting or HostGator or MDWebHosting, PHP runs as CGI, in which case the approach with some entries in the '.htaccess' file won't work, but rather it then has to be done in a separate 'php.ini' file which is either located in your 'public_html', 'public_html/cgi-bin', or 'cgi-bin' directory depending on how the web hosting has been configured.
Re: Install error:Error: register_globals is enabled!
Posted: Thu Jul 24, 2008 2:51 am
by virtualgeorge
For my hostgator sites it needs the php file in every folder to work.
So I put the php.ini in the root and then so I don't need to copy to each folder, I put this in the .htaccess
suPHP_ConfigPath /home/USERNAME
order allow,deny
deny from all
I just realized that when I installed the latest version of OC, I didn't have to do this, it worked without it.