Drupal 6 register_globals is enabled

Drupal install

I am learning Drupal finally.

As a person who learns by doing, I have three separate Drupal installs going at once and I expect to have two working websites out of the deal within a month.

Don’t worry, I’ll keep you updated.

I am using Drupal 6.16.

First thing I ran into is the register_globals is enabled issue. To correct this, you need to add a line of code to the php.ini file. You might not have one of those. You can create one if you are feeling especially creative. I tried. It broke my site. I am using Hostgator hosting which I highly recommend [affiliate link]. To get a php.ini file that works, just hop onto the Hostgator chat and request one.

Once you have that php.ini file, just add this to the end of the php.ini file:

php_flag register_globals 0

I usually use Coda for code editing. I know there are better apps out there for this, but I really like the ftp editing abilities. I save, the file is uploaded and done. No download and change, upload, etc. It’s easy and I like it.

The point is, you can’t use Coda for this. You have to log in to the cpanel and select FILE MANAGER. Select the newly added php.ini and edit.

Add that one line of code to the end and save. Problem solved.

Note: this works for Hostgator hosting. If you are on another web host there are other options available. Here are a few: http://drupal.org/node/216882

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)