Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Register Globals OFF

Register Globals OFF

Locked

Views: 1,190

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Oct 2007, 7:52 AM
#1
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Register Globals OFF

Hello,

We have two Zen Cart installs. The first one is at the public_html. The second is under public_html/retailers.

When I put info.php in both directories (1. public_html and 2. public_html/retailers) and run it I see that register globals is OFF for the root (public_html) but not at public_html/retailers.

If Register Globals is showing OFF for the root, is that also true for the /public_html/retailers site? Should I just ignore the screen when it says it is still on?

If I should not ignore the screen, what do I put in this directory (public_html/retailers) so that it turns off? I have tried a php.ini and .htaccess file but every time I do this I get a 500 Internal error.

Your help is greatly appreciate.

13 Oct 2007, 11:29 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Register Globals OFF

Rabbcon:

If Register Globals is showing OFF for the root, is that also true for the /public_html/retailers site? Should I just ignore the screen when it says it is still on?

If I should not ignore the screen, what do I put in this directory (public_html/retailers) so that it turns off? I have tried a php.ini and .htaccess file but every time I do this I get a 500 Internal error.

Those are questions you should be asking your hosting company. Only they can remove any restrictions on the use of .htaccess etc.

15 Oct 2007, 9:01 AM
#3
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Re: Register Globals OFF

For anyone looking for this answer with more than one Zen Cart install on the same domain, I found the answer. PHP's Register Globals (RG) varies from folder to folder on a shared host. This means that the root of the server my have a RG turned ON because other users on that server may need it on for the applications they run. If you are in this type of environment you need to control your RG folder to folder (at the root of that folder). My answer/solution was a PHP.ini file in every Zen Cart root install folder.

I hope this helps others doing the auto Zen Cart install on a shared host and comes across this situation.

Additionally, you may want to use a info.php file to tell you the settings of that folder (on a shared host).

Cheers!