Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Request to view configigure.php files


marvinc

Recommended Posts

Posted

I know this is an odd request but can anyone with osC installed and running on a w2k or w2k3 server post their config files??? I'm trying to get it installed on my w2k3 server and keep coming up with blank pages. My setup includes a w2k3 server w/IIS, php4.3.4, and MySQL. I'm sure my problem is with these files because everything else on my server is fine.

Any responses are appreciated.

Posted

Blank pages are normally a sign of a parse error somewhere.

 

Edit your php.ini file which is most likely in your windows directory and set

 

error_reporting = (E_ALL & E_NOTICE);

 

also make sure the setting display errors is set to on.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

Ok I've located error_reporting = E_ALL and changed it to error_reporting = E_ALL & E_NOTICE. I also changed display_errors = Off to display_errors = On.

I try this again and still get blank pages and no errors. Now what exactly am I looking for?

Posted

what is it you have done? does php work? does mysql work? is this available via the internet or just localhost?

there is nothing different in the configure.php files except pointing to your document root path.

 

you can find it by placing this in the web site:

 

<?php phpinfo(); ?>

 

name it phpinfo.php or something, then run it in your browser. it shoudl show you quite a bit of info. then search for document_root and that is what you need to use for your site.

Posted
Day II:

:angry: IS there ANYONE monitoring this forum that has AN idea of how to get this to work??!!!

 

No obviously not :)

 

That kind of attitude is unlikely to entice others to help either :-"

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

This is not an attitude but an early sign of frustration. Not trying to start any arguments but from reading thru the posts one would assume that this product has been out far too long for there not to be any written documentation for both platforms. This is a common issue, one that someone should take the time to resolve. To expect everyone using this product to be using a unix system is rediculous. I have windows, linux, and sun in my environment and plan to document and install stores on all three. As a matter of fact why don't I give you guys the documentation I have for windows. Maybe it can be made a sticky for other windows users.

Documentation starts here:

 

Online Catalog Installation & Configuration

osCommerce ver2.2ms2 on Windows 2003 Server

 

Note: this document covers downloading, installing, and configuring osCommerce ver2.2ms2 onto a Windows 2003 server running PHPver4.3.4, MySQL 5, and IIS6.

 

Assumptions:

1. Your server meets the minimum recommendations set forth in the osCommerce installation manual located at the following location:

http://www.oscommerce.info/kb/osCommerce/I...g_osCommerce/46

2. Your Windows 2000/2003 server has the latest security updates and service packs installed.

 

Download osCommerce

1. Download the latest version of osCommerce from the following location:

http://www.oscommerce.com/solutions/downloads

2. Click the ?Download at SourceForge (America)? link and save the ?osCommerce-2.2ms2.zip? file to a location on the server.

3. Click ?Open? and extract the files to the same location you saved the zip file to.

 

Download osCommerce ?Register_globals_v1.2.1? Update

4. Download the latest updates or patches for osCommerce from the following location:

http://www.oscommerce.com/community/contri...egister_globals

5. Click one of the links located in the upper right hand corner of the screen and the ?register_globals_v1.2.1? file to the same location you saved the installation file to.

6. Click ?Open? and extract the files to the same location you saved the zip file to.

 

Note: it?s very important that you take a minute or two and go over the ?Readme? file located in the ?register_globals_v1.2.1? directory to gather an understanding of the changes that need to take place prior to installing osCommerce.

 

Configure the ?register_globals_v1.2.1? Update

7. Navigate to the location you extracted the updates to and locate the ?register_globals_v1.2.1? folder. Locate and open the ?admin_patch? file using either ?Notepad? or ?WordPad?.

8. Now navigate to the location you saved the osCommerce catalog folder in and locate the ?\admin? folder.

9. Locate the ?\products_attributes.php? file and open it using either ?Notepad? or ?WordPad?. I use ?WordPad? because it?s easier on the eyes.

10. Perform the following as stated in the ?admin_patch.php? file:

a. Look for the following code located at the very top of the file:

 

require('includes/application_top.php');

$languages = tep_get_languages();

 

b. Now place your mouse at the end of this code and press ?Enter? to create space. Now add the following code:

 

// >>> BEGIN REGISTER_GLOBALS

// These variables are accessed directly rather than through $HTTP_GET_VARS or $_GET later in this script

link_get_variable('option_page');

link_get_variable('value_page');

link_get_variable('attribute_page');

// <<< END REGISTER_GLOBALS

 

c. Save and close this file.

11. Navigate to the ?\catalog\admin\includes? directory and locate the ?\application_top.php? file.

12. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?admin_patch.php? file:

a. Look for the following code located under ?// Check if register_globals is enabled.?:

 

if (function_exists('ini_get')) {

ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

// }

 

b. Comment out this code beginning at the check function. You will end up with the following:

 

// Check if register_globals is enabled.

// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.

// >>> BEGIN REGISTER_GLOBALS

// if (function_exists('ini_get')) {

// ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

// }

// <<< END REGISTER_GLOBALS

 

c. Save and close this file.

13. Navigate to the ?\admin\includes\functions? folder and locate the ?\general.php? file.

14. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?admin_patch.php? file:

a. Locate the following function by clicking ?File?, ?Edit?, ?Find? from the menu and entering tep_browser_detect. You may see the following:

 

function tep_browser_detect($component) {

global $HTTP_USER_AGENT;

 

return stristr($HTTP_USER_AGENT, $component);

}

 

b. Change it to read:

 

function tep_browser_detect($component) {

// >>> BEGIN REGISTER_GLOBALS

// global $HTTP_USER_AGENT;

 

return stristr($_SERVER['HTTP_USER_AGENT'], $component);

// <<< END REGISTER_GLOBALS

}

 

c. Now scroll down to the very end of the ?\general.php? file and add the following before ??>?

 

// >>> BEGIN REGISTER_GLOBALS

// Work-around functions to allow disabling of register_globals in php.ini

// These functions perform a similar operation as the 'link_session_variable'

// function added to .../functions/sessions.php but for the GET, POST, etc

// variables

//

// Parameters:

// var_name - Name of session variable

//

// Returns:

// None

function link_get_variable($var_name)

{

// Map global to GET variable

if (isset($_GET[$var_name]))

{

$GLOBALS[$var_name] =& $_GET[$var_name];

}

}

 

function link_post_variable($var_name)

{

// Map global to POST variable

if (isset($_POST[$var_name]))

{

$GLOBALS[$var_name] =& $_POST[$var_name];

}

}

// <<< END REGISTER_GLOBALS

 

d. Save and close this file.

15. Navigate to the ?\admin\includes\functions? folder and locate the ?\sessions.php? file.

16. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\admin_patch.php? file:

a. Locate the following existing functions:

 

tep_session_start()

tep_session_register()

tep_session_is_registered()

tep_session_unregister

 

tep_session_close()

tep_session_destroy()

 

b. Change these to read:

 

// >>> BEGIN REGISTER_GLOBALS

$success = session_start();

 

// Work-around to allow disabling of register_globals - map all defined

// session variables

if ($success && count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, true);

}

}

 

return $success;

// <<< END REGISTER_GLOBALS

}

 

function tep_session_register($variable) {

// >>> BEGIN REGISTER_GLOBALS

// -skip- return session_register($variable);

 

// Work-around to allow disabling of register_globals - map session variable

link_session_variable($variable, true);

 

return true;

// <<< END SESSION_REGISTER

}

 

function tep_session_is_registered($variable) {

// >>> BEGIN REGISTER_GLOBALS

// return session_is_registered($variable);

return isset($_SESSION[$variable]);

// <<< END REGISTER_GLOBALS

}

 

function tep_session_unregister($variable) {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_globals - unmap session variable

link_session_variable($variable, false);

unset($_SESSION[$variable]);

 

// return session_unregister($variable);

return true;

// <<< END REGISTER_GLOBALS

}

 

function tep_session_close() {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_gloabls - unmap all defined

// session variables

if (count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, false);

}

}

// <<< END REGSTER_GLOBALS

if (function_exists('session_close')) {

return session_close();

}

}

 

function tep_session_destroy() {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_gloabls - unmap all defined

// session variables

if (count($_SESSION))

{

$session_keys = array_keys($_SESSION);

for each($session_keys as $variable)

{

link_session_variable($variable, false);

unset($_SESSION[$variable]);

}

}

// <<< END REGISTER_GLOBALS

return session_destroy();

}

 

c. Add the following function anywhere after this. I added it to the bottom before the last ??>?:

 

// >>> BEGIN REGISTER_GLOBALS

// Work-around function to allow disabling of register_globals in php.ini

// This is pretty crude but it works. What it does is map session variables to

// a corresponding global variable.

// In this way, the main application code can continue to use the existing

// global varaible names but they are actually redirected to the real session

// variables

//

// If the global variable is already set with a value at the time of the mapping

// then it is copied over to the real session variable before being mapped back

// again

//

// Parameters:

// var_name - Name of session variable

// map - true = map variable, false = unmap varaible

//

// Returns:

// None

function link_session_variable($var_name, $map)

{

if ($map)

{

// Map global to session variable. If the global variable is already set to some value

// then its value overwrites the session variable. I **THINK** this is correct behaviour

if (isset($GLOBALS[$var_name]))

{

$_SESSION[$var_name] = $GLOBALS[$var_name];

}

 

$GLOBALS[$var_name] =& $_SESSION[$var_name];

}

else

{

// Unmap global from session variable. Note that the global variable keeps the value of

// the session variable. This should be unnecessary but it reflects the same behaviour

// as having register_globals enabled, so in case the OSC code assumes this behaviour,

// it is reproduced here

$nothing;

$GLOBALS[$var_name] =& $nothing;

unset($GLOBALS[$var_name]);

$GLOBALS[$var_name] = $_SESSION[$var_name];

}

}

// <<< END REGISTER_GLOBALS

 

d. Save and close this file.

17. Close the ?\admin_patch.php? file.

18. Open the ?\catalog_patch.php? file using ?Notepad? or ?WordPad?.

19. Navigate to the ?\catalog\install\includes? folder and open the ?\application.php? file using ?Notepad? or ?WordPad?.

20. Perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following code located under ?// Check if register_globals is enabled.?:

 

if (function_exists('ini_get')) {

ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

}

 

b. Comment out this code beginning at the check function. You will end up with the following:

 

// Check if register_globals is enabled.

// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.

// if (function_exists('ini_get')) {

// ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

// }

 

c. Save and close this file.

21. Navigate to the ?\catalog\includes? file and locate the ?\application_top.php? file.

22. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following code at the top of the file located under ?// Check if register_globals is enabled?:

 

if (function_exists('ini_get')) {

ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

}

 

b. Comment out this code beginning at the check function. You will end up with the following:

 

// >>> BEGIN REGISTER_GLOBALS

// check if register_globals is enabled.

// since this is a temporary measure this message is hard coded. The requirement will be removed before 2.2 is finalized.

// if (function_exists('ini_get')) {

// ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

// }

// <<< END REGISTER_GLOBALS

 

c. Save and close this file.

23. Navigate to the ?\catalog\includes\classes? folder and locate the ?\order.php? file.

24. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following function:

 

function order($order_id = '') {

$this->info = array();

$this->totals = array();

$this->products = array();

$this->customer = array();

$this->delivery = array();

 

if (tep_not_null($order_id)) {

$this->query($order_id);

} else {

$this->cart();

}

}

 

b. Change this to the following:

 

function order($order_id = '') {

$this->info = array();

$this->totals = array();

$this->products = array();

$this->customer = array();

$this->delivery = array();

 

if (tep_not_null($order_id)) {

$this->query($order_id);

} else {

// >>> BEGIN REGISTER_GLOBALS

link_post_variable('cc_type');

link_post_variable('cc_owner');

link_post_variable('cc_number');

link_post_variable('cc_expires');

link_post_variable('comments');

// <<< END REGISTER_GLOBALS

 

$this->cart();

}

}

 

c. Save and close this file.

25. Navigate to the ?\catalog\includes\functions? folder and locate the ?\general.php? file.

26. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following function:

 

////

// Returns the clients browser

function tep_browser_detect($component) {

global $HTTP_USER_AGENT;

 

return stristr($HTTP_USER_AGENT, $component);

}

 

////

 

b. Now change it to read:

 

////

// Returns the clients browser

function tep_browser_detect($component) {

// >>> BEGIN REGISTER_GLOBALS

// global $HTTP_USER_AGENT;

 

return stristr($_SERVER['HTTP_USER_AGENT'], $component);

// <<< END REGISTER_GLOBALS

}

 

c. Now scroll down to the very end of this ?\general.php? file and add the following just before the last ??>?:

 

// >>> BEGIN REGISTER_GLOBALS

// Work-around functions to allow disabling of register_globals in php.ini

// These functions perform a similar operation as the 'link_session_variable'

// function added to .../functions/sessions.php but for the GET, POST, etc

// variables

//

// Parameters:

// var_name - Name of session variable

//

// Returns:

// None

function link_get_variable($var_name)

{

// Map global to GET variable

if (isset($_GET[$var_name]))

{

$GLOBALS[$var_name] =& $_GET[$var_name];

}

}

 

function link_post_variable($var_name)

{

// Map global to POST variable

if (isset($_POST[$var_name]))

{

$GLOBALS[$var_name] =& $_POST[$var_name];

}

}

// <<< END REGISTER_GLOBALS

 

d. Save and close this file.

27. Navigate to the ?\catalog\includes\functions? folder and locate the ?\gzip_compression.php? file.

28. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following code located at the top of the file:

 

function tep_check_gzip() {

 

b. Now change it to read:

 

function tep_check_gzip() {

// >>> BEGIN REGISTER_GLOBALS

// global $HTTP_ACCEPT_ENCODING;

// <<< END REGISTER_GLOBALS

if (headers_sent() || connection_aborted()) {

return false;

}

 

// >>> BEGIN REGISTER_GLOBALS

if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip') !== false) return 'x-gzip';

 

if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip') !== false) return 'gzip';

// <<< END REGISTER_GLOBALS

 

return false;

}

 

c. Save and close this file.

29. Navigate to the ?\catalog\includes\functions? folder and locate the ?\sessions.php? file.

30. Open this file with ?Notepad? or ?WordPad? and perform the following as stated in the ?\catalog_patch.php? file:

a. Look for the following function:

 

function tep_session_start() {

 

b. Now change it to read:

 

function tep_session_start() {

// >>> BEGIN REGISTER_GLOBALS

$success = session_start();

 

// Work-around to allow disabling of register_globals - map all defined

// session variables

if ($success && count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, true);

}

}

 

return $success;

// <<< END REGISTER_GLOBALS

}

 

function tep_session_register($variable) {

global $session_started;

 

// >>> BEGIN REGISTER_GLOBALS

$success = false;

 

if ($session_started == true) {

// -skip- return session_register($variable);

 

// Work-around to allow disabling of register_globals - map session variable

link_session_variable($variable, true);

$success = true;

}

 

return success;

// <<< END SESSION_REGISTER

}

 

function tep_session_is_registered($variable) {

// >>> BEGIN REGISTER_GLOBALS

// return session_is_registered($variable);

return isset($_SESSION[$variable]);

// <<< END REGISTER_GLOBALS

}

 

function tep_session_unregister($variable) {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_gloabls - unmap session variable

link_session_variable($variable, false);

unset($_SESSION[$variable]);

 

// return session_unregister($variable);

return true;

// <<< END REGISTER_GLOBALS

}

 

function tep_session_close() {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_gloabls - unmap all defined

// session variables

if (count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, false);

}

}

// <<< END REGSITER_GLOBALS

 

if (PHP_VERSION >= '4.0.4') {

return session_write_close();

} elseif (function_exists('session_close')) {

return session_close();

}

}

 

function tep_session_destroy() {

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_gloabls - unmap all defined

// session variables

if (count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, false);

unset($_SESSION[$variable]);

}

}

// <<< END REGISTER_GLOBALS

return session_destroy();

}

 

function tep_session_recreate() {

if (PHP_VERSION >= 4.1) {

$session_backup = $_SESSION;

 

unset($_COOKIE[tep_session_name()]);

 

tep_session_destroy();

 

if (STORE_SESSIONS == 'mysql') {

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

// >>> BEGIN REGISTER_GLOBALS

// tep_session_start();

// $_SESSION = $session_backup;

 

session_start();

$_SESSION = $session_backup;

 

// Work-around to allow disabling of register_globals - map all defined

// session variables

if (count($_SESSION))

{

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable)

{

link_session_variable($variable, true);

}

}

// <<< END REGISTER_GLOBALS

 

unset($session_backup);

}

}

 

c. Add the following function to the end of this ?\sessions.php? file just before ??>?.

 

// >>> BEGIN REGISTER_GLOBALS

// Work-around function to allow disabling of register_globals in php.ini

// This is pretty crude but it works. What it does is map session variables to

// a corresponding global variable.

// In this way, the main application code can continue to use the existing

// global varaible names but they are actually redirected to the real session

// variables

//

// If the global variable is already set with a value at the time of the mapping

// then it is copied over to the real session variable before being mapped back

// back again

//

// Parameters:

// var_name - Name of session variable

// map - true = map variable, false = unmap varaible

//

// Returns:

// None

function link_session_variable($var_name, $map)

{

if ($map)

{

// Map global to session variable. If the global variable is already set to some value

// then its value overwrites the session varibale. I **THINK** this is correct behaviour

if (isset($GLOBALS[$var_name]))

{

$_SESSION[$var_name] = $GLOBALS[$var_name];

}

 

$GLOBALS[$var_name] =& $_SESSION[$var_name];

}

else

{

// Unmap global from session variable (note that the global variable keeps the value of

// the session variable. This should be unnecessary but it reflects the same behaviour

// as having register_globals enabled, so in case the OSC code assumes this behaviour,

// it is reproduced here

$nothing;

$GLOBALS[$var_name] =& $nothing;

unset($GLOBALS[$var_name]);

$GLOBALS[$var_name] = $_SESSION[$var_name];

}

}

// <<< END REGISTER_GLOBALS

 

d. Save and close this file.

 

Note: all of this necessary to resolve an issue in osCommerce that requires you to enable the ?register_globals? option in PHP. Enabling this feature on any web server is a known security risk. If you attempt to navigate to the ?\install? directory to begin the install you would receive the following error in your browser:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

Following the instructions listed in the ?Readme? for the ?admin_patch.php? and ?catalog_patch.php? resolves this issue. You?re now ready to install osCommerce.

 

Upload osCommerce

31. Navigate to the location you saved the ?osCommerce-2.2ms2.zip? to and locate the ?catalog? folder.

32. Copy the contents of this folder to the web site root directory on your web server. This for me would be

?E:/webdev/website directory/?.

 

osCommerce Web Based Configuration

33. Open a web browser and navigate to the osCommerce install file by typing the following command:

http://www.your-website.com/web-directory/install.php

34. The ?Welcome to osCommerce!? window opens. Click the ?Install? link to continue.

35. The ?New Installation? window opens providing options for customizing the installation. Make sure both options are checked and click ?Continue?.

36. The ?Database Import? window opens prompting you to enter specific information for creating the database. Enter the requested information and click ?Continue?.

37. The next window informs you of a successful connection to the database. Click ?Continue? to import the ?\oscommerce.sql? data into the new database.

 

Note: you may receive the following error after clicking ?Continue?:

 

SQL file does not exist: /install/oscommerce.sql

 

Perform the following to resolve this issue:

1. Navigate to the ?\install\templates\pages? folder and locate the ?\install_3.php? file.

2. Open this file with ?Notepad? or ?WordPad? and make the following changes:

a. Locate the following code:

 

// $script_filename = getenv('PATH_TRANSLATED');

 

b. Replace it with this code:

 

$script_filename = $_SERVER["PATH_TRANSLATED"];

 

c. Now locate this code, which is directly under it:

 

// $script_filename = getenv('SCRIPT_FILENAME');

 

d. Replace it with this code:

 

$script_filename = $_SERVER["PATH_TRANSLATED"];

 

e. Save and close the file.

 

38. Click ?Continue? and you should receive a message stating ?The database import was successful?. Click ?Continue?.

39. The next window prompts you for specific website information. Enter this and click ?Continue?.

40. The database server connection window appears again prompting you to confirm the information for your database. Confirm and click ?Continue?.

41. The next window advises that the ?The configuration was successful? and you?re presented with the ?Catalog? and ?Administration? options.

 

 

Note: you may receive a blank page after clicking either of these buttons. If you do it?s probably due to you needing to modify the ?configure.php? file to enter the correct root and directory paths.

 

Modify Configure.php File

42. Navigate to the ?\catalog\admin\includes? folder and locate the ?\configure.php? file.

43. Open this file with ?Notepad? or ?WordPad? and make the following changes:

a. Locate the following code at the top of the file:

 

define('HTTP_SERVER', '?); // eg, http://localhost - should not be empty for productive servers

 

b. Change this by adding the URL of your website. This would be something like:

 

define('HTTP_SERVER', 'http://www.your-site.com/catalog');

 

c.

44. ?????????????

 

 

I'm sure there are probably a few errors but hopefully the main issues have been covered this'll make it easy for the next WIMP user. The only other problem is figuring out how to resolve the "blank screens".

Posted

you should probably read the knowledge base, as i believe mysql5 does not work with the current release of osCommerce . ..

Posted

#4 is not required if you are setting up your own W2K / W2K3 server, as you control your php.ini and you can just go change register_globals to on.

 

i think you need to understand windows a bit more to know about properties, etc.

 

there is a large post on W2K3 servers, how to set them up. all it takes is searching, it is in better shape from what you have put together. yours points people in the wrong places.

Posted

The point is NOT to have to enable register_globals for osCommerce or anything else and I have been searching. The fact that I'm posting this thread should be an indicator that I haven't been able to find what I'm looking for. In my searches I've come across:

http://www.oscommerce.info/kb/osCommerce/I...ling_osCommerce

and this from osCdox:

http://oscdox.com/modules.php?op=modload&n...llation%20Guide

 

I've tried searching the forums on keywords configure.php, blank screens and a host of other words to no avail. It's not that I'm not trying I'm simply not doing something right and I admit that.

 

It's been my findings that some products will work with the latest releases and some don't. I run MySQL 5 on my windows box so I thought I'd give it a try and see if it would work. If not I'll move on the either linux or solaris. I actually thought it was working seeing that the database imported fine and I haven't received any errors. Then again this "could" be what's causing the blank screens.

 

"i think you need to understand windows a bit more to know about properties, etc."

like what??? <_<

 

"there is a large post on W2K3 servers, how to set them up. all it takes is searching, it is in better shape from what you have put together. yours points people in the wrong places."

 

These are the steps I took as I was following direction from the manuals and the updates. I haven't added anything new to any of this. So to say this is wrong is to say the manuals are wrong.

I just want to learn this process, get my stores up, and move on. Anyone that spends as much time as I have searching and coming up empty will get frustrated.

So instead of wasting your precious time telling me what I'm doing wrong how about pointing me in the right direction. I know it gets old but this is a support forum for a worthwhile product. And if my documentation is that confusing then remove it and lets move on.

 

thnks

Posted
The point is NOT to have to enable register_globals for osCommerce or anything else and I have been searching. The fact that I'm posting this thread should be an indicator that I haven't been able to find what I'm looking for. In my searches I've come across:

http://www.oscommerce.info/kb/osCommerce/I...ling_osCommerce

and this from osCdox:

http://oscdox.com/modules.php?op=modload&n...llation%20Guide

 

I've tried searching the forums on keywords configure.php, blank screens and a host of other words to no avail. It's not that I'm not trying I'm simply not doing something right and I admit that.

 

It's been my findings that some products will work with the latest releases and some don't. I run MySQL 5 on my windows box so I thought I'd give it a try and see if it would work. If not I'll move on the either linux or solaris. I actually thought it was working seeing that the database imported fine and I haven't received any errors. Then again this "could" be what's causing the blank screens.

 

"i think you need to understand windows a bit more to know about properties, etc."

like what??? <_<

 

"there is a large post on W2K3 servers, how to set them up. all it takes is searching, it is in better shape from what you have put together. yours points people in the wrong places."

 

These are the steps I took as I was following direction from the manuals and the updates. I haven't added anything new to any of this. So to say this is wrong is to say the manuals are wrong.

I just want to learn this process, get my stores up, and move on. Anyone that spends as much time as I have searching and coming up empty will get frustrated.

So instead of wasting your precious time telling me what I'm doing wrong how about pointing me in the right direction. I know it gets old but this is a support forum for a worthwhile product. And if my documentation is that confusing then remove it and lets move on.

 

thnks

 

This guy is way out of line. Ignore him, we are not your servant.

Posted

Man that was totally un-called for. Can you imagine what life would be llike if all companies took that approach when dealing with frustrated customers? Do see where I'm coming from? I wasn't asking for servants I was simply asking for help. But if this is how you handle your inability to provide that, help, then so be it. Life goes on. I'll try pnCommerce and if necessary purchase something to get my stores working.

 

And some wonder why open-source gets a bad rep. One-dimensional ass-head developers.

 

I digress...so sad...I really wanted this product. :'(

Posted

help yourself by posting your configure.php files, those of us who use or know what you have can then answer based upon what we see. easier to do it that way and you would have gotten answers right away.

Posted

I'm sure this is a simple problem with my paths but I can't seem to get it right.

This site is currently being installed as a test and will sit under one of my other websites, www.nusolutions.biz. Therefore it's to be accessed externally as http://www.nusolutions.biz/nuwear/catalog. My webroot structure is this:

E:\webdev

\nusolutions

\nuwear\catalog

 

Here are my files:

 

Catalog\includes\configure.php:

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.nusolutions.biz/nuwear/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.nusolutions.biz/nuwear/');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', /e:/webdev/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', 'nuwear');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

 

Admin\includes\configure.php:

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.nusolutions.biz/nuwear/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.nusolutions.biz/nuwear/');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'e:/webdev/catalog/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', 'e:/webdev/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', 'e:/webdev/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', 'nuwear');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

thnks

Posted

define('DIR_FS_CATALOG', /e:/webdev/catalog/');

to

define('DIR_FS_CATALOG', 'e:/webdev/catalog/');

 

is one.

 

for cookie domains get rid of http://

 

i will look for others . . .

 

youir document root doesnt look right, go to your store admin and then tools, server info. in there search for document_root

Posted

the fscatalog one i put up is correct, as you were using a / and it needs to start with a '

Posted

No sir. I made that change and it still returns a blank page.

My files:

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.nusolutions.biz/nualter/');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/nualter/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/nualter/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'e:/webdev/nualter/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '*******');

define('DB_DATABASE', 'nualter');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

 

\admin\includes\configure.php:

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.nusolutions.biz/nualter/');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'e:/webdev/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', 'e:/webdev/admin/');

define('DIR_WS_CATALOG', '/nualter/');

define('DIR_FS_CATALOG', 'e:/webdev/nualter/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '*******');

define('DB_DATABASE', 'nualter');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

If my paths are correct then I'm SOS becasue my php skills are not up to par.

 

thnks

Posted

Hi. I just wanted to politely comment.

 

All of us novice users experience great frustration at times during our learning process. We all spend days sometimes trying to figure out one little problem that ends up being an even smaller solution via some minute detail. That said....

 

I have found the forums, both here at oscommerce.com and other forums like osdox.com to be extremely helpful. I've even contacted a couple users directly to exchange information. I have yet to fix a couple remaining problems in my own install and configuration, the experience itself has been very helpful.

 

Though I myself do not need reminding that this product is free of a price and is offered in open-source, some do. Though it is technically free, the price we pay for it's functionality and the freedom to manipulate it to our needs is the cost of learning. Which means searching forums and talking with people.

 

More than likely, you will run across errors and problems in any install of this complexity. The more you can deal with troubleshooting, the better understanding you'll have of how to fix things.

 

Regardless, it's not fair to the users and helpers of this or any other forum to expose your frustrations in a way that might be offensive or directed with attitude. We've all been there, maybe not in your particular problem, but we've spent days on a problem. We've posted and reposted questions and answers. That's the nature of forums. And, much to our benefit, the forums have a search tool.

 

Don't forget Google. Search for your terms there as well. You never know.

 

Just thought I would make a friendly note of that. I wish you the greatest luck finding your solution. I believe osCommerce is a very good product, especially because it is free.

 

Thanks. :thumbsup:

www.toneeke.com (currently in test mode)

Posted

it is always helpful, when someone has an error, that rather than ask someone for their file, to post your own file first, and ask for where an error may be. for those of us who deal with it everyday to be told our suggestion is wrong when it is clear there is a syntax error in the code . .well . . .

 

no sessions are not enabled for marvin

Archived

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

×
×
  • Create New...