Misteraven Posted November 8, 2002 Posted November 8, 2002 Alright, hopefully this isn't a dumb question but... I don't understand why there's a seperate install process for the admin and for the actual catalog. Can one operate without the other, and more importantly, what order do you install these in? I've seen no mention of it in the install instructions or anywhere else. Before I pull out anymore hair, can someone please explain... - Basic install instructions for v2.2 including which script (admin or catalog) to install first, as well as anything I should be aware of in the process. *By the way, I've installed the 'tep_snapshot_catalog-20021105.tar.gz' and 'tep_snapshot_catalog-20021107.tar.gz' several times each. However, when testing the install, the checkout process hangs at step 2 of the order process just before you move onto billing information. I still have no idea why. Please help...
Ajeh Posted November 9, 2002 Posted November 9, 2002 This is how I do an install ... and maybe it will make it easier. I download the unix version to my windows computer into a directory called osCOMMERCE date_of_snapshot I use WinZip and extract into this same folder. I delete the first tar file as it is no longer needed. I then use WinZip to extract the new tar file into the same directory. I create a folder called TheShop Then I go into the catalog folder and get the catalog folder in there and cut and paste it into the folder TheShop Then I go into the admin folder and cut and paste the admin folder inside there into the catalog folder that is now in TheShop So I now have: /TheShop/catalog /TheShop/catalog/admin Next, I cut and paste the catalog folder inside TheShop into my work area for the website Let's assume I have a folder called internet and in that a folder called thewebmakerscorner So, when I am done I now have the new catalog folder in my thewebmakerscorner folder. Next I edit the /catalog/includes/configure.php file to match my website: define('HTTP_SERVER', 'http://www.thewebmakerscorner.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://secure.sashbox.net/thewebmakerscorner.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/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', $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_DOCUMENT_ROOT', '/home/webmaker/public_html'); // 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', '******'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'your_mysql_file'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Then, I edit the /catalog/admin/includes/configure.php to match my website: define('HTTP_SERVER', 'http://www.thewebmakerscorner.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.thewebmakerscorner.com'); define('HTTPS_CATALOG_SERVER', 'https://secure.sashbox.net/thewebmakerscorner.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module // 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_DOCUMENT_ROOT', '/home/webmaker/public_html'); // 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_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'your_mysql_file'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); Now, I just FTP this whole thing /catalog to my website into my public_html directory. This gives me the shop in: /public_html/catalog And the Admin in: /public_htmle/catalog/admin You do not have to FTP the install folder btw. This is a method to by pass all of that. Next, I go into phpMySQL and make a new database if I have not done this already, and I import the oscommerce.sql file. Should say 1000 lines added when done. Now, set the chmod settings on the directories: /catalog/pub 777 /catalog/download 775 /catalog/images 777 /catalog/admin/images/graphics 777 /catalog/includes/configure.php 644 /catalog/admin/includes/configure.php 644 I make a directory in the admin for backups: /catalog/admin/backups 777 Then I use Cpanel or some such program to set a password on my /catalog/admin folder If you uploaded the /catalog/install directory you can delete it. Takes about 10-20 minutes to do this depending on your connection speed.
Misteraven Posted November 9, 2002 Author Posted November 9, 2002 Many thanks for the help. Seems pretty straight forward. I'll give it a shot tomorrow night when I've got some time. Thanks again.
hgweber Posted November 10, 2002 Posted November 10, 2002 Hi Ajeh, you made a great contribution with your "setup guide" in this thread, but there are two very strange things in it. Maybe I'm too new to osCommerce, but basically: WHY do you download a Unix version to a windows system and WHY do you upload php files in Binary format?? Is there something I completely missed?? I can't even get unzipped the Unix version with Winzip 8.1 on Windows (corrupt download?), and the Windows download version is working fine on my Unix virtual server, except some smaller issues. Can you give some hints please?
wkrecords Posted November 10, 2002 Posted November 10, 2002 and for new people allways keep . define('USE_PCONNECT', 'false'); if you ever put it true it could crash the system and your host will not be happy with you my host told me that :)
Ajeh Posted November 11, 2002 Posted November 11, 2002 For some of us, old habits are hard to break. I have always downloaded .tar files, unzipped with WinZip, organized things the way I wanted them, then uploaded them to my server in binary. I just double click on the .tar with WinZip 8.1 ... Say No, do not unzip to a temp dir ... click Extract, point to my download directory and it opens the first .tar Then delete the original .tar and double click on the new .tar and say no ... don't help me extract to temp ... then click Extract ... and extract everything to my directory. I have never had a problem extracting the files using it. Maybe einstall WinZip 8.1 I like getting the Unix version as that is what's going up on my server, so figure less likelyhood of errors. And as to why Binary? Unix likes it better and things don't get messy and corrupted with characters that Unix doesn't like. :D
Misteraven Posted November 11, 2002 Author Posted November 11, 2002 just followed the instructions here and everything worked perfectly. Thanks.
mattice Posted November 11, 2002 Posted November 11, 2002 define('USE_PCONNECT', 'false');if you ever put it true it could crash the system and your host will not be happy with you my host told me that Depends on what kind of computer you run osC. If it is a dedicated machine it would be better to put it to 'true' but on +500 Virtual Host machine it's better to set to 'false'. My post told me that :) "Politics is the art of preventing people from taking part in affairs which properly concern them"
Misteraven Posted November 11, 2002 Author Posted November 11, 2002 Can someone explain what exactly this feature is?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.