Hi,
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 //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<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>
</tr>
</table>
</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>
_________________
<?php
/*
$Id: configure.php,v 1.9 2002/02/02 16:32:08 clescuyer Exp $
The Exchange Project - Community Made Shopping!
http://www.theexchangeproject.org
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_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
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_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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 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'
?>
![]()





LinkBack URL
About LinkBacks










Bookmarks