Post by suhbah » Sun Aug 05, 2007 7:11 am

HELLO THERE,

i a new user for this cms. i have a problem after installation. the messege is Error: register_globals is enabled!.

how to seatle my problem..

thanks

Newbie

Posts

Joined
Sun Aug 05, 2007 7:06 am

Post by daydreamer » Sun Aug 05, 2007 6:23 pm

Hi is your register globals turned of in htaccess ???

daydreamer


Post by BFTUK » Sun Aug 05, 2007 8:07 pm

Creat a file called php.ini and insert the following in it:

Code: Select all

register_globals=off
You'll need this in your cart's root directory and the admin directory at a mimimum, but for general security its best to have registered globals off full stop.

SEO Blog | UK Website Directory


New member

Posts

Joined
Sun Jul 29, 2007 4:20 pm

Post by iwebfocus » Mon Nov 05, 2007 5:24 am

I just wanted to add that the php.ini file will need to be copied in each directory that the register_globals are being checked.

I had tried everything and my hosting company stated that as long as I put a php.ini in the root that should work. Well it didn't!!

I had to copy the php.ini with the correct line in the install directory for the setup to work.

Newbie

Posts

Joined
Sat Jul 07, 2007 3:21 am

Post by caldazar » Mon Nov 05, 2007 10:42 am

Ahh - that's it. Thanks iwebfocus! :)

Newbie

Posts

Joined
Mon Nov 05, 2007 10:42 am

Post by krbmedia » Tue Dec 04, 2007 6:08 am

BFTUK wrote: Creat a file called php.ini and insert the following in it:

Code: Select all

register_globals=off
You'll need this in your cart's root directory and the admin directory at a mimimum, but for general security its best to have registered globals off full stop.
What permission should the php.ini file be?

Newbie

Posts

Joined
Tue Oct 09, 2007 11:51 am

Post by petpetep » Sun Dec 09, 2007 3:34 pm

when you install opencart you must copy this file in
/..
/install
/admin
php.ini wrote:register_globals = off
error_log=error_log
log_errors=On
error_reporting = E_ALL & ~E_NOTICE
expose_php = Off
output_buffering = Off
max_input_time = 60
safe_mode=off
variables_order = "EGPCS"
extension_dir = "./"
this is what i use

New member

Posts

Joined
Sat Aug 11, 2007 4:19 pm


Post by krbmedia » Sun Dec 09, 2007 9:12 pm

What permissions? 644 or 444

Newbie

Posts

Joined
Tue Oct 09, 2007 11:51 am

Post by petpetep » Wed Dec 12, 2007 2:22 am

i use 644

New member

Posts

Joined
Sat Aug 11, 2007 4:19 pm


Post by Buena Llave » Sat Dec 15, 2007 5:07 am

I am getting the same error:

Error: register_globals is enabled

I created a php.in as indicated above and placed one in the root, one in the /admin and one in the /install folder then reinstalled the cart.  I still get the same error. I am using the older version 06.5 and the server has PHP 4.3 installed. What does everyone mean when the say to change the .htaccess file? Can I do that from myPHPadmin or should I be able to inclued the php.ini and it should, in theory turn off the register_globals.

Also, I contacted my host and they turned register_globals off and then sent me the following:



Register Globals and Magic Quotes GPC have been turned off for bluecreekmedia.com using the following directives in the .htaccess file in the root of your public_html folder. Let me know if you need anything further.

php_value register_globals off
php_value magic_quotes_gpc off


When I did a phpinfo from my directory it shows them as being off locally, However, when I install the cart the install.php still shows that they are enabled.

Any help from those of you who know something... :) would be helpful.

Newbie

Posts

Joined
Fri Dec 14, 2007 4:53 pm

Post by JohnnyO » Tue Dec 18, 2007 4:53 am

if there is no .htaccess file in the root directory you are installing open cart, you may create one using a text editor.

Add this line to the text file you create (AddType x-mapp-php5 .php) without the (), Save the file and then rename it .htaccess. Upload this file to your open cart directory and it should work.

register_globals is disabled by default in php5. This should work in the case you are using a shared host and they offer php4 and php5.

If this doesn't work, replace the previous line in the .htaccess with (php_flag register_globals off) without the ()

Hope this helps. -JO

If you make it idiot proof, they will just build a better idiot.


User avatar
New member

Posts

Joined
Wed Nov 14, 2007 7:31 am
Location - Denver, CO - USA
Who is online

Users browsing this forum: No registered users and 3 guests