peterr Posted January 14, 2004 Share Posted January 14, 2004 Hi, Because we are needing to evaluate a number of ECommerce products, I've setup a path called /ec/ , under the "public_html" path/directory. The install with osC went reasonably smoothly, I took the short cut mentioned in the 'install' document and after creating the username,db, I simply imported the SQL file. Went okay, no errors. After a minor problem with needing a 444 on the file /catalog/includes/configure.php , the two error messages disappeared, and today I found out I also need to modify /admin/includes/configure.php also, which wasn't in the install, nor could I find it in the Wiki documentation. Anyway, minor problems, it was an easy installation compared to others I've had to do. The site/store looks okay, but now that I need to use the 'admin' functions, the links are not relative paths, they expect the product (osC) to be installed in "public_html" path. Because the website is used for other purposes, I don't want to install it in the web 'root', and there are other products to evaluate under the "ec" path. The "catalog" resolves to http://mydomain/ec/osCommerce/catalog/ , and I can see the catalog and products, etc, and order items, it looks and works okay. The "admin" function resolves to http://mydomain/ec/osCommerce/catalog/admin/ , and but the admin links, for example "Configuration" resolves to: http://mydomain/admin/configuration.php?se...tion&gID=MyIDno Is there anything in the db to set the default path for osC to: http://mydomain/ec/osCommerce/ ?? Thanks, Peter Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2004 Share Posted January 14, 2004 Try making the changes in your catalog/includes/configure.php That should fix it,,, Mike Spires Link to comment Share on other sites More sharing options...
peterr Posted January 14, 2004 Author Share Posted January 14, 2004 Hi Mike, Try making the changes in your catalog/includes/configure.php That should fix it,,, For now, because I wanted to use the 'admin' function, I have only made changes to /catalog/admin/includes/configure.php , but I can see a few missing images here and there, so no doubt I will also change the file in the 'catalog' path as you suggested. The changes were lines 20 and 21 define('DIR_FS_DOCUMENT_ROOT', '/home/username/public_html/ec/osCommerce'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', ''); It was good to be able to use the admin function, added a few products, etc, ... great. Thanks, :) Peter Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.