CKY2K Posted June 14, 2003 Posted June 14, 2003 I apologize for asking this because I know it is posted somewhere else but I cannot find it. I just installed osCommerce that was in my CPanel inside my server account. I get this error on every page Warning: main(includes/configure.php) [function.main]: failed to create stream: No such file or directory in /home/ndorgs/public_html/shopzone/includes/application_top.php on line 34 Fatal error: main() [function.main]: Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/ndorgs/public_html/shopzone/includes/application_top.php on line 34 I kind of figure I have to modify something but where and what (and how)?? Thankyou for any assisstance! _ -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 who are you using as a host company? The reason I ask is I also used my Cpanel through my host to install osc and had issues. For some reason the installation through the cpanel did not install some files or create directories. I would suggest downloading the osc milestone 2.1 and installing it yourself. you would need to create your own database name and database user through mySql in your cpanel, and that really is an easy process. I can try and walk you through the process if need be. After I installed osc myself, it worked, more or less, flawlessly with the exception of the file manager, that worked then stopped. I use ftp and notepad + to manage my files anyway. To be honest, you will learn much more from working with the installation yourself and find working with the initial configuration after installation much easier as well (in my opinion any way). Besides, it is much more rewarding. :lol:
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 I am using RCTHost. osCommerce was in the Add-Ons page -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 not my host, but I would still suggest doing it yourself, unless your host is willing to do it. some do. at any rate, if you want the help with the install, let me know.
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 Well the site is here http://www.ndorgs.com/shopzone/ Even when I manually uploaded the files I still had this same problem. I figure I need to modify something firstly. Where do I start from here? _ -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 It says ForbiddenYou don't have permission to access /shopzone/includes/application_top.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.27 Server at www.ndorgs.com Port 80 _ -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 Fatal error: main() [function.main]: Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php:/usr/lib/php')in /home/ndorgs/public_html/shopzone/includes/application_top.php on line 34 why is /usr/loacl/lib/php there twice?
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 Again I don't know. I did not modify anything yet. I just installed it _ -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 assumably you set your permissions before running the install and made sure the you had the right directories where they needed to be? Can you ftp to your site and download the application_top.php file to take a look at it?
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 Ok, I downloaded it, now what? -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 look at line 34 and make sure the right info is there
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 What exactly should the 'right information' be? -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 can I ask what the permissions are set to on configure.php? granted, I am not a php guru, but if I ventured a guess, either they are set wrong and/or the paths are not totally correct. Here is a example of my configure.php path setting: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://carolina-eclassifieds.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://carolina-eclassifieds.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/store/'); // absolute path required 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', ''); define('DIR_FS_CATALOG', '/home/usr/public_html/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); check there too. your permissions on configure.php after install should br either 644 or 444.
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 This is what I have. I dont see 644 or 444 anywhere // Define the webserver and path parameters// * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://ndorgs.com'); define('HTTPS_SERVER', 'https://ndorgs.com'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shopzone/'); 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); // 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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 i don't know how well you know php, better than me probably. have you tried usin your local path for the following: define('DIR_FS_DOCUMENT_ROOT', local path here); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) I don't have a local path there, mine is left blank and is working fine.
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 For the local path would I put my host? IE: .....ROOT', rcthost.com); // whe..... How do I put my local host? Example would help! :wink: -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 an example of the path would be: /usr/local/apache/htdocs) or /home/usr_name_goes_here/public_html/ as it is would be in my case
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 Would this work like this? .....NT_ROOT', /home/ndorgs/public_html); // wher..... -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 is that the local path to your root directory? You should be able to get it from looking at your cpanel usually under "Server Information." Otherwise you would have to ask your host.
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 I'm not exactly positive but I would think so...In my FTP account I can only go to ' / ' with the folder public_html in it. So I will say yes for now... Now what? -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 if you feel comfortable with that, save it, upload it in ASCII format, make sure you chmod it to 644 or 444 and test it.
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 Sorry... how do I chmod it to 644 or 444 -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Guest Posted June 14, 2003 Posted June 14, 2003 what are you using to upload with? an FTP program or cpanel?
CKY2K Posted June 14, 2003 Author Posted June 14, 2003 I was/am using FlashFXP (my FTP program) -- Metal Gear Solid 3 SOURCE The Source Of All Things Metal Gear!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.