Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 07-19-2004, 04:29 PM
Archertech Archertech is offline
Baby Croc
 
Join Date: Apr 2004
Location: Fort Worth
Posts: 58
Default

Why is the register_globals=on

When it has been clearly established that is open up security vulnerabilities ??? It even comes OFF by default on all PHP versions now .. then why leave it on ???
Reply With Quote
  #2  
Old 07-21-2004, 12:35 PM
msd msd is offline
Hatchling Croc
 
Join Date: Apr 2004
Posts: 22
Default

I have the same question... The security problem is critic...
And some scripts do not work properly with register_globals = on.
Support, would it be possible to have it switched to off?!
Reply With Quote
  #3  
Old 07-21-2004, 11:24 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

I will speak to Brent about this and see what can be done.
Reply With Quote
  #4  
Old 07-22-2004, 02:16 AM
sonic sonic is offline
Baby Croc
 
Join Date: Nov 2003
Posts: 96
Default

A lot of scripts would not work with register_globals=OFF, for example OSCommerce would not work. I believe it is better to have register_globals=on server wide (as it is now), and set it off locally using your .htaccess

Cheers
Reply With Quote
  #5  
Old 07-22-2004, 11:00 AM
vandora vandora is offline
Hatchling Croc
 
Join Date: Jun 2004
Location: Miami, FL
Posts: 41
Default

I've seen many problems with php scripts and register_globals off... please don't turn it off!
Reply With Quote
  #6  
Old 07-22-2004, 06:16 PM
Archertech Archertech is offline
Baby Croc
 
Join Date: Apr 2004
Location: Fort Worth
Posts: 58
Default

There are even bigger problems with register_globals = on ... like account susceptible to hack attacks on php scripts ... So its a simple pick ... Fix your scripts, Get Updated versions OR ... be susceptible to attacks on your websites ... allowing people complete access to your accounts .... i mean ... it doesnt take rocket science to put 2 and 2 together.
Reply With Quote
  #7  
Old 07-23-2004, 12:59 AM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Ok, the general consensus is that if we were default this to OFF, we would see a rapid increase in support emails and forum posts from people asking why their scripts stopped working.

We can't please everyone, so instead what we try to do is please the majority, and from what I'm hearing, the majority of people require this to be ON.

Also, as sonic mentioned, you do have the option to disable this using an .htaccess file.
Reply With Quote
  #8  
Old 07-23-2004, 07:25 PM
msd msd is offline
Hatchling Croc
 
Join Date: Apr 2004
Posts: 22
Default

Ok. I don't want to cause trouble to other people... just want to solve mine...
In order to set it OFF, I added...
php_flag register_globals 0
... in my .htaccess. But now I get a 500 Internal server error: "The server encountered an internal error or misconfiguration and was unable to complete your request". Any idea about how to solve this problem?!

Thanks!!
Reply With Quote
  #9  
Old 07-23-2004, 07:39 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

I would think that "0" would work, but try it with "off" instead...

php_flag register_globals off
Reply With Quote
  #10  
Old 07-24-2004, 02:43 AM
sonic sonic is offline
Baby Croc
 
Join Date: Nov 2003
Posts: 96
Default

It should be:

php_value register_globals 0

HTH
Reply With Quote
  #11  
Old 07-28-2004, 01:38 AM
msd msd is offline
Hatchling Croc
 
Join Date: Apr 2004
Posts: 22
Default

Hi,

Jutin and sonic, thanks for the help. Just in case, I've already tried both options (0 and off), but the 500 error continued.

So, I tried to set it to 1 (ON), and the 500 error continues... So, my guess is that I don't have permission to have a .htaccess file. Is that possible?!

Before I ask support about this, does anyone else have a .htaccess file (changing the register_globals) working?!

Thanks!!!
Reply With Quote
  #12  
Old 07-28-2004, 01:43 AM
Archertech Archertech is offline
Baby Croc
 
Join Date: Apr 2004
Location: Fort Worth
Posts: 58
Default

No ... you do have permissions to a .htaccess file .. are you sure you named it correct ?? Windows will not let you name the file starting with a "." therefore you have to rename it AFTER you upload it.

theoratically .. .htaccess files can be used inside ANY folder of your public_html .... but puttin it on the home directory is a good idea.

I am myself using .htaccess to hide PHP Sessid ... and it seems to be working like a charm. Do check your settings and file name.
Reply With Quote
  #13  
Old 07-28-2004, 02:02 AM
sonic sonic is offline
Baby Croc
 
Join Date: Nov 2003
Posts: 96
Default

Quote:
Originally Posted by msd
Before I ask support about this, does anyone else have a .htaccess file (changing the register_globals) working?!
It works fine for us

Cheers
Reply With Quote
  #14  
Old 07-28-2004, 02:11 AM
msd msd is offline
Hatchling Croc
 
Join Date: Apr 2004
Posts: 22
Default

Hi Archertech,

Thanks for you help!
The .htaccess file was fine. But it was not in my home directory.
Based on your comment, I edited the .htaccess file that was at my home directory (I haven't noticed I had one there before... ), adding the line:

php_value register_globals 0

But the 500 error happened again... when I remove this line, it works fine (no error). So the problem really seems to be when I try to change the php_flag... Any suggestions?!
Reply With Quote
  #15  
Old 07-28-2004, 02:13 AM
msd msd is offline
Hatchling Croc
 
Join Date: Apr 2004
Posts: 22
Default

Thanks sonic.

So, I'll contact support... it seems to be a specific problem with my account ...

Thanks to everyone!!!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Open] Using Godaddy Domain reseller account with autopilot? magicman Shared Hosting Support 4 08-04-2004 10:39 AM
[Open] Backing up MySql database ravigsc Shared Hosting Support 0 07-06-2004 08:39 AM
[Open] Transfer sgcom Shared Hosting Support 2 07-03-2004 11:03 PM
[Open] Statistics toddmedia Pre-Sales Questions 6 06-30-2004 04:09 PM

All times are GMT -5. The time now is 08:39 PM.