osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

View on local W98 machine

This is a discussion on View on local W98 machine within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hi, Oscommerce has been installed by my host. 'catalog' has been set to 'shop' 'default.php' has been set to 'index.php' ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-28-2002, 07:23 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default View on local W98 machine

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'
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-28-2002, 10:47 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-29-2002, 12:35 AM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default View on local W98 machine

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-29-2002, 09:11 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

For #2, put it above your shop dir, so if your apache web tree looks like this:
Code:
c:\webroot\
        \apache
        \php
        \mysql
        \websites
             \shop
                 \catalog
Put the temp dir in c:\webroot . If that doesnt work, try putting it in C:\webroot\websites
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-30-2002, 05:57 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default View on local W98 machine

My tree is
c:\php
\mysql
\program files
\Apache Group
\Apache
\htdocs
\shop

\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
cart|O:12:"shoppingcart":3:{s:8:"contents";a:0:{}s :5:"total";i:0;s:6:"weight";N;}language|s:7:"engli sh";languages_id|s:1:"1";currency|s:3:"USD";naviga tion|O:17:"navigationhistory":2:{s:4:"path";a:1:{i :0;a:4:{s:4:"page";s:0:"";s:4:"mode";s:6:"NONSSL"; s:3:"get";a:0:{}s:4:"post";a:0:{}}}s:8:"snapshot"; a:0:{}}

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
I Help from a 'local install' genius! dragon5 osCommerce 2.2 Installation Help 1 05-21-2006 11:42 PM
installing oscommerce on a local test machine dapper osCommerce 2.2 Discussion 6 05-12-2006 02:01 PM
Local Database to Server jenny osCommerce 2.2 Installation Help 3 01-20-2005 12:27 PM
going live from local install?? Kristine osCMax v1.7 Installation 4 11-17-2004 10:34 AM
local/configure.php files bjrafferty osCommerce 2.2 Modification Help 1 07-28-2004 08:06 AM


All times are GMT -8. The time now is 09:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax