Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Problem with database import and path to .sql file


Recommended Posts

Hi folks. Having a problem with installation...this is the second OSCommerce store to be installed on my dedicated server. The first installation went absolutely fine, which is why this is so confusing.


At the "database import" stage, I get this:


The following error has occurred:


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


Why is the program looking in this directory on my server? It should be looking in /var/www/www.domainname.com/html/catalog/install/oscommerce.sql, which is where the file actually IS.


Suggestions please!

Link to comment
Share on other sites

Ok, figured it out.


In catalog/install/templates/pages/, file install_3.php, line 44 I changed


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




$sql_file = '/var/www/www.websiteaddress.com/html/catalog/install/oscommerce.sql';


and it worked. So it can be hardcoded. It threw up a few weird errors afterward but it seems to be ok.

Link to comment
Share on other sites


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

  • Create New...