Jump to content



Latest News: (loading..)

* * * * - 17 votes

Quick Install Guide


  • Please log in to reply
2382 replies to this topic

#21   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 04 October 2005 - 10:57 PM

Sometimes when you do the osCommerce install it only writes to the includes/configure.php file and misses out on writing to the admin/includes/configure.php file.  This is most likely to happen on a Windows server for some unknown reason.

Vger

#22   umc

umc
  • Members
  • 33 posts
  • Real Name:Mircea Calin

Posted 05 October 2005 - 03:05 PM

Hello. I seem to be getting the same problem. The catalog seems to be working, but when I try to open index.php from the admin folder I get a blank page. No error messages. I have php5. I translated the code from php4 to php5 (I substituted the $HTTP_*_VARS with $_GET, $_POST, etc), I let the register_globals disabled in the ini file (the default option in php5) to avoid security problems, and I modified the condition that chacks that. Probably I've done smth wrong in the /admin/includes/configure.php file. I've seen that it's a bit different from /catalog/includes/configure.php.
This is the content of the file... if you see anything that might be wrong I'd greatly appreciate it if you could point me to the solution...

  define('HTTP_SERVER', 'http://my_IP'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
  define('HTTP_CATALOG_SERVER', 'http://my_IP');
  define('HTTPS_CATALOG_SERVER', '');
  define('ENABLE_SSL_CATALOG', false); // 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_WS_ADMIN', '/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', 'osCommerce_user');
  define('DB_SERVER_PASSWORD', 'osCommerce_pass');
  define('DB_DATABASE', 'osCommerce');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
----------------------------
I've substituted my IP real IP, user and pass. but in the configuration file I wrote the good ones.
I have php5, apache 1.3.33, mysql 4.1, and they are all running on an xp + sp2 machine.
If you know the problem and you have the solution, please let me know. Thanks in advance.

Edited by umc, 05 October 2005 - 03:06 PM.


#23   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 05 October 2005 - 03:37 PM

If you have left Register Globals to 'off' in php.ini then you will have to install the Register Globals Patch Files (link below my name).  It's either that or turning Register Globals to 'on' in php.ini.

Vger

#24   cisconz

cisconz
  • Members
  • 2 posts
  • Real Name:David Mitchell

Posted 06 October 2005 - 04:53 AM

View PostVger, on Oct 6 2005, 04:37 AM, said:

If you have left Register Globals to 'off' in php.ini then you will have to install the Register Globals Patch Files (link below my name).  It's either that or turning Register Globals to 'on' in php.ini.

Vger

I am having the same problem. I changed php.ini which fixed the catalog but the admin page still comes up blank. Help

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Contents of OsCommerce\catalog\includes
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

<?php
/*
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright © 2003 osCommerce

  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://ww304-146-39.aut.ac.nz'); // eg, http://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://ww304-146-39.aut.ac.nz'); // eg, https://localhost - should not be empty for productive servers
  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'ww304-146-39.aut.ac.nz');
  define('HTTPS_COOKIE_DOMAIN', 'ww304-146-39.aut.ac.nz');
  define('HTTP_COOKIE_PATH', '/private/OsCommerce/catalog/');
  define('HTTPS_COOKIE_PATH', '/private/OsCommerce/catalog/');
  define('DIR_WS_HTTP_CATALOG', '/private/OsCommerce/catalog/');
  define('DIR_WS_HTTPS_CATALOG', '/private/OsCommerce/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', 'I:/htdocs/private/OsCommerce/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', '156.62.146.39'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'oscomm');
  define('DB_SERVER_PASSWORD', '2ZYsmv7LJXTywW:V');
  define('DB_DATABASE', 'oscommerce');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Contents of OsCommerce\catalog\admin\includes
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

<?php
/*
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright © 2003 osCommerce

  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://ww304-146-39.aut.ac.nz'); // eg, http://localhost - should not be empty for productive servers
  define('HTTP_CATALOG_SERVER', 'http://ww304-146-39.aut.ac.nz');
  define('HTTPS_CATALOG_SERVER', 'https://ww304-146-39.aut.ac.nz');
  define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
  define('DIR_FS_DOCUMENT_ROOT', 'I:/htdocs/private/OsCommerce/catalog/'); // where the pages are located on the server
  define('DIR_WS_ADMIN', '/private/OsCommerce/catalog/admin/'); // absolute path required
  define('DIR_FS_ADMIN', 'I:/htdocs/private/OsCommerce/catalog/admin/'); // absolute path required
  define('DIR_WS_CATALOG', '/private/OsCommerce/catalog/'); // absolute path required
  define('DIR_FS_CATALOG', 'I:/htdocs/private/OsCommerce/catalog/'); // absolute path required
  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', '156.62.146.39'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'oscomm');
  define('DB_SERVER_PASSWORD', '2ZYsmv7LJXTywW:V');
  define('DB_DATABASE', 'oscommerce');
  define('USE_PCONNECT', 'false'); // use persisstent connections?
  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

#25   cisconz

cisconz
  • Members
  • 2 posts
  • Real Name:David Mitchell

Posted 06 October 2005 - 05:18 AM

I found the problem

in the OsCommerce\catalog\admin\includes\classes\upload.php there was '$this' i changed it to '$th_s' and i fixed the problem.

Thanks anyway.

David

#26   jwonline

jwonline
  • Members
  • 5 posts
  • Real Name:Lynne

Posted 10 October 2005 - 05:21 PM

How do I do the below procedure? I use WS FTP PRO.
Sorry newbie here...

4. Make sure that the permissions on all of the folders are set to 755, and if that does not work then set them to 777. Make sure that the includes/configure.php file and the admin/includes/configure.php file are set to 777 for the duration of the install. Once the install is complete reset to 644, 444, or 400 depending on your server setup.

#27   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 10 October 2005 - 05:54 PM

Okay, if you use WS FTP Pro then FTP to your website, right click on the folder or file you wish to check/change permissions on, then select Operations, then FTP Commands, and then CHMOD (Unix), and then a box will come up entitled 'Remote File Permissions' and you can then change the numbering to whichever permission you wish to set.

Vger

#28   maxhodges

maxhodges
  • Members
  • 2 posts
  • Real Name:Max Hodges

Posted 10 October 2005 - 06:33 PM

View PostVger, on Jul 28 2005, 01:21 AM, said:

Do not enable SSL, elect to store sessions in the database and not files (untick the box), and do not enable persistent connections.

Why "Do not enable SSL?" What if I need SSL?

Thanks,
Max

#29   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 10 October 2005 - 09:26 PM

If you enable ssl then the site configuration will be set up to use a full ssl certificate and not a shared ssl certificate - which is what the majority of people use for their site.

It is far easier not to set the configure files up for ssl when installing and adapt them later on.

Vger

#30   Silversan

Silversan
  • Members
  • 3 posts
  • Real Name:Gordon Stewart

Posted 10 October 2005 - 10:11 PM

hi all it's probably been covered a million times before, but,

I've done the download, done the install, everything is hunky dory right up until I get to the part about you need to - .htaccess you admin directory - I'm totally lost

if I go to www.mydomain.com/admin it somes up all blue and shiny but if I click on anything it goes to a 404 error.

any help would be greatly appreciated ( a step by step would be a charm)  B)

#31   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 10 October 2005 - 10:17 PM

If you are getting a '404 - File Not Found' error when trying to navigate from the admin landing page to the other pages then your admin/includes/configure.php file is not set up correctly.  You really need to post it here (minus the database user name and password) for help but before you do that you need to password protect it.

Forget about writing .htaccess files yourself.  Most likely you'll have a feature in your Web Hosting control panel called something like Password Protection or Directory Protection - and this will write the .htaccess files for you.

Vger

#32   Silversan

Silversan
  • Members
  • 3 posts
  • Real Name:Gordon Stewart

Posted 10 October 2005 - 10:35 PM

this is what I get, don't get a 'log in option though'  anything I click on takes me here :-
my amin/includ/configure.php is set at  644 (also tried 444)
Page not found
The page you requested was not found on this web server. This could be for a variety of reasons, including:
You followed a broken or out-of-date link.
You entered the URL for the page incorrectly.
The page no longer exists.
If you followed a broken link, please inform the owner of the referring page.
If you have any queries about this error, please e-mail webmaster@this.domain.




--------------------------------------------------------------------------------

Back to www.myname.org homepage

#33   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 10 October 2005 - 10:41 PM

Provided that you do get the blue landing page for 'admin' at http://www.yourdomain.com/admin or catalog/admin (wherever it is installed), and you only get the errors when you try to click to get further into 'admin' then follow my advice in my earlier post.

Vger

#34   Silversan

Silversan
  • Members
  • 3 posts
  • Real Name:Gordon Stewart

Posted 10 October 2005 - 10:50 PM

thanks vger, I think your earlier advice of doing on the host control panel is the best option   ;)

#35   jwonline

jwonline
  • Members
  • 5 posts
  • Real Name:Lynne

Posted 11 October 2005 - 12:57 PM

View Postjwonline, on Oct 10 2005, 05:21 PM, said:

How do I do the below procedure? I use WS FTP PRO.
Sorry newbie here...

4. Make sure that the permissions on all of the folders are set to 755, and if that does not work then set them to 777. Make sure that the includes/configure.php file and the admin/includes/configure.php file are set to 777 for the duration of the install. Once the install is complete reset to 644, 444, or 400 depending on your server setup.

Okay. I got it. :) I can't get past through the first installation stage though with the server settings, database name, etc. I created a database in my control panel but when i input the info during the initial install stage, i would get this error Access denied for user 'jwonline_justworship'@'localhost' (using password: YES).  I getting confused. Help!

#36   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 11 October 2005 - 01:05 PM

Check with your hosting company what your database server address is.  It is 'usually' localhost, but is not always so.

Don't forget also that your mysql user name and password may be different from the user name and password you use to access your web hosting control panel.  With many hosting control panels you have to set up a mysql password, because one is not created for you.

Vger

#37   jwonline

jwonline
  • Members
  • 5 posts
  • Real Name:Lynne

Posted 11 October 2005 - 01:10 PM

View Postjwonline, on Oct 11 2005, 12:57 PM, said:

Okay. I got it. :) I can't get past through the first installation stage though with the server settings, database name, etc. I created a database in my control panel but when i input the info during the initial install stage, i would get this error Access denied for user 'jwonline_justworship'@'localhost' (using password: YES).  I getting confused. Help!

Yes I did that.  My database server is localhost. It was mentioned in my control panel. I also created my own database, as well as user name and password.  Does the user name come with an underscore?  I didn't create it that way but for some reason after it was created it came with an underscore plus the name of the database I created. And is the password supposed to be combined with the user name? I'm confused!

#38   Vger

Vger
  • Members
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 11 October 2005 - 01:13 PM

Sometimes, it depends on your server, if you create a database called osCommerce then the full database name has to be entered as yourdomain_com_-_osCommerce

Vger

#39   jwonline

jwonline
  • Members
  • 5 posts
  • Real Name:Lynne

Posted 11 October 2005 - 01:19 PM

View Postjwonline, on Oct 11 2005, 01:10 PM, said:

Yes I did that.  My database server is localhost. It was mentioned in my control panel. I also created my own database, as well as user name and password.  Does the user name come with an underscore?  I didn't create it that way but for some reason after it was created it came with an underscore plus the name of the database I created. And is the password supposed to be combined with the user name? I'm confused!

I am still getting an error.  I am installing it from here http://www.justworshiponline.com/catalog/install.

#40   jwonline

jwonline
  • Members
  • 5 posts
  • Real Name:Lynne

Posted 11 October 2005 - 01:47 PM

Yay! I was finally able to go past the initial install stage...

Now how do I do this?

Reset permissions on the two configure.php files.