View Full Version : View on local W98 machine

11-28-2002, 06:23 PM
Oscommerce has been installed by my host.
'catalog' has been set to 'shop'
'default.php' has been set to 'index.php' (I'm guessing by .htaccess)
Your docs are by far the best I have seen so far. Before reading them I managed to change some images in includes/header.php Now the end is in sight.

I have copied the files to my machine.
Win 98 Apache/1.3.26 (Win32) PHP/4.2.2 MySQL Admin 1.4 mysql-opt phpMyAdmin-2.3.0
Questions below relate to my machine.

When I call http://localhost/shop/index.php in my browser (Netscape 4.7 - non default) I have 3 unresolved issues.
2 Warnings at the top of the page & 1 error message - bottom of page.
(My comments in brackets).

1\ Warning: I am able to write to the configuration file: c:/program files/apache group/apache/htdocs/shop/includes/configure.php. This is a potential security risk -
please set the right user permissions on this file.

(Is this because I can't assign permissions in Win98. Is there a workaround please)?

2\ Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

(In includes/config.php the last line of code says
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
When I tried changing this to:- define('STORE_SESSIONS', 'mysql'); the result was - The error message went away but I couldn't navigate the site)?

3\ Error! Unable to determine the page link!
(I have read a post similar to this and again looked at admin/includes/config.php & column_right.php & boxes/languages.php However I am unable to resolve it. The page stops loading after the "languages" header.
Last 11 lines of Source code follows and then my config.php. I have bunched these issues together as they may be related. Any help here would be greatly appreciated).

<!-- reviews_eof //--><!-- languages //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=" " width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading"><b>Languages</b></td>
<td height="14" class="infoBoxHeading"><img src="images/pixel_trans.gif" border="0" alt=" " width="11" height="14"></td>
</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>


$Id: configure.php,v 1.9 2002/02/02 16:32:08 clescuyer Exp $

The Exchange Project - Community Made Shopping!

Copyright (c) 2000,2001 The Exchange Project

Released under the GNU General Public License

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be NULL for productive servers
define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('DIR_WS_CATALOG', '/shop/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname
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_PAYMENT_MODULES', DIR_WS_MODULES . 'payment/');
define('DIR_WS_SHIPPING_MODULES', DIR_WS_MODULES . 'shipping/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // 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_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers
define('DB_SERVER_USERNAME', '****'); // my original
define('DB_SERVER_PASSWORD', '******'); // my original
define('DB_DATABASE', '*****^^^^^##'); // my original
define('USE_PCONNECT', true); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

11-28-2002, 09:47 PM
1. For permissions, right click the configure.php file using windows explorer and under properties, click the read only checkbox. that will get rid of the first warning.

2. Change the code back to what it was, and create a /tmp dir in your root dir. That should fix that problem

3. Not sure what the deal is here. Fix the first two, and let me know if the third resolves on its own or not.

11-28-2002, 11:35 PM
Thank You,
1\ Warning 1 resolved.
2\ Added a tmp directory to root - in my case /shop/tmp and I'm still receiving the warning.
3\ No change as yet.


11-29-2002, 08:11 AM
For #2, put it above your shop dir, so if your apache web tree looks like this:


Put the temp dir in c:\webroot . If that doesnt work, try putting it in C:\webroot\websites

11-30-2002, 04:57 PM
My tree is
\program files
\Apache Group

\shop contains admin & all the files that would usually be included in catalog.
When I finally added /tmp to c: the error message goes away. Then when I try to navigate the site Netscape attempts to connect to the internet. When I cancel this Netscape generates the error: "The document contained no data. Try again later, or contact the server administrator."

c:\tmp contains sessions data as per below

I can live with the warning #2 if I must. It doesn't seem to affect the error message 3 if the warning is there or not.
(Neither error nor warning show on the online site).

Any thoughts or help would be appreciated.
neil :?