Hello Everyone.
I am trying to install Drupal for the first time. I got bored of Wordpress for its slowness, but I am having a problem installing.
I get this error:
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'))
I looked at my .htaccess file and I see that the register_globals is off! (0)
php_value register_globals 0
But still, it says its enabled.
I looked at other sites for help and they adviced to put a php.ini file with the code
register_globals = off but that didn't do it either.
So
Question 1: The .htaccess file needs to go on the same folder as my drupal page right? or on the root folder?
I tried both but still nana.
Question 2: What can I do???
Please help! m(_ _)m
cheers from Japan.
Comments
hello again.
My server is network solutions and I have a wordpress forum installed already.
this is my .htaccess log
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order allow,deny
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 4, Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# Requires mod_expires to be enabled.
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
# Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
RewriteBase /yumi/
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=x'. [L,QSA]
# $Id: .htaccess,v 1.90 2007/10/05 14:43:23 dries Exp $
SO, what would be my problem? what should I change>?
Restart The httpd server
syaam
Restart the httpd server..which it is located..it may works
syaamb4u! thank you!
syaamb4u!! thanks for your reply, I was almost giving up installing drupal.
One question, how do I restart the httpd server?? sorry for te noob question...
how to restart httpd server
syaam
goto services..then u will find httpd ...
With Network Solutions, you
With Network Solutions, you have to put the php.ini file in your cgi-bin directory not your htdocs or drupal installation directory.
Please see: http://forums.networksolutions.com/script-help-perl-php-asp-net-f50-php-...
Fourth Wall Media
Toronto, Canada
You did it wrong
You had to create a php.ini file in the folder where the php scripts recide..
But what went wrong is
you had to put
register_globals off
instead you put
register_globals = off
:) Just remove the "=" and it shall work..
Visit ARaj.iN
Same problem
I have the same problem as you, i can't turn off the register_globals...
I tried to make a new php.ini with the command "register_globals off" in it, didn't work, disabled register_globals at my hosting company but didn't work either...
in the php.ini, there should be one 1 commandline ? or do i have to copy the one from the root and add that line to it ?
gz thanks in advance
register_globals is enabled
Same problem. I am trying to "manually" install drupal 6.4 on dreamhost.com. They offer a "one-step" configuration that works, but does not allow modules to be added, that's why I am manually installing. Even though my .htaccess file shows register_globals "0", I receive the error when I run the install.php script that register_globals are enabled. Dreamhost does not give access to me to reboot the httpd server. I have taken over this site from a previous webmanager that installed the Wordpress, and we didn't use it, so I deleted it.
Which direction should I go?
1) Install drupal through the one-step, (drupal 6.0) and then upgrade it to 6.4 or figure a way to add modules???
2) Try to get past this register_globals error (need lots of help for that)
3) Force the server to reboot (need help on this one too)
I guess I need lots of help no matter which direction I go....
Thx,
jon
I have a PHP book - never
I have a PHP book - never read.
I enabled CGI and mySQL on with my hosting company years ago - never used.
But buoyed by a review of Drupal I thought I would spend an hour this morning installing it. Well 8 hours later and a lot less hair. I have got to the install point (after re-learning vi, chmod, ls....) and get the failure due to the register_globals as referred to above and from my reading I think the problem for me is:
1) The hosting company have it turned on by default.
2) .htaccess will not work as apache is running php externally, not internally (???) so .htaccess is not effetive.
3) php.ini (as documented on the php site), does not allow you to set this flag.
http://uk.php.net/manual/en/ini.core.php#ini.register-globals
"Please note that register_globals cannot be set at runtime (ini_set()). Although, you can use .htaccess if your host allows it as described above. An example .htaccess entry: php_flag register_globals off ."
This appears to me to be an show stopper. Let me know if I am wrong. Obviously different hosting companies set things up differently.
JAC.
register_globals = off
I came across the same problem: the hosting company had register_globals turned on by default (I verified this with phpinfo()), now what? The link to php.org told me nothing, but on the Joomla forum I found a solution that worked for me, so I thought I'd share it:
Create a file, call it php.ini, put
register_globals = offinto it, and upload the file to the root of your Drupal installation. Worked like a charm, hope it works you too.That just gives me a white
That just gives me a white page with error code on it and no site on any page.