tubarao21 Posted December 28, 2005 Share Posted December 28, 2005 Hello there. I'm a newbie to OsCommerce and PHP. I searched the forum before and i found some answers but not quite what i was expecting. This is my problem. I managed to installed OSC, it showed me a path for the oscommerce.sql file that i didn't write it down. Anyway, when i try to acceed the site (http://www.mysite.com/onlinestore/admin/index.php) (this is a forwarding of my domain) i get the following message: "Unable to connect to database server!" I think i must edit both configures.php, but i don't know how and where to edit. thanks for the attention. Link to comment Share on other sites More sharing options...
♥Vger Posted December 28, 2005 Share Posted December 28, 2005 In both of your configure.php files you must set the correct entries for: define('DB_SERVER', ''); // eg, localhost define('DB_SERVER_USERNAME', ''); // your MySQL User Name define('DB_SERVER_PASSWORD', ''); // your MySQL Password define('DB_DATABASE', ''); // name of your database Vger Link to comment Share on other sites More sharing options...
tubarao21 Posted December 28, 2005 Author Share Posted December 28, 2005 Allright:) Now i got the main "console". Problem is the links are all pointing to the wrong path:( They're pointing to the main site. And the store is something like www.mainsite.com/store/index.php. For example: the link Administration is pointing to www.mainsite.com/admin/index.php and should be like www.mainsite.com/store/index.php. In consequence we got the 404 Error - Object not found. Where can i fix that? Thanks for u're attention ;) Link to comment Share on other sites More sharing options...
♥Vger Posted December 28, 2005 Share Posted December 28, 2005 In admin/includes/configure.php Your DIR_WS_ADMIN should be '/store/admin/' And your DIR_FS_ADMIN should be something like (change to your root path): '/var/www/html/store/admin/' Vger Link to comment Share on other sites More sharing options...
tubarao21 Posted December 29, 2005 Author Share Posted December 29, 2005 Well, i got halfway :) No doubt in DIR_WS_ADMIN. I just didn't undertsand DIR_FS_ADMIN. I have in configure.php: define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); and should be like.. define('DIR_FS_ADMIN', ... ) ? Yes, right now you?re teaching me PHP :) So... '/var/www/html/store/admin/' where /var, i don't know what it means :s and the rest i suppose is www.mysite.com/store/admin. Thank you for your support. Link to comment Share on other sites More sharing options...
tubarao21 Posted December 29, 2005 Author Share Posted December 29, 2005 Ok, so i altered DIR_WS_ADMIN and it seems to solved something 'cause now i can acceed to the configurations, etc.... Only online catalog isn't finding the page and still gives 404 Error, object not found. Its a question of editing configure.php i think. The question now is that, as i altered DIR_FS_ADMIN, (it looks like this: define('DIR_FS_ADMIN', '/var/www.realestudo.com'. DIR_WS_ADMIN);) some errors are being presented. Example: By entering in administration/catalog i have the following error at the top of the page: "Error: Catalog images directory does not exist: /home/httpd/vhosts/realestudo.com/httpdocs/catalog/images/" - Where 'realestudo' is my site and not my store. The question is.. did i edit wrong the DIR_FS_ADMIN? I think so. I get confused definig this. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.