Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server Requirement Error: register_globals is disabled in your PHP configuration.


swscoobies

Recommended Posts

I am just moving to a New server, and have full access as its a Dedicated server, so accessed the servers root and got the php.ini file and edited this, it now says

 

- register_globals = On [security, Performance]

; Global variables are no longer registered for input data (POST, GET, cookies,

; environment and other server variables). Instead of using $foo, you must use

; you can use $_REQUEST["foo"] (includes any variable that arrives through the

; request, namely, POST, GET and cookie variables), or use one of the specific

; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending

; on where the input originates. Also, you can look at the

; import_request_variables() function.

; Note that register_globals is going to be depracated (i.e., turned off by

; default) in the next version of PHP, because it often leads to security bugs.

; Read http://php.net/manual/en/security.registerglobals.php for further

; information.

 

this did not work, so to ensure it updated, i deleted the file on my pc, and downloaded it from the server. sure enough it has changed.

 

So i tried to edit the .htaccess again this was edited ok, But yet i still cannot install OSC

 

I have tried to reboot the server.

 

 

Can anyone help me out with this please?

 

I have looked and everything i can find related to this issue usually fixes when the above files are edited.

 

Thanks

Derek

Link to comment
Share on other sites

You edited the php.ini wrongly, you should place the ; back before the line you edited. About halfway down in your php.ini you'll find the following text and you should specify it there:

 

; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On

 

After you changed the php.ini you have to restart your webserver (Apache).

Link to comment
Share on other sites

hi ,

i have also problem on server ,like i have installed new oscommerce which is not running properly on server ,i have changed its configured path also ,but its not woking properly .

but same project running well on local system. the problem is when we click on any catagory in left coloumn,it will show same products ,n all links on that not working properly .

 

so what would be the problem i dont get it .

Link to comment
Share on other sites

Probably you didn't specify your server info in the configure.php files in a correct way. You could try to install oscommerce from your sever and only upload the files you changed from your localhost (except the local folders and the configure.php files).

Link to comment
Share on other sites

the; is actually their, i just never selected this when i copied the text.

 

All i done was changed off to on.

 

I am no good at writing scripts, so would not know where to start, by editing them not to require register_globals to be on.

 

Derek

Link to comment
Share on other sites

With the php.ini you edited the wrong line in the beginning. If you have a look at my reply you'll see where you have to change this line, note that this line should not contain a ":" before.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...