Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation tips for GoDaddy or failed installs because of server problems


SuperComputing

Recommended Posts

Posted

If you have setup oscommerce before, then skip this, it may not be for you. If you are a newbie and are setting up on GoDaddy, or having an install problem on another host, check this out. This is by no means inclusive, but I hope it helps someone.

 

I setup an oscommerce site a year ago on APlus.net with no problems. I'm a little rusty and still consider myself a newbie at this.

This other company that I am setting this store up for has dozens of domains already registered and hosted with GoDaddy, paid for years in advance, and wants to keep it all with one host.

I wasted a whole day on setting up GoDaddy because the install would loop constantly between pages 2 and 3. Until I found a post by Vger on the configure.php files. I had to make a couple of more changes to get it to work for me and thought that I would list them for you here.

 

 

Purchase Linux Hosting w/PHP

 

Setup Database:

Go into "My hosting account", click on "open" under "Control Panel"

On the left, click on "Databases" and then "MYSQL"

Follow the instructions the top window for creating a new database

Save your hostname: mysqlxxx.secureserver.net, database name (this is also your user name) and password.

When creation is complete, click on "Open Manager" and log in

At the top left, click on the box that says "SQL"

Click on "Import files", the browse to the location of the oscommerce.sql file on your harddrive, then click GO.

When it completes, you will see a list of tables appear on the left, you can then close out your database manager.

 

 

Edit Your php.ini File:

When you get Linux hosting with GoDaddy , you basically get a folder on their server with 5 files in it.

Connect to your new domian "www.yourdomain.com" with your favorite FTP program. You can delete all but the php.ini and then add your own index.htm. Download your php.ini and edit it as follows:

 

register_globals = on

 

Leave all other lines as is and upload back to the server.

 

 

Edit Your configure.php Files and setup a structure:

I wanted my website to have a flash introduction with a link to a store, so I have my php.ini file and my website in the root folder and the oscommerce store is in a folder called 'catalog'.

I bought a template from templatemonster.com, and as it was packaged, the oscommerce files were in a folder called 'osc'. I extracted these files and renamed the folder to 'catalog'. You can now delete the 'install' folder since you will be skipping that (thanks Vger).

 

Edit the following lines in your catalog/includes/configure.php

 

define('HTTP_SERVER', 'http://www.yourdomainname.com/'); // ---- notice the '/' after the domain name

define('HTTP_COOKIE_DOMAIN', 'www.yourdomainname.com');

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

define('DB_SERVER', 'mysqlXXX.secureserver.net'); // --- This is the servername you recorded earlier

define('DB_SERVER_USERNAME', 'yourusername'); // --- your username (database name)

define('DB_SERVER_PASSWORD', 'yourpassword');

define('DB_DATABASE', 'yourdatabasename'); // --- your username (database name)

 

Edit the following lines in your catalog/admin/includes/configure.php

 

define('HTTP_SERVER', 'http://www.yourdomainname.com'); // --- no extra slash this time

define('HTTP_CATALOG_SERVER', 'http://www.yourdomainname.com/catalog');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DB_SERVER', 'mysqlXXX.secureserver.net'); // --- This is the servername you recorded earlier

define('DB_SERVER_USERNAME', 'yourusername'); // --- your username (database name)

define('DB_SERVER_PASSWORD', 'yourpassword');

define('DB_DATABASE', 'yourdatabasename'); // --- your username (database name)

 

Use your FTP program to upload the entire 'catalog' folder onto your site.

 

browse to www.yourdomainname.com/catalog for your store. /catalog/admin for control

Change the permissions on the two configure.ini files to 444 and read about .htaccess to protect your admin site.

Posted
If you have setup oscommerce before, then skip this, it may not be for you. If you are a newbie and are setting up on GoDaddy, or having an install problem on another host, check this out. This is by no means inclusive, but I hope it helps someone.

 

I setup an oscommerce site a year ago on APlus.net with no problems. I'm a little rusty and still consider myself a newbie at this.

This other company that I am setting this store up for has dozens of domains already registered and hosted with GoDaddy, paid for years in advance, and wants to keep it all with one host.

I wasted a whole day on setting up GoDaddy because the install would loop constantly between pages 2 and 3. Until I found a post by Vger on the configure.php files. I had to make a couple of more changes to get it to work for me and thought that I would list them for you here.

Purchase Linux Hosting w/PHP

 

Setup Database:

Go into "My hosting account", click on "open" under "Control Panel"

On the left, click on "Databases" and then "MYSQL"

Follow the instructions the top window for creating a new database

Save your hostname: mysqlxxx.secureserver.net, database name (this is also your user name) and password.

When creation is complete, click on "Open Manager" and log in

At the top left, click on the box that says "SQL"

Click on "Import files", the browse to the location of the oscommerce.sql file on your harddrive, then click GO.

When it completes, you will see a list of tables appear on the left, you can then close out your database manager.

Edit Your php.ini File:

When you get Linux hosting with GoDaddy , you basically get a folder on their server with 5 files in it.

Connect to your new domian "www.yourdomain.com" with your favorite FTP program. You can delete all but the php.ini and then add your own index.htm. Download your php.ini and edit it as follows:

 

register_globals = on

 

Leave all other lines as is and upload back to the server.

Edit Your configure.php Files and setup a structure:

I wanted my website to have a flash introduction with a link to a store, so I have my php.ini file and my website in the root folder and the oscommerce store is in a folder called 'catalog'.

I bought a template from templatemonster.com, and as it was packaged, the oscommerce files were in a folder called 'osc'. I extracted these files and renamed the folder to 'catalog'. You can now delete the 'install' folder since you will be skipping that (thanks Vger).

 

Edit the following lines in your catalog/includes/configure.php

 

define('HTTP_SERVER', 'http://www.yourdomainname.com/'); // ---- notice the '/' after the domain name

define('HTTP_COOKIE_DOMAIN', 'www.yourdomainname.com');

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

define('DB_SERVER', 'mysqlXXX.secureserver.net'); // --- This is the servername you recorded earlier

define('DB_SERVER_USERNAME', 'yourusername'); // --- your username (database name)

define('DB_SERVER_PASSWORD', 'yourpassword');

define('DB_DATABASE', 'yourdatabasename'); // --- your username (database name)

 

Edit the following lines in your catalog/admin/includes/configure.php

 

define('HTTP_SERVER', 'http://www.yourdomainname.com'); // --- no extra slash this time

define('HTTP_CATALOG_SERVER', 'http://www.yourdomainname.com/catalog');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DB_SERVER', 'mysqlXXX.secureserver.net'); // --- This is the servername you recorded earlier

define('DB_SERVER_USERNAME', 'yourusername'); // --- your username (database name)

define('DB_SERVER_PASSWORD', 'yourpassword');

define('DB_DATABASE', 'yourdatabasename'); // --- your username (database name)

 

Use your FTP program to upload the entire 'catalog' folder onto your site.

 

browse to www.yourdomainname.com/catalog for your store. /catalog/admin for control

Change the permissions on the two configure.ini files to 444 and read about .htaccess to protect your admin site.

 

thanks for the info. i had a earlier web site on this host and deleted everytin for the store. reading you article i now noticed i don't have a php.ini file. how would i edit something i can't find. second sound like you run a flash site and then a second "storesite" would like to see how you have your sie set up for some ideas. my ideas tend to look like all store or all flash. looking to see how to merge the to thanks

Posted

Sirryche,

(the following is put in basic terms, and may be more info than you need, because I mean for anyone who reads it to be able to follow)

 

The php.ini file is given to you when you setup a Linux hosting account. Look at your hosting manager to make sure that are not using Windows hosting. I haven't tried these instructions under Windows yet.

 

If you have lost, or inadvertantly deleted your php.ini file, here are the contents of mine. Just copy and past into a simle text file and ftp into the top level folder in your account.

 

register_globals = on

allow_url_fopen = on

 

expose_php = Off

max_input_time = 60

variables_order = "EGPCS"

extension_dir = ./

upload_tmp_dir = /tmp

precision = 12

SMTP = relay-hosting.secureserver.net

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

 

[Zend]

zend_extension=/usr/local/zo/ZendExtensionManager.so

zend_extension=/usr/local/zo/4_3/ZendOptimizer.so

 

As for seeing my site... not yet, it is still in production. However, here is the basic structure: Create a text file with the following and save it as 'index.htm file'. FTP it into your root directory with your php.ini.

 

<html>

<title>mydomaindotcom website and online store</title>

<body>

<br>

<br>

Flashy new website goes here.

<br>

<br>

<br>

Click <a href="/catalog">HERE</a> to order my products online.

<br>

</body>

</html>

 

Now, do the same thing with your flash. Put it in your root folder, and have a link to your store as that is simply "/catalog". If you followed my instructions from above, your store will launch from here.

 

BTW, this setup is 'all store or al flash' they are just in different folders.

Archived

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

×
×
  • Create New...