PDA

View Full Version : OSCommerce register_globals


mattznyc
02-10-2006, 04:11 PM
I just intalled OSCommerce thorough Fantastico.

When I point to the site for the first time. www.triplezed.com/oscommerce I get this error:

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

I understand what this means and saw lots of little work arounds on the web, but I figured:

1. Bluehost must have an install of OSCommerce that works for there servers.
2. Others on here have tried to install it and have gotten this error.

Can anyone give me a (hopefully) quick fix?

Maggilove
02-10-2006, 04:20 PM
Yep... Dustin's post got wiped in the blitz, but I believe he said copy the php.ini to your osc root and admin folders.

mattznyc
02-10-2006, 04:28 PM
That worked. You rock. I was up trying twenty different things last night to fix.

Thank god the board is back!

page1ink.
02-13-2006, 12:16 PM
great, fixed it right away! thanks!!

pooririshman
09-21-2006, 11:06 AM
It worked, it worked!

I don't know if I accidentally removed php.ini from public_html or if it was never there to begin with ...

But I searched the forum for a copy of BlueHost php.ini -
http://www.bluehostforum.com/attachment.php?attachmentid=6&d=1147963170

Then, uploaded the file AS IS into the following directories:
/public_html/<domain>/<shop>/
/public_html/<domain>/<shop>/admin

Now I am off and flying!! Thanks ALL!

The Poor Irishman
http://www.pooririshman.com

mdocea
10-09-2007, 02:32 PM
You will have to edit yoru php.ini file to enable register_globals. You can do this by login in to your control panel and then going to file manager. In here you will be able to browse to your public_html folder and select the php.ini file. When you select this file there will be an option in the top right corner to edit it. You will have to find the folowing line:

register_globals = On
and change it to
register globals = Off

You will then have to copy the php.ini into all of the directories where you need this change to apply.

scanreg
12-11-2007, 06:30 AM
You will then have to copy the php.ini into all of the directories where you need this change to apply.

You mean "All" directories? Not just the main top one?

So, if you're running Joomla, you gotta put this in all subdirs as far as you know?

I'm trying to get Joomla installed but getting a number of issues, register_globals, even though in the top php.ini I have register_globals Off

Many thanks :)

felgall
12-11-2007, 11:31 AM
It has been many, many years since PHP shipped with the Register Globals security hole enabled. All scripts could be rewritten to not require that security hole in a matter of minutes and so any script where the owner hasn't taken the trouble to fix that probably has loads of far more major issues with it as well. A script that requires register globals just isn't worth the effort as there are at least dozens of competing products that will be far more up to date. The new version of PHP that is about to be released doesn't even have that option.

goodspoi
02-03-2008, 08:31 PM
Many Thanks, The Poor Irishman.

Your method is worked! I just try following your way, it's worked!

God Bless you! Thank you so much!

Now, i can fly too.


Many thanks!

goodspoi:p