Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCommerce & Windows Install


Guest

Recommended Posts

Posted

Hello all,

 

I just recently configured osCommerce for development purposes on a Win2K server. Really works great. :) The install tool, once I understood the logic is an excellent addition. Cuts down config time to minutes. There are, however, a few issues with the configuration on a Windows box. I wrote those up in a 3-page primer just in case someone might like to better understand how to do it in less time than it took me. :wink: The file is in Acrobat format, and can be downloaded at http://www.percolations.com/download/oscom...om_win2kcfg.pdf.

 

I'm just getting into setting it up for use; no doubt, I'll be visiting to get the forum for more info.

 

Thanks again for a great app. Keep up the good work. Happy holidays to all.

Posted

hey pretty good doc...

 

I develop OSC on my winXP box (IIS)

 

... one note is that changing the includes to ./whatever is not necessary if you make the catalog folder a virtual folder in the IIS manager... you may want to revise the doc to include the option of doing either one (some people, like me may find it easier to just make the catalog folder a virtual folder rather than changing all the configuration files and PHP files that have includes to have a "./" in front of the paths... also makes it much easier to move back and forth from localhost (development and testing usually) to a server (live site usually) this way).

 

you may also want to note that certain PHP features may not work properly on an IIS server (cache function does not operate all the time is one I can think of and also must have more than one top level category if running the mySQL windows server (or else you will get a php stack overflow))... usually just minor things that don't hurt development though...

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Posted

Joshua,

 

Thanks for taking the time to read my doc and comment. Your feedback is much appreciated. I've copied your notes and will incorporate the info the next time I do an update.

Posted

I followed your guide.

I think I am almost there.

When I have to do the install I have following message

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

 

a put register_globals=on

 

What did I do wrong ??

Posted

Is your phi.ini file in your C:WINNT root directory? If not, place the file there, as well as your my.ini file. All .ini files should, in fact, be located there.

Posted

Of course, that's the php.ini file. I always type too fast for this file. :)

Posted

Hello again,

 

I have the shop on my machine, but the links aren't good.

I think I made a mistake in copying the files in the wwroot.

Is it possible to send me a tree from your wwroot directory

and the configure.php files

 

thanx,

 

Bruno

 

PS. You did a great job. Windows is still the leading OS, so lot of people

will have this trouble.

My problem is that I don't know anything about PHP, but I am very bussy with it . I always start with studying something very difficult like this shoppingcart because all the trouble is in there :wink:

Posted

Bruno,

 

I would like to send you the tree, but it really is very deep (OSC has a lot of feature functionality). The point is: you only need to place three folders from the original OSC package in their proper order, two of which are sub-folders. These three folders are catalog, admin, and extras. All the others can remain dormant for the install process or always. That's up to you.

 

You must either extract the OSC zipped package into a tmp directory and copy the folders to your root; or, as I said in the primer, rename the original catalog (call it org-cat or something) and admin (org-admin) folders, and extract the sub-folders catalog and admin respectively. Catalog is your main folder, so admin and extras go there.

 

As far as the config files, I have placed mine below. However, you should let the install program create them together with the paths to your local web. This will save you time and mis-directed energy. There is only one change to make after they are done, and that change is in the primer. Make this change only if your includes are not being found!! Each environment is different.

 

Someone recommended making the catalog folder a virtual directory, suggesting that the paths to the include files would be set by the install program. I did not originally do this, but have done so since. My setup is working fantastic. On the other hand, whenever I've set up a PHP app on a Windows server, if there is a problem, it's usually with the paths to the includes, requires, etc. I've only installed one PHP app with no massaging required and that was fudForum, which has the absolute best PHP install program available. Whoever wrote it should be in constant demand.

 

Make sure that during the install dialogue you are reading each and every path to be sure that's where your files really are. Then, use the primer to take care of any remaining errors.

 

This is my catalog/includes/configure.php file:

 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', '/phpshop/catalog/'); // 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_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

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

 define('DIR_FS_DOCUMENT_ROOT', 'c:/inetpub/wwwroot/phpshop');

 define('DIR_FS_CATALOG', 'c:/inetpub/wwwroot/phpshop/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', 'MYSQL_USER');

 define('DB_SERVER_PASSWORD', 'MYSQL-PWD');

 define('DB_DATABASE', 'catalog');

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

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

 

Here is my catalog/admin/includes/configure.php file:

 

 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', '/phpshop/catalog/'); // 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_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

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

 define('DIR_FS_DOCUMENT_ROOT', 'c:/inetpub/wwwroot/phpshop');

 define('DIR_FS_CATALOG', 'c:/inetpub/wwwroot/phpshop/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', 'MYSQL_USER);

 define('DB_SERVER_PASSWORD', 'MYSQL_PWD');

 define('DB_DATABASE', 'catalog');

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

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

 

None of this works, of course, if PHP, MySQL, and IIS are not functionally integrated. My lawyers made me say it. :D

Posted

Melvin,

 

Now it works!!

It were the blue things on your configure.php that made the difference.

Tomorrow I put everything in a word doc and restart from scratch.

 

You receive the oscar of the month !!

 

Now learning php and the security and the shop is ready :wink:

Posted

Congratulations! :shock: You never know what may be of help. And, thanks for the honors. Does that mean that I get to have Xmas dinner at your home in Belgium?

  • 4 weeks later...
Posted

hi nagsy,

 

In order to download the files, you will need to register and you will have access to the files.

Posted

Hi Dakota2,

 

I have registered and am still unable to download the docs. After clicking the donwload link the taskbar (left bottom) says done and the screen is balnk.

 

Please advise.

 

Cheers,

 

Nagsy

Posted

Nagsy,

 

The document you are seeking is in pdf format. The screen does go blank for a few seconds as the Acrobat reader starts to load. I will email the document to your email address in the member record. Let me know when your are in receipt.

 

Sorry for the difficulty, :(

 

Dakota

  • 2 months later...
Posted

dakota2 .. the posting of your config files saved my sanity ..

THANK YOU !!!!!!

:D

Posted

I was experiencing all sorts of problems with the setup and/or modules until locating the installation pdf file in this thread. It took awhile to setup, but worked great. Thank you for paving the road!

 

I am now experiencing the following problem and was unable to find any reference in the install document:

 

Warning: I am able to write to the configuration file: cgi-bin/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

As I am running W2K/IIS, I am unable to CHMOD. I am running on a shared server and do not have access to the server other than ftp.

 

Any suggestions would be appreciated!

Posted

I have successful install Oscommerce by read your documents but need to secure the admin area. How to do that?

Posted

Sorry lads, but I did what you say and I modified my configure.php as follows:

 

define('DIR_FS_DOCUMENT_ROOT', 'd:/inetpub/wwwroot1/beads')

 

and I'm still having problem with modules which don't work

 

Any ideas

Posted

Apologies to all. :oops: I have not been hooked to this thread in some time, but have recently started to get notices re new postings. The recent messages concerning the osC install on Windows appears to be more related to the IIS setup than osC related.

 

Another how-to document is available on my site that you may want to review prior to the osC install, located at :

Check the config for IIS to be certain that it's proper, especially the security that is setup on your virtual directory. This approximates CHMOD in Linux. The document above will walk you through the steps.

 

The new link to the osC config is:

HTH

Posted

I like the lock until logged in ... visitors should notice that one ... :D

Posted

Hello all!

 

Thanks for the comment, Linda. I guess there is nothing like the obvious. :lol: At any rate, I installed the latest milestone version of osC to see what changes have been made in the installation process and in the application in order to update my instructions.

 

First, let's give applause to the developers who improved upon an already fine auto-installation wizard. The new install wizard is fantastic and eliminates many of the steps that I had earlier detailed. Thus, I have changed the osc-wincfg file accordingly. The download location is the same:

Thanks for your support. Any questions, send me a PM.

 

Dakota

All-American Web Portals

  • 3 weeks later...
Posted

Oh my goodness! I was starting to wonder if I had gone crazy when I saw those module directory listings in Admin. After searching on the forums for an hour, I finally came across your help! Thank you so much! Works just fine now. :)

Posted
Oh my goodness! I was starting to wonder if I had gone crazy when I saw those module directory listings in Admin. After searching on the forums for an hour, I finally came across your help! Thank you so much! Works just fine now.

AezAlpha,

I'm glad that you found the link. We should probably change the keywords for the search. By the way, which keywords did you use to finally locate the link?

 

Dakota

Archived

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

×
×
  • Create New...