Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database Installation


Guest

Recommended Posts

Posted

I am new to all this but I am trying to set up an eccomerce site and am having problems setting up the database. I have the following message

 

New Installation

 

Database Import

 

The following error has occurred:

 

SQL file does not exist: /install/oscommerce.sql

 

can anyone help me ??

 

regards

Rob

Posted

open the following file

 

install/templates/pages/install_4.php

 

find the line $sql_file = $dir_fs_www_root . 'install/oscommerce.sql'

 

and change to the path for the file on your server

 

eg, $sql_file = '/admin/install/oscommerce.sql'

 

you will need to know the path to the root of your site

Posted
open the following file

 

install/templates/pages/install_4.php

 

find the line $sql_file = $dir_fs_www_root . 'install/oscommerce.sql'

 

and change to the path for the file on your server

 

eg, $sql_file = '/admin/install/oscommerce.sql'

 

you will need to know the path to the root of your site

 

 

Thank you for your reply, however I can't find the sql_file line in the install_4.php file

Posted
Thank you for your reply, however I can't find the sql_file line in the install_4.php file

 

$sql_file = $dir_fs_www_root . SQL_FILE;

 

perhaps this line? or something similar?

Posted
$sql_file = $dir_fs_www_root . SQL_FILE;

 

perhaps this line? or something similar?

 

 

I can't find any mention of $sql in any of the file

Posted
I can't find any mention of $sql in any of the file

 

 

I have managed to find references of the $sql strings in:

 

install_2.php

 

<p><?php echo $dir_fs_www_root . 'install/oscommerce.sql'; ?></p>

 

install_3.php

 

$sql_file = 'install/oscommerce.sql';

 

What do I need to change to make the installation work?

 

Regards

Rob

Posted

On mine it is in install_4 but that could be the problem in step 3

 

Change it to the whole path from the root of the server (ask your host if you don't know)

 

it will look more like

 

$sql_file = '/path_from_root/install/oscommerce.sql';

 

regards

Archived

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

×
×
  • Create New...