stephvand Posted August 9, 2005 Share Posted August 9, 2005 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 More sharing options...
stephvand Posted August 10, 2005 Author Share Posted August 10, 2005 *bump* Is it possible to hardcode the path in install.php where the .sql file is to be found? Link to comment Share on other sites More sharing options...
stephvand Posted August 10, 2005 Author Share Posted August 10, 2005 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'; to $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 More sharing options...
Guest Posted August 10, 2005 Share Posted August 10, 2005 means something is configured incorrectly with your server, if it doesnt read correctly Link to comment Share on other sites More sharing options...
stephvand Posted August 10, 2005 Author Share Posted August 10, 2005 means something is configured incorrectly with your server, if it doesnt read correctly <{POST_SNAPBACK}> Yeah, thanks...it thinks the document root is in a different spot, evidently. Sigh. It ain't easy being root. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.