SBDJ Posted March 10, 2004 Share Posted March 10, 2004 Trying a fresh install of the latest zip download from the osCommerce website. I'm having some problems getting the paths to work... for example, when I first fo to install I get: Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /home/www/sbdj/site/catalog/install/includes/application.php on line 22 Fatal error: main(): Failed opening required 'includes/functions/general.php' (include_path='/usr/local/lib/php') in /home/www/sbdj/site/catalog/install/includes/application.php on line 22 All the files exist - I can edit the application.php and the main_page.php files manually to point them to the correct paths and it works fine. For example I have to change: <?php require('templates/main_page/header.php'); ?> to <?php require('main_page/header.php'); ?> for the install to even display. So I do all that, get through it all, and what do I find? Exactly the same thing with osCommerce itself! Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/www/sbdj/site/catalog/includes/application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php') in /home/www/sbdj/site/catalog/includes/application_top.php on line 29 Oh god. Here we go again! require('includes/configure.php'); to require('configure.php'); Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/www/sbdj/site/catalog/includes/application_top.php on line 53 Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='/usr/local/lib/php') in /home/www/sbdj/site/catalog/includes/application_top.php on line 53 OK, let's edit configure.php... define('DIR_WS_INCLUDES', 'includes/'); to define('DIR_WS_INCLUDES', '/www/sbdj/site/catalog/includes/'); and we seem to be good! Similar changes to the admin panel to fix that as well. Should it be this much hassle, or am I missing something? Link to comment Share on other sites More sharing options...
SBDJ Posted March 10, 2004 Author Share Posted March 10, 2004 DOH! That doesn't work either - I've just noticed the URL for the language icons is using the full include path. It appears the problem lies with using the paths to the folders, but I don't know what to do about it! I'm open to suggestions, even if they are "you're being thick, do this" :D Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2004 Share Posted March 10, 2004 Which version are you trying to install 2.2MS2 or the 2.2 CVS ? The_Bear Link to comment Share on other sites More sharing options...
SBDJ Posted March 10, 2004 Author Share Posted March 10, 2004 2.2MS2... should I be trying the CVS? Link to comment Share on other sites More sharing options...
241 Posted March 10, 2004 Share Posted March 10, 2004 no the 2.2MS2 is the more stable. You dont actually require the install part you can create a blank database using phpMyadmin and load the sql from the install directory to this database then modify the catalog/includes/configure.php and admin/includes/configure.php files manually to reflect the paths. You can pm me your configure.php files if you want and I will help you to set up the configure.php files No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
SBDJ Posted March 10, 2004 Author Share Posted March 10, 2004 I tried that way too LOL. In my configure.php I have to specify an absolute path for the include folder, otherwise it doesn't work. But doing so breaks anything that hyperlinks into that folder - eg the language icons on the right.... :( Link to comment Share on other sites More sharing options...
241 Posted March 11, 2004 Share Posted March 11, 2004 Post your configs or pm me them I will check them for you No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
SBDJ Posted March 15, 2004 Author Share Posted March 15, 2004 <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 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.test.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.test.co.uk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'test.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'test.co.uk'); define('HTTP_COOKIE_PATH', '/test'); define('HTTPS_COOKIE_PATH', '/test'); define('DIR_WS_HTTP_CATALOG', '/test/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/test/catalog/'); define('DIR_WS_IMAGES', '/test/catalog/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', '/allskate/catalog/includes/'); 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', '/test/catalog/pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); 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 empty for productive servers define('DB_SERVER_USERNAME', 'MySQLUserName'); define('DB_SERVER_PASSWORD', 'MySQLPassword'); define('DB_DATABASE', 'test'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Gets me.... Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/www/test/catalog/includes/application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php') in /home/www/test/catalog/includes/application_top.php on line 29 :( Link to comment Share on other sites More sharing options...
241 Posted March 15, 2004 Share Posted March 15, 2004 Try this <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 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.test.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.test.co.uk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'test.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'test.co.uk'); define('HTTP_COOKIE_PATH', '/test/catalog/'); define('HTTPS_COOKIE_PATH', '/test/catalog/'); define('DIR_WS_HTTP_CATALOG', '/test/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/test/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); 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', 'pub/'); define('DIR_FS_CATALOG', '/home/www/test/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 empty for productive servers define('DB_SERVER_USERNAME', 'MySQLUserName'); define('DB_SERVER_PASSWORD', 'MySQLPassword'); define('DB_DATABASE', 'test'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
murk Posted April 1, 2004 Share Posted April 1, 2004 :( I am having the exact same issue as SBDJ. I get the following error in my php-error-log: [01-Apr-2004 15:02:38] PHP Warning: main(templates/main_page/header.php): failed to open stream: No such file or directory in /web/www.bigsite.com/htdocs/oscommerce/catalog/catalog/install/templates/main_page.php on line 34 I am just trying to run the install script. The file exists, but the relative pathing seems to be wrong when the files get included from another include file. Link to comment Share on other sites More sharing options...
janeinpa Posted April 2, 2004 Share Posted April 2, 2004 Me, too! I'm very new to this. I installed the software and it went fine. The catalog looked fine at first. Then I followed the directions to change the permissions to 644. I tried several times to change the permissions for the configure file (a security risk, it says) and when I click "catalog" I get this: Warning: Installation directory exists at: /home/tjspet/www/www/catalog/install. Please remove this directory for security reasons. Warning: I am able to write to the configuration file: /home/tjspet/www/www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Warning: main(includes/boxes/categories.php): failed to open stream: No such file or directory in /home/tjspet/www/www/catalog/includes/column_left.php on line 16 Warning: main(): Failed opening 'includes/boxes/categories.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/tjspet/www/www/catalog/includes/column_left.php on line 16 Warning: main(includes/boxes/manufacturers.php): failed to open stream: No such file or directory in /home/tjspet/www/www/catalog/includes/column_left.php on line 22 Warning: main(): Failed opening 'includes/boxes/manufacturers.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/tjspet/www/www/catalog/includes/column_left.php on line 22 Warning: main(includes/boxes/whats_new.php): failed to open stream: No such file or directory in /home/tjspet/www/www/catalog/includes/column_left.php on line 25 Fatal error: main(): Failed opening required 'includes/boxes/whats_new.php' (include_path='.:/usr/local/lib/php') in /home/tjspet/www/www/catalog/includes/column_left.php on line 25 Did this say plug and play? I'm pretty good with HTML, but I'm getting frustrated with this. Maybe it doesn't matter. I already have a site that uses paypal. We're just about ready to go live. I just want OSCommerce to write customer information to the database. will this happen automatically or must I do something other than install the module? Hope one of you gurus can help! Link to comment Share on other sites More sharing options...
AlanR Posted April 2, 2004 Share Posted April 2, 2004 Me, too! I'm very new to this. I installed the software and it went fine. The catalog looked fine at first. Then I followed the directions to change the permissions to 644. I tried several times to change the permissions for the configure file (a security risk, it says) and when I click "catalog" I get this: Warning: Installation directory exists at: /home/tjspet/www/www/catalog/install. Please remove this directory for security reasons. Warning: I am able to write to the configuration file: /home/tjspet/www/www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Those are simple. Set permissions on the configure file but wait till you read the rest of this post. Delete or re-name the installation directory. ----------------- The rest of your problems are almost certainly due to errors in your /includes/configure.php file. Errors you made in the install. Post that file here minus your private db info. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
janeinpa Posted April 2, 2004 Share Posted April 2, 2004 Thanks. Actually I just managed to fix all the wacky warnings. I'm still getting the little one at the top of the page, "Warning: I am able to write to the configuration file: /home/tjspet/www/www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file." I set the permissions to 644 as instructed, but I still get this message. Any ideas? Also, is this set up now to get info from PayPal's IPN system? I installed the module, but do I have to do anything else? Jane Link to comment Share on other sites More sharing options...
241 Posted April 2, 2004 Share Posted April 2, 2004 try chmod 444 which is read only No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.