Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Install Guide


Vger

Recommended Posts

Once your site is installed you delete the 'install' folder.

 

You work on your site by downloading files via FTP and then editing them using a plain text editor like Notepad or Text Pad or Crimson Editor.

 

Vger

Hi,

I have installed teh site including the Turkish version. But the site i snot complete , do I need to go thru install steps evertime I need to go and do some work on my site or is there a shorter way to get to , so that I can edit my site.

Link to comment
Share on other sites

  • Replies 2.4k
  • Created
  • Last Reply
Once your site is installed you delete the 'install' folder.

 

You work on your site by downloading files via FTP and then editing them using a plain text editor like Notepad or Text Pad or Crimson Editor.

 

Vger

OK , but thi swould be very advanced and a difficult way for me , is it possible that I could use frontpage or Dreamweaver or similar visual programme to edit these pages.

thanks

Link to comment
Share on other sites

I get a 404 error when I try to access my site. I have tried to install via Fantastico, and ended up uninstalling that. I uploaded all the files from oscommerce zip, then followed the instructions here and the ones for web install under documentation.

 

After I had trouble using Fantastico, I asked my host for help. They said you can't install OSC in an addon domain - it must be in the main domain for my hosting package. They were able to access my files using http://ipaddy/~username/domain/. I had to use that format to get to the web install, and now that addy is also the only way I can see anything on my site. I changed the website address in the install steps, but it apparently didn't work. I checked my config files and they show the correct site name. Did I do something wrong with the setup? Any way I can get it set so the website is correct (www.mydomain.com instead of using the ipaddy, etc)?

 

Thanks, I appreciate any help!

 

 

Update: I can access the admin pages using http://mydomain/admin and from there I can click the links to see my storefront. But... If i type in the website name directly and don't go through the admin page, it gives me the not found message.

 

ozcsys - Thanks for the idea. I put a simple html index on the domain and the page would load.

Link to comment
Share on other sites

I'm posting this here so that people who need to can find a quick Installation Guide for osCommerce. It goes a bit further than the Installation Guide in the Knowledge Base.

 

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

 

Here's the quick install guide.

 

1. Create a blank database via your web hosting control panel.

 

2. Download the osCommerce 2.2 MS2 zip file from the downloads section of www.oscommerce.com, unzip it and extract the 'catalog' folder.

 

3. If you want your shop to be available at http://www.yourdomain.com/catalog then upload the whole of the catalog folder to the root directory of your website via FTP. If you want the site to be available at http://www.yourdomain.com then just upload all of the contents of the catalog folder, but not the folder itself.

 

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.

 

5. Then go to http://www.yourdomain.com/install and begin the install procedure. Your DB Server will probably be 'localhost', your db user name and password (for mysql access) will have been provided to you by your web hosting company. The name of the database you already know - because you just set it up. Do not enable SSL, elect to store sessions in the database and not files (untick the box), and do not enable persistent connections.

 

6. After the install create a folder called 'backups' inside the 'admin' folder (via FTP), and delete the install folder. Reset permissions on the two configure.php files.

 

7. Password Protect your 'admin' folder using the Password Protect feature in your web hosting control panel.

 

Away you go!

 

Vger

 

 

How can i create a blank database?...am i need mysql?....actually i had install mysql.setup.exe

but i cannot login...why..

 

can lend me your hand?...

bye

Link to comment
Share on other sites

It's doing that because your admin/includes/configure.php file is correct - but the includes/configure.php file isn't.

 

Vger

 

 

Ugh... I didn't see anything that looked wrong, but added some absolute paths and uploaded them. Neither page would show then. I had edited them with Dreamweaver and thought that was the problem so I got 2 fresh files and edited them in notepad. Neither the storefront nor admin will load. :unsure:

Link to comment
Share on other sites

Ugh... I didn't see anything that looked wrong, but added some absolute paths and uploaded them. Neither page would show then. I had edited them with Dreamweaver and thought that was the problem so I got 2 fresh files and edited them in notepad. Neither the storefront nor admin will load. :unsure:

 

I have no idea why, but I decided to try uninstalling/reinstalling everything for the umpteenth time and it is working perfectly. I'm keeping my fingers crossed that it stays that way.

Link to comment
Share on other sites

Once you have successfully installed osCommerce any other questions you have should not be posted in this thread.

 

Vger

 

 

Vger,

i need ur help... i cannot install osCommerce until now.

 

when i type http://localhost/phpMyAdmin/...i faced this problem

"Cannot load mysql extension. Please check your PHP configuration"

 

from my research... i have copy the phpMyAdmin folder to my c:\ProgramFiles\Apache Group\Apache2\htdocs

after that i copy the code from the site below and paste it in a new notepad and save as config.ini.php in phpMyAdmin

since i cannot find the config.inc.php in my phpMyAdmin folder...

http://www.koders.com/php/fid808337258AE57...=config.inc.php

 

Then...

i put the $cfg['Servers'][$i]['password'] = 'admin';

Then...

i restart my apache to run http://localhost/phpMyAdmin

i still see the same problem occur...

 

After that i try to change the $cfg['Servers'][$i]['extension'] = 'mysql'; ---> 'mysqli'

i doesn't work also...

 

As i realise the problem occur in this line...i try to copy all the c:\php\ext\*.dll

to ---> c:\ProgramFiles\Apache Group\Apache2

to ---> c:\ProgramFiles\Apache Group\Apache2\htdocs\

to ---> c:\ProgramFiles\Apache Group\Apache2\htdocs\phpMyAdmin

 

I STILL SEE THE PROBLEM...

VGER CAN YOU PROVIDE THE SOLUTION FOR ME, THANK.

I HAVE WASTED 3 MORE DAYS IN OFFICE TO DO SUCH SILLY THINGS... AND AND AND CAN'T EVEN FIND THE SOLUTION...

MY BOSS A BIT NOT HAPPY ALREADY...

 

VGER, I WILL APPRECIATED YOUR HELP,

THANK YOU.

 

FROM SMITH

Link to comment
Share on other sites

Hi, I'm sorry but this thread is for helping people with installing osCommerce on their server - but I can't deal with problems regarding their server setup.

 

Vger

Link to comment
Share on other sites

Hi, I'm sorry but this thread is for helping people with installing osCommerce on their server - but I can't deal with problems regarding their server setup.

 

Vger

 

I understand this thread is for heping people with installing osCommerce, i also...want to install osCommerce...

 

during my installation, i stuck in step 2 after key in the localhost,username,passwors,databaseName and click 'Continue'

 

it load half page... and i jus can see the word 'impost database'...

 

localhost = locahost

username = user

passeord = admin --> that i set in config.ini.php

and what whould i type in 'database name'?.....i really not understand how to link to mysql...

b'cos i think the reason that hang me in step 2 is the mysql problem...is it?...

 

Vger...Thank your ur help...

From smith...

Link to comment
Share on other sites

I understand this thread is for heping people with installing osCommerce, i also...want to install osCommerce...

 

during my installation, i stuck in step 2 after key in the localhost,username,passwors,databaseName and click 'Continue'

 

it load half page... and i jus can see the word 'impost database'...

 

localhost = locahost

username = user

passeord = admin --> that i set in config.ini.php

and what whould i type in 'database name'?.....i really not understand how to link to mysql...

b'cos i think the reason that hang me in step 2 is the mysql problem...is it?...

 

Vger...Thank your ur help...

From smith...

I have problem with my index page. I have installed osCommerce withuot any problems,but when I type my website address in a web browser I get blank page. When I write www.mydomain.com.au/index.php everything is working OK. I have checked configure.php file (catalog/includes) and it seems to be OK.

 

 

 

<?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://www.starassist.com.au'); // 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', 'www.starassist.com.au');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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', '/home/starassi/public_html/');

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

define('DB_SERVER_PASSWORD', 'xxxxxxxxx');

define('DB_DATABASE', 'xxxxxx_xxxxxxxx');

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

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

?>

Can someone please help me

Link to comment
Share on other sites

I have problem with my index page. I have installed osCommerce withuot any problems,but when I type my website address in a web browser I get blank page. When I write www.mydomain.com.au/index.php everything is working OK. I have checked configure.php file (catalog/includes) and it seems to be OK.

<?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://www.starassist.com.au'); // 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', 'www.starassist.com.au');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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', '/home/starassi/public_html/');

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

define('DB_SERVER_PASSWORD', 'xxxxxxxxx');

define('DB_DATABASE', 'xxxxxx_xxxxxxxx');

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

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

?>

Can someone please help me

 

 

hmm... may i know this php code is come from which file? i means the file name...

u seems to create a database already?

 

From smith

Link to comment
Share on other sites

You have either uploaded files using an unstable FTP client which has uploaded local file pathways with the files (Dreamweaver is known to do this), or else your includes/configure.php file is set up for an installation on your own computer and not edited for being online.

 

Vger

.

Hello,

Please http://e-market.artest.com.tr/index.php go to my index page and when you click on anything the site directs you to the folder in my pc rtaher than working from the server files , what have I changed!!.

thanks

Link to comment
Share on other sites

The file is okay, it's the server that's not set up correctly and doesn't know to look for an index.php page when people type in just the domain name. Your host will have to correct this.

 

Vger

I have problem with my index page. I have installed osCommerce withuot any problems,but when I type my website address in a web browser I get blank page. When I write www.mydomain.com.au/index.php everything is working OK. I have checked configure.php file (catalog/includes) and it seems to be OK.

<?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://www.starassist.com.au'); // 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', 'www.starassist.com.au');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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', '/home/starassi/public_html/');

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

define('DB_SERVER_PASSWORD', 'xxxxxxxxx');

define('DB_DATABASE', 'xxxxxx_xxxxxxxx');

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

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

?>

Can someone please help me

Link to comment
Share on other sites

I'm posting this here so that people who need to can find a quick Installation Guide for osCommerce. It goes a bit further than the Installation Guide in the Knowledge Base.

 

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

 

Here's the quick install guide.

 

1. Create a blank database via your web hosting control panel.

 

2. Download the osCommerce 2.2 MS2 zip file from the downloads section of www.oscommerce.com, unzip it and extract the 'catalog' folder.

 

3. If you want your shop to be available at http://www.yourdomain.com/catalog then upload the whole of the catalog folder to the root directory of your website via FTP. If you want the site to be available at http://www.yourdomain.com then just upload all of the contents of the catalog folder, but not the folder itself.

 

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.

 

5. Then go to http://www.yourdomain.com/install and begin the install procedure. Your DB Server will probably be 'localhost', your db user name and password (for mysql access) will have been provided to you by your web hosting company. The name of the database you already know - because you just set it up. Do not enable SSL, elect to store sessions in the database and not files (untick the box), and do not enable persistent connections.

 

6. After the install create a folder called 'backups' inside the 'admin' folder (via FTP), and delete the install folder. Reset permissions on the two configure.php files.

 

7. Password Protect your 'admin' folder using the Password Protect feature in your web hosting control panel.

 

Away you go!

 

Vger

 

 

Vger, i don't really understand your step 6 and 7... can you please explane to me in more details on step 6 and how to do the web hosting control panel?

 

Thankyou.

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Link to comment
Share on other sites

Hi, I'm sorry but this thread is for helping people with installing osCommerce on their server - but I can't deal with problems regarding their server setup.

 

Vger

Hello,

When I try to open my web site this is the message I get :

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /var/www/domains/e-market.artest.com.tr/docs/includes/functions/database.php:13) in /var/www/domains/e-market.artest.com.tr/docs/includes/functions/database.php on line 25

 

I tried to reinstall th eteh site but the message is still th esame.

Link to comment
Share on other sites

You FTP to your website and either upload a folder you create on your computer called 'backups' inside of the online admin folder, or else you use the FTP programme to create a folder called 'backups' inside the admin folder. You use the FTP programme to delete the install folder.

 

Use the FTP programme to navigate to the includes/configure.php file, right-click on that file and use the Properties or CHMOD command to change the permissions on the file.

 

For 7, go to your web hosting control panel, look for a link called something like Directory Protection or Password protect and use that to password protect the admin folder.

 

Vger

Vger, i don't really understand your step 6 and 7... can you please explane to me in more details on step 6 and how to do the web hosting control panel?

 

Thankyou.

Link to comment
Share on other sites

Follow the Network link (top of this page) to the Knowledge Base --> Common Problems --> Cannot redeclare tep_db_connect

 

Vger

Hello,

When I try to open my web site this is the message I get :

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /var/www/domains/e-market.artest.com.tr/docs/includes/functions/database.php:13) in /var/www/domains/e-market.artest.com.tr/docs/includes/functions/database.php on line 25

 

I tried to reinstall th eteh site but the message is still th esame.

Link to comment
Share on other sites

Follow the Network link (top of this page) to the Knowledge Base --> Common Problems --> Cannot redeclare tep_db_connect

 

Vger

Done it thanks.

I finally want to delete or rename the install dir. But when I need to add/remove images change prices how do I open admin console to do these then please advise.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...