Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

installing on www.mysite.com/index.php


shutiri

Recommended Posts

Posted

How do I do that ?

 

Install for the catalog opens on the www.mysite.com instead of www.mysite.com/catalog/ . In other words, I would like the catalog to be the first page of my site.

 

thank you

shutiri.

Posted

Hi,

 

Install for the catalog opens on the www.mysite.com instead of www.mysite.com/catalog/ .  In other words, I would like the catalog to be the first page of my site.

 

Yes, can't say I like to use the /catalog path, and we always setup osC websites as you want..

 

Here is the /catalog/includes/configure.php

 

  define('DIR_WS_HTTP_CATALOG', '/');

 define('DIR_FS_CATALOG', '/home/username/public_html/');

 

... where /home/username/public_html == http://example.com (the osC store)

 

Of course the 'configure.php' I mentioned above is _really_ in:

 

/home/username/public_html/includes/configure.php

 

Peter

Posted

ok, I understand. But still don't know the steps:

 

During the installation, I upload everything to my public_html folder ? It would still be like public_html/catalog... or just copy everything from the /catalog to public_html/, to have the index.php on the www.mysite.com/ folder ?

 

If I'm lost, please tell me. Should I just install normally and then just change the parts of code you told me ? :unsure:

 

thank you

shutiri.

Posted

Hi,

 

...  or just copy everything from the /catalog to public_html/, to have the index.php on the www.mysite.com/ folder ?

 

Yes, that is what you do, ... correct.

 

Peter

Posted

copy the catalog folder to /public_html

 

Once that is copy...to install typ http://yourdomain.com/catalog/install

 

If you get the install page then it is working. If not, check if you setup your data base in your domain control. My install database name is yourdomain_shoppingcart and user name is yourdomain_db. I sugest also going back in to the installation note .. click on below link to take you there. I had problems understanding it for 3 days. Till i try and try again. took me 3 trys to figure the installation out. Eventually you will understand it more. Try it out if your still stuck, reply again.

Posted

I've already did a complete (and working ;) ) installation. My concern is about having the catalog loading on a www.mysite.com request on a browser.

 

My question is (and I think it is already answered, but just to be sure): I copy the /catalog CONTENT to my public_html/ folder, not the /catalog FOLDER, right ? (sorry for insisting)

 

thank you

shutiri.

Posted

Hi,

 

I've already did a complete (and working  ;) ) installation.  My concern is about having the catalog loading on a www.mysite.com request on a browser.

 

Yes, I assumed from your other posts in other threads that you have your store up and going, and just wanted to have the catalog load as you described above.

 

My question is (and I think it is already answered, but just to be sure):  I copy the /catalog CONTENT to my public_html/ folder, not the /catalog FOLDER, right ?  (sorry for insisting)

 

Totally correct, yes, the content, and of course, all the sub paths/folders. :D

 

Don't forget to modify the 2 configure.php files, now you have shifted the path to the store up one level, you will need some minor changes there also. :)

 

Peter

Posted

<_< 2 configure.php ? I only knew about 1... : /includes/configure.php

 

what do you mean: "some minor changes there also" ? will this change be too difficult ?

 

thank you for your quick answers...

shutiri.

Posted

Hi,

 

<_<  2 configure.php ?  I only knew about 1... : /includes/configure.php

 

sorry, make that one, I was assuming you would also move the 'admin' folder. :D

 

what do you mean: "some minor changes there also" ?  will this change be too difficult ?

 

Only as per second post in this thread, these 2 lines .......

 

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_FS_CATALOG', '/home/username/public_html/');

 

Peter

Posted

yes, the admin folder would be in public_html/admin. Do I have to edit it ?

 

the 2 lines are on the configure.php too. Aren't they modified automatically during the installation ?

 

thank you again,

shutiri.

Posted

Hi,

 

yes, the admin folder would be in public_html/admin.  Do I have to edit it ?

 

I think you said you were only going to shift the 'catalog' path, therefore , assuming the 'admin' path/folder stays where it is, then there would be no need to change it.

 

the 2 lines are on the configure.php too.  Aren't they modified  automatically during the installation ?

 

Yes, they are modified if you tick the checkbox in the installation to do so. However, from memory, you already have the site up and going (post install), and only wanted to shift the 'catalog' folder/path, so that when I visit your site:

 

http://yoursite.com

 

I will see your catalog/store.

 

I don't see a need/reason to redo the install, only change the 2lines in the configure.php, to reflect the "path shift".

 

Peter

Posted

sorry, my mistake. :rolleyes:

 

I forgot to say I'm doing a brand new installation. I did a "test" install and now I'm doing the "real" one on my site. So yes, everything will be shifted; catalog, admin... I suppose I have to edit the configure.php on the public_html/admin folder too. Or are they automatically edited ? I suppose they are. (I hope they are ;) )

 

thank you.

Posted

Another thing: all this is because I didn't understood what "step 4" means. I did my first installation following the wiki doc. And I saw the text about putting all in root, but I don't (still) understand what they mean:

 

Root Directory Installation

To install the catalog folder files into the root directory put the files from the catalog folder into the root directory & the admin folder into the root directory. Then, point your domain to:

 

yourserver.com/install/ and setup changing the Step 4 configuration to this:

 

 

**__Step 4 Root Installation__**

Please enter the web server information:

 

**WWW Address - http://www.example.com/**

The full website address to the online store

The web address to the online store, for example http://www.example.com/catalog/

 

**Webserver Root Directory - /home/username/public_html/ ** 

The server path to the online store

The directory where osCommerce is installed on the server, for example /home/myname/public_html/

 

**HTTP Cookie Domain - www.example.com** 

The domain to store cookies in

The full or top-level domain to store the cookies in, for example www.my-server.com

 

**HTTP Cookie Path - / **

The path to store cookies under

The web address to limit the cookie to, for example /catalog/

 

**Enable SSL Connections - if you have ssl enable this **

Enable secure SSL/HTTPS connections (requires a secure certificate installed on the web server)

 

Do you understand what they mean ? what should I put on each option ?

 

I suppose:

 

**WWW Address - http://www.example.com/**

http://www.mysite.com/

 

**Webserver Root Directory - /home/username/public_html/ **

/home/mysite/public_html/

 

**HTTP Cookie Domain - www.example.com**

www.mysite.com

 

**HTTP Cookie Path - / **

/

 

**Enable SSL Connections - if you have ssl enable this **

Enable secure SSL/HTTPS connections (requires a secure certificate installed on the web server)

 

thank you.

Archived

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

×
×
  • Create New...