KevinAce Posted July 11, 2003 Share Posted July 11, 2003 I'm receiving the following on any file I try to access to install (including .com/catalog/install/): Warning: main(includes/functions/general.php) [function.main]: failed to create stream: No such file or directory in /home/amss/public_html/catalog/install/includes/application.php on line 28 Fatal error: main() [function.main]: Failed opening required 'includes/functions/general.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/amss/public_html/catalog/install/includes/application.php on line 28 Which leads me to believe this is path-related. I'm using Cpanel so my path to the site is /home/amss/public_html/ (resolves to acemusicsuperstore.com). Here's my config file from /catalog/includes/configure.php: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.acemusicsuperstore.com/'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://www.acemusicsuperstore.com/'); // eg, https://localhost - define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // define('DIR_FS_DOCUMENT_ROOT', '/home/amss/public_html/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); // define('DIR_FS_CATALOG', '/home/amss/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', '####'); define('DB_SERVER_PASSWORD', '####'); define('DB_DATABASE', '####'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> I've tried the absolute paths, virtual paths, $DOCUMENT_ROOT, no $DOCUMENT_ROOT and I'm flat out of ideas. Any suggestions would be greatly appreciated. Feel free to message me... AIM: ace56789 ICQ: 9477315 Thanks, Kevin[/code] Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2003 Share Posted July 11, 2003 I did not install , but you can check the links below for some info Link to comment Share on other sites More sharing options...
darkseid Posted July 13, 2003 Share Posted July 13, 2003 Ask the admin to modify in php.ini the value of include_path to: .:/usr/local/lib/php or .:/usr/local/lib/php:/usr/lib/php then restart apache Link to comment Share on other sites More sharing options...
KevinAce Posted July 14, 2003 Author Share Posted July 14, 2003 I went home and triedt he next day...and it worked perfectly. I'll just assume it was a problem with the host. Link to comment Share on other sites More sharing options...
KevinAce Posted July 21, 2003 Author Share Posted July 21, 2003 Same problem is back again out of nowhere! It worked yesturday, I came in and went to the admin folder and it was dead with the same errors as before... I'm really clueless as to why this is happening. I contacted my host but they "do not support third party software". Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2003 Share Posted July 21, 2003 Ask the admin to modify in php.ini the value of include_path to: .:/usr/local/lib/php or .:/usr/local/lib/php:/usr/lib/php then restart apache This is correct. If your host won't change this, add the following line before the require('includes/application_top.php'); line in every .php file in your main catalog directory: ini_set('include_path', '.:/usr/local/lib/php:/usr/lib/php'); You could also do this by adding the following to a .htaccess file: php_value include_path .:/usr/local/lib/php:/usr/lib/php Good luck, Matt Link to comment Share on other sites More sharing options...
kenc Posted July 22, 2003 Share Posted July 22, 2003 Hi I have just installed osCommerce. It is great. Everything seems fine except the following error. Could anyone tell me how to fix it? When I tried to open http://tt167//osCommerce/admin/configuration.php?gID=1 Warning: Failed opening 'd:/php/ken///catalog/includes/data/rates.php' for inclusion (include_path='.;d:phpken') in d:phpkenoscommerceadminincludesinclude_once.php on line 4 D:php/ken is my root. So the path should be d:/php/ken/osCommerce/catalog/includes/data/rates.php' Thanks kenc Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2003 Share Posted July 22, 2003 Could you post your includes/configure.php file without the database bits? Thanks, Matt Link to comment Share on other sites More sharing options...
kenc Posted July 22, 2003 Share Posted July 22, 2003 I have made it work now. Thanks anyway. I have created a configure.php file. I just modified application_top.php ---------------------------- //define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/'); define('DIR_FS_DOCUMENT_ROOT', ''); define('DIR_FS_LOGS', '/usr/local/apache/logs/'); //define('DIR_WS_ADMIN', '/osCommerce/admin/'); //define('DIR_WS_CATALOG', 'osCommerce/catalog/'); define('DIR_WS_ADMIN', '/osCommerce/admin/'); define('DIR_WS_CATALOG', '/osCommerce/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', DIR_WS_ADMIN . 'images/'); //define('DIR_WS_IMAGES', '/images/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); ----------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
KevinAce Posted July 22, 2003 Author Share Posted July 22, 2003 Looks like all I needed to do was specify a "Languages=en" variable in the URL. It worked some of the time because the session was cookied...but then when the cookie expired, things started messing up. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.