I am brand new to Drupal and having trouble installing it. I am working on a 1and1.com server space. I need to know how to disable the register_globals value. Here is the error message I get during step two of the installation process:

register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register globals Enabled ('1'))

Comments

jaydoubleu’s picture

StatusFileSize
new52.21 KB

The error message is shown in the screen shot below.

Morn’s picture

From the documentation on shared hosting on 1 and 1
Fix:
Add the following line to the existing .htaccess file in the Drupal root directory (near the beginning of the file )

AddType x-mapp-php5 .php

This works because the default for php V5 is register globals off

Morn’s picture

Status: Active » Fixed

set to fixed

jaydoubleu’s picture

Thanks Morn- that snippet of code seemed to work. It took me to the next step.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Ms. James’s picture

i don't see this file in my drupal root directory. I did see it in my logs folder but cannot access it. I am with 1 and 1 as well and am getting the same error about the registered_globals being enabled. What do I do?

alternativecatII’s picture

Is it normal to not be able to find register_globals in .htaccess?

alternativecatII’s picture

Status: Closed (fixed) » Active

I added the line AddType x-mapp-php5 .php at the first line of .htaccess after commented out section ended, and now my site turns into a totally blank white page if I click on anything

#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
AddType  x-mapp-php5  .php
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
Options -Indexes

I took AddType x-mapp-php5 .php out and I was able to click on links again.

Did I do something wrong?

If so, please explain.

Morn’s picture

The only difference I see is that I inserted AddType .. as line Nr. 4, but that should make no difference.
Did you made more changes in .htaccess ? I used the original of 6.4 and it works.

By the way the DB Performace of 1 and 1 (regular shared Webserver) was too low for Drupal so I changed to a provider with better performance and with register globals off .

alternativecatII’s picture

Status: Closed (fixed) » Active
StatusFileSize
new8.12 KB

[Corrected typos 20091228]

I feel like such a block head. I put php.ini files all over the place because I was getting the error that only 32M of RAM was allocated, and 64M was recommended.

I changed this line from 32M to 128M in the php.ini
memory_limit = 128M ; Maximum amount of memory a script may consume (8MB)

Since the register_globals issue is a PHP problem, I looked in the php.ini and sure enough, there it was. I changed the value from On to Off

register_globals = Off ; Whether or not to register the EGPCS variables as global

No more

register_globals is enabled

error message.

The php.ini file I changed that got rid of the error was at the root.

Unfortunately the instructions I had read on my hosting providers forum said to upload the php.ini into every folder to get rid of the 32M memory limit problem :-( yuck. I haven't managed to pull that off, but I have put a lot of php.ini files all over the place. I assume I should modify or over write all of them so they all have the same memory allocation.

At any rate, updating the file in the root did get rid of the error message.

I've attached a copy of the php.ini (compressed that is)

ainigma32’s picture

Status: Active » Fixed

Solution provided so setting to fixed.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Status: Active » Closed (fixed)