Creat a file called php.ini and insert the following in it:
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.
Code: Select all
register_globals=off
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.
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.
What permission should the php.ini file be?BFTUK wrote: Creat a file called php.ini and insert the following in it:
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.Code: Select all
register_globals=off
when you install opencart you must copy this file in
/..
/install
/admin
/..
/install
/admin
this is what i usephp.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 = "./"
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.
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...

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
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.
Who is online
Users browsing this forum: No registered users and 3 guests