Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Giving offline demo


zwen

Recommended Posts

Hi

 

i am using oscommerce for my clients' ecom sites. work perfectly when i have internet access to my server.

 

However, i am suppose to meet my client at a place without internet!!!!

*Faint*

 

How can i run all the php files on my laptop?

(i don have to add/delete pdts... jsut have to run the php files to show them the functions and ease of the software)

 

I am using Dreamweaver/ Windows XP Pro on my laptop.

please advise. urgent. thanks!!!

 

zwen

Link to comment
Share on other sites

I use Apache2Triad to run locally on my machine. Others use EasyPHP. EasyPHP is easier, but the current version (1.6) uses a buggy version of PHP (see here for more info), so you have to use one of the workarounds. Apache2Triad is a little more complicated to use, but it also has more current versions of the software.

 

Hth,

Matt

Link to comment
Share on other sites

With EasyPHP, you install it, start it, and install the osCommerce software. You might have to install phpMyAdmin yourself; I don't remember. It installs and configures Apache, MySQL, and PHP with a standard windows installer. You can then use the normal methods to copy the site from your server to your laptop.

 

Hth,

Matt

Link to comment
Share on other sites

Swen, you know what, I really think it's your client's responsibility, not yours (unless he/she pays you to install it on your laptop), to view the site and thus your work. You obviously got the cart working, your client should have net access to view and operate it.

 

That would suck if you put 10 hours into installing (and researching) all the aforementioned programs with out getting financially compensated.

 

Good luck.

JHouse

Link to comment
Share on other sites

Hmmmm

 

i'm trying to install oscommerce on my local (laptop)

wat should i input for:

Database server?

 

i tried localhost => didnt work.

I am assuming i do not need to creaet a DB before hand right?

the installation will do that for us, right?

 

(don remember setting up db on my server before installing OS)

Link to comment
Share on other sites

127.0.0.1 still cant connect to MySQL Server

 

hmm password/userID/db name does matter right?

 

MYSQL and PHP doesnt have to be in the same folder as APACHE right?

i have all of them in C drive, Apache inC:/program files/apache

Link to comment
Share on other sites

say if i do not install new copy of oscommerce

but use a version i have already created (copied from server)

- i am willing to tweak the config on my local so that i have a working copy of what is on the server right now...

 

Is it possible to correct this error?

 

Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in C:Program FilesApache GroupApache2htdocscatalogincludesfunctionsdatabase.php on line 19

Unable to connect to database server!

Link to comment
Share on other sites

Hi

 

You could have connected via a mobile phone to the www version.

 

I have apache triad, worked first-ish time

 

my config

 

"define('HTTP_SERVER', 'http://localhost'); // 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', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

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', 'C:/apache2/htdocs/ecokidz/');

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', 'root');

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

define('DB_DATABASE', '**************');

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

define('STORE_SESSIONS', 'mysql')

 

roger - yes I did make a blank database first.

facts invariably distort the truth

Link to comment
Share on other sites

got everything running except for some settings:

everytime i click on a link it goes:

 

http://localhost/os/catalog/localhost/os/c...2f7496b32b14166

 

with alot of extra rubbish!!!

it should be just

 

http://localhost/os/catalog/index.php?cPat...2f7496b32b14166

 

where did i set wrong? my path is /localhost/os/catalog/

 

MY CONFIG:

define('HTTP_SERVER', 'localhost'); // 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', '://');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/os/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', 'C:/Program Files/Apache Group/Apache2/htdocs/os/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', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'oscom');

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

define('STORE_SESSIONS', '');

Link to comment
Share on other sites

Bit of a stab in the dark this but yours is:

 

define('HTTP_SERVER', 'localhost'); // eg, http://localhost

 

 

mine is

 

"define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost

 

 

Mine starts from the webserver i.e. http yours starts from the local path.

 

Might be right up the wrong tree here

 

 

Roger

facts invariably distort the truth

Link to comment
Share on other sites

OH MY GOD!!!!!!!!!!!

 

THANK YOU SO VERY MUCH!!!

... i would kiss u if i could!!!!!!

 

thank u.

after 2 days... i finally got it to run locally!!!!!

 

thanks thanks thanks thanks~

Link to comment
Share on other sites

I notice that you have

define('HTTP_COOKIE_DOMAIN', '://');

which should be

define('HTTP_COOKIE_DOMAIN', 'localhost');

Look for something defined as '://' in the admin/includes/configure.php. HTTP_SERVER perhaps?

 

Hth,

Matt

Link to comment
Share on other sites

oh i forgot to thank everyone..

got it working that night..

 

installed MYSQL, PHP, and Apache...

the reason it failed to work earlier was because, MySQL wasnt Activated!!!!!

 

dumdum me! :P

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...