PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 11-18-04, 10:35 PM   #1
Iconsys1
 
Posts: n/a
Angry osCommerce replacing index.html

Hey Everyone,
I'm extremely new to osCommerce so this question may seem semi - retarded. I setup OsCommerce fine through powweb but wanted it to come up as soon as people entered my site. So i figured I'd just replace the index.html file with the index.php file from osCommerce. Now i get the error

"Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/php4/lib/php') in /www/i/iconsys1/htdocs/index.php on line 13"


I'm not sure if it is telling me to add '.:/usr/local/php4/lib/php' on line 13? or if I just totally did this the wrong way and there is a special way to go about this. Please help!

thanks in advance
 
Old 11-19-04, 05:36 AM   #2
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
Let me take a guess as to what you did. You installed osCommerce and took the default so that it put all the osC files in a subfolder named catalog or perhaps even something like oscommerce/catalog. You want the store to be your site, so you took the catalog/index.php file and moved it up a level to under htdocs.

This won't work - osC assumes that the relative folder structure stays the same. The proper way to do this is to install everything to the proper level initially, so that index.php and all of its files and folders underneath are in your htdocs. I don't know if the PowWeb install can do this - what I did was download the ZIP of osCommerce to my PC, unpack it where I wanted it, and uploaded all the files to my site.

Some may suggest a redirect, either in an index.html or .htaccess, as an alternative. While this is easy, it is also ugly and you will be penalized by search engines for it.

If you move the files, you don't have to redo the database and install scripts. Just edit the two configure.php files to reflect the new path. While you're at it, rename the admin folder something else hard to guess. And don't forget to password-protect admin using .htaccess.
__________________
Steve
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:30 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.