Guest DSWK Posted August 1, 2006 Share Posted August 1, 2006 :innocent: Hello Guys, I am new to Cube Cart. I am helping a friend to develop site. He has registered with one ASP, who allows to use oSCommerce, Cubecart and other commerce shopping cart softwares. My friend wanted to use Cube Cart. I am developing site on my local machine. So I downloaded (via FTP to ASP), the site. Details are. Environment : Windows 2000 Professional, with IIS installed. SQL Server: MYSQL 5 PHP : Version 5 Created virtual directory for this site. So I can access this site locally by using. Http://localhost/CAEHS/index.php My global.inc.php file is as follows. <?php $glob['dbdatabase'] = 'caehsdb'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'xxxxxxx'; $glob['dbprefix'] = ''; $glob['dbusername'] = 'caehsadmin'; $glob['installed'] = '1'; $glob['rootDir'] = '/caehsdb/'; $glob['rootRel'] = '/caehsdb'; $glob['storeURL'] = 'http://localhost/caehsdb'; ?> The provider has unix based systems, so there global.inc is different. But that should be irrelevant. I can login to admin, but when I do, I get all Warning: main(/caehsdb/classes/db.inc.php) [function.main]: failed to open stream: No such file or directory in .... htdocs\admin\includesauth.inc.php on line 60 Warning: main(/caehsdb/admin/includes/navigation.inc.php) [function.main]: failed to open stream: No such file or directory in ....htdocs\admin\includes\header.inc.php on line 57 Warning: main() [function.include]: Failed opening '/caehsdb/admin/includes/navigation.inc.php' for inclusion (include_path='.;C:\php5\pear') in htdocs\admin\includes\header.inc.php on line 57 I have tried to search within forums and apply several suggestions regarding rootDir and rootRel. But no luck. Can anyone please help me? Regards, DSWK Quote Link to comment Share on other sites More sharing options...
roban Posted August 1, 2006 Share Posted August 1, 2006 I can tell you right off the bat your paths are wrong. It's not possible to tell you what they should be but what you have isn't right. Quote Link to comment Share on other sites More sharing options...
Robsta Posted August 1, 2006 Share Posted August 1, 2006 My global.inc.php file is as follows. <?php $glob['dbdatabase'] = 'caehsdb'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'xxxxxxx'; $glob['dbprefix'] = ''; $glob['dbusername'] = 'caehsadmin'; $glob['installed'] = '1'; $glob['rootDir'] = '/caehsdb/'; $glob['rootRel'] = '/caehsdb'; $glob['storeURL'] = 'http://localhost/caehsdb'; ?> Try changing the following: $glob['rootDir'] = 'c:\\inetpub\\wwwroot\\caehsdb'; $glob['rootRel'] = '/caehsdb/'; Quote Link to comment Share on other sites More sharing options...
Guest DSWK Posted August 2, 2006 Share Posted August 2, 2006 roban, Surely, it was wrong. I am new to this, so have least knowledge. But thank you. Robsta, Your solution did work. many thanks to you. Should this be the settings for Windows, IIS based enviroment. Is this unusual setup, that there is no reference? Thanks to you all. I will be glad to help other for this issue at least. Got some knowledge now. Regards, My global.inc.php file is as follows. <?php $glob['dbdatabase'] = 'caehsdb'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'xxxxxxx'; $glob['dbprefix'] = ''; $glob['dbusername'] = 'caehsadmin'; $glob['installed'] = '1'; $glob['rootDir'] = '/caehsdb/'; $glob['rootRel'] = '/caehsdb'; $glob['storeURL'] = 'http://localhost/caehsdb'; ?> Try changing the following: $glob['rootDir'] = 'c:\\inetpub\\wwwroot\\caehsdb'; $glob['rootRel'] = '/caehsdb/'; Quote Link to comment Share on other sites More sharing options...
Guest bajdaj Posted November 27, 2006 Share Posted November 27, 2006 Hi my admin panel gives me these errors: Warning: main(/contents5z/classes/db.inc.php) [function.main]: failed to open stream: No such file or directory in /homepages/13/d165971536/htdocs/contents5z/admin/includes/auth.inc.php on line 60 Warning: main() [function.include]: Failed opening '/contents5z/classes/db.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/13/d165971536/htdocs/contents5z/admin/includes/auth.inc.php on line 60 Warning: main(/contents5z/admin/includes/navigation.inc.php) [function.main]: failed to open stream: No such file or directory in /homepages/13/d165971536/htdocs/contents5z/admin/includes/header.inc.php on line 57 Warning: main() [function.include]: Failed opening '/contents5z/admin/includes/navigation.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/13/d165971536/htdocs/contents5z/admin/includes/header.inc.php on line 57 Could someone please help. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.