Troubleshoot - Installation

From Zen Cart(tm) Wiki
Revision as of 01:50, 5 December 2007 by DrByte (talk | contribs) (Reverted edits by Allcanadiansearch.ca (Talk); changed back to last version by DrByte)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Can't login to administration area

Troubleshooting - Sessions

Troubleshoot_-_PHP_as_CGI


Turning off Register Globals

Zen Cart can run with Register Globals on or off. For better security, "off" is recommended.

However, some hosts have this setting enabled for the sake of various other software systems that may be running on their servers for other customers, etc.

If the Installer (zc_install) is telling you that Register Globals is "on" and you wish to turn it off, you may try the following approach, if your hosting server's configuration permits this change to work via .htaccess:

In the "root" of your site (ie: where the /index.php and /install.txt are located, create a new file, called .htaccess  (or alter the existing one by adding the following to it):

Inside this file, put the following contents:

 # to turn off register_globals
 php_value register_globals 0


Turning off "session.use_trans_sid"

Zen Cart uses the PHP "session" infrastructure to handle login security and keep the information for each visitor to your site separate from everyone else.

If the "session.use_trans_sid" setting is enabled on your server, then Zen Cart won't be able to hook into it properly to access its services in a way that lets Zen Cart identify data related to Zen Cart.

As such, it's important that you have this turned off on your site.

If your hosting server's configuration permits this change to work via .htaccess then you may resolve this issue as follows:

In the "root" of your site (ie: where the /index.php and /install.txt are located, create a new file, called .htaccess  (or alter the existing one by adding the following to it):

Inside this file, put the following contents:

 # to turn off session-trans-sid
 php_value session.use_trans_sid 0