Guest Posted June 13, 2005 Posted June 13, 2005 After a server move, I'm gettng file not found errors when clicking on link on my index page (good news is index works) Configs as follows // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxxxxnoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.japaneseperformanceparts.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', '/public_html/'); 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', 'xxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxx'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxxxnoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'xxxxxxxxxnoc.com/~japanese'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/adminjpp/'); // absolute path required define('DIR_FS_ADMIN', '/public_html/adminjpp/'); // absolute path required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'public_html/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'jxxxxxx'); define('USE_PCONNECT', 'true'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' Anything here obvious to the gurus? Site was running great on other server.. moving to this one to use as test. Thanks in advance
♥Vger Posted June 13, 2005 Posted June 13, 2005 Well, if the site is www.japaneseperformanceparts.com then everything works fine. If it's not then you need to post a link to the new site. Vger
Guest Posted June 13, 2005 Posted June 13, 2005 Well, if the site is www.japaneseperformanceparts.com then everything works fine. If it's not then you need to post a link to the new site. Vger <{POST_SNAPBACK}> The site will eventually be on www.jkapaneseperformance.co.nz We will keep the jap..parts.com address seperate. Current address for test server less the xxxx's is http://72.29.71.127/~japanese/ which resolves (I think!) to http://72-29-71-127.dimenoc.com/~japanese/ Thanks
niknakgroup Posted June 13, 2005 Posted June 13, 2005 In that case you need to change these two lines: define('HTTP_SERVER', 'http://xxxxxxxnoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'xxxxxxxxxnoc.com/~japanese'); to define('HTTP_SERVER', '72-29-71-127.dimenoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', '72-29-71-127.dimenoc.com/~japanese/'); in both files. Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) }
Guest Posted June 13, 2005 Posted June 13, 2005 In that case you need to change these two lines: define('HTTP_SERVER', 'http://xxxxxxxnoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'xxxxxxxxxnoc.com/~japanese'); to define('HTTP_SERVER', '72-29-71-127.dimenoc.com/~japanese'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', '72-29-71-127.dimenoc.com/~japanese/'); in both files. <{POST_SNAPBACK}> Umm.. thats what they are.. I added the xxx's over the IPS etc on the orginal post.
Guest Posted June 14, 2005 Posted June 14, 2005 After somne playing, I noticed the link from an item on the main page, has the URL twice in it.. so I checked config against what I posted last nite (reset to that) and no change.. still twice.. checked against orginal site.. same.. all looks good. I'm tearing my hair out!?!?!!!! :( Am I going mad????
Guest Posted June 14, 2005 Posted June 14, 2005 After somne playing, I noticed the link from an item on the main page, has the URL twice in it.. so I checked config against what I posted last nite (reset to that) and no change.. still twice.. checked against orginal site.. same.. all looks good. I'm tearing my hair out!?!?!!!! :( Am I going mad???? <{POST_SNAPBACK}> OK, update.. I'm back to sqaure 1 again.. double link has gone (was http:// missing from in front http_server in cat/config) And clues to file not found from above?
Guest Posted June 14, 2005 Posted June 14, 2005 Update again :) php Files in root (public_html) like account.php, shipping.php etc can be fetched from site in browser.. anything deeper no go.
Guest Posted June 14, 2005 Posted June 14, 2005 do us a favor and post the configure.php files without the xxxxxx stuff and the database connection info. also check your includes/local for configure.php files
Guest Posted June 14, 2005 Posted June 14, 2005 do us a favor and post the configure.php files without the xxxxxx stuff and the database connection info.also check your includes/local for configure.php files <{POST_SNAPBACK}> debug.php give me Results to configure.php in your catalog section: HTTP_SERVER= http://72-29-71-127.dimenoc.com/~japanese HTTPS_SERVER= ENABLE_SSL= HTTP_COOKIE_DOMAIN= .japaneseperformanceparts.com HTTPS_COOKIE_DOMAIN= HTTP_COOKIE_PATH= / HTTPS_COOKIE_PATH= DIR_WS_HTTP_CATALOG= / DIR_WS_HTTPS_CATALOG= DIR_WS_IMAGES= images/ DIR_WS_ICONS= images/icons/ DIR_WS_INCLUDES= includes/ DIR_WS_INCLUDES= includes/ DIR_WS_BOXES= includes/boxes/ DIR_WS_FUNCTIONS= includes/functions/ DIR_WS_CLASSES= includes/classes/ DIR_WS_MODULES= includes/modules/ DIR_WS_LANGUAGES= includes/languages/ DIR_WS_DOWNLOAD_PUBLIC= pub/ DIR_FS_CATALOG= /public_html/ DIR_FS_DOWNLOAD= /public_html/download/ DIR_FS_DOWNLOAD_PUBLIC= /public_html/pub/ -------------------------------------------------------------------------------- Results to configure.php in your admin section: 1HTTP_SERVER= http://72-29-71-127.dimenoc.com/~japanese HTTP_CATALOG_SERVER= http://72-29-71-127.dimenoc.com/~japanese HTTPS_CATALOG_SERVER= ENABLE_SSL_CATALOG= false DIR_FS_DOCUMENT_ROOT= /public_html/ DIR_WS_ADMIN= adminjpp/ DIR_FS_ADMIN= /public_html/adminjpp/ DIR_WS_CATALOG= / DIR_FS_CATALOG= /public_html/ DIR_WS_IMAGES= images/ DIR_WS_ICONS= images/icons/ DIR_WS_CATALOG_IMAGES= /images/ DIR_WS_INCLUDES= includes/ DIR_WS_BOXES= includes/boxes/ DIR_WS_FUNCTIONS= includes/functions/ DIR_WS_CLASSES= includes/classes/ DIR_WS_MODULES= includes/modules/ DIR_WS_LANGUAGES= includes/languages/ DIR_WS_CATALOG_LANGUAGES= /includes/languages/ DIR_FS_CATALOG_LANGUAGES= /public_html/includes/languages/ DIR_FS_CATALOG_IMAGES= /public_html/images/ DIR_FS_CATALOG_MODULES= /public_html/includes/modules/ DIR_FS_BACKUP= /public_html/adminjpp/backups/ No config files in includes/local
Guest Posted June 14, 2005 Posted June 14, 2005 you can not use http://ip.address and add a .domain.com at the end. just doesnt work seeing as how you are using cpanel, ask your web host to properly configure via the web host manager for you to access the domain via an alias. this is not an oscommerce issue, but a web master issue.
Guest Posted June 14, 2005 Posted June 14, 2005 you can not use http://ip.address and add a .domain.com at the end.just doesnt work seeing as how you are using cpanel, ask your web host to properly configure via the web host manager for you to access the domain via an alias. this is not an oscommerce issue, but a web master issue. <{POST_SNAPBACK}> It is the IP of the server, but you'll notice its - between each number, not . so the numbers with dashes are effectivly a subdomain.
Guest Posted June 14, 2005 Posted June 14, 2005 i understand that fully, however you will need to deal with your web host, to get them to test/enable the alias function you are trying to use.
Guest Posted June 14, 2005 Posted June 14, 2005 i understand that fully, however you will need to deal with your web host, to get them to test/enable the alias function you are trying to use. <{POST_SNAPBACK}> This function is setup by them. Server is http://72.29.71.127/~japanese which goes through to http://72-29-71-127.dimenoc.com/~japanese/ If I CHMOD the public html directory, I get a permissions error as expected. Files in that directory (not folders) can be called fine. If I CHMOD the includes folder, (or any inside public_html) i get 'not found' when clicking links, or trying to call includes/debug.php (when copied to that folder also for testing, instead of getting a permissions error. Don't know if this is of any concern, but this was a drag and drop transfer with a sql call on the database backup.
Guest Posted June 14, 2005 Posted June 14, 2005 seems I spoke too soon.. chmod 000 on includes brings up permissions error when refresh of main page. Can call files in includes... When clicking on items in 'whats new for june 'product_info.php is the file that can't be found. In catgories box, index.php can't be found. I'm going to have no hair by the end of this.... :(
Guest Posted June 14, 2005 Posted June 14, 2005 DO you think it is of any use to 'Park' another domain name I have thats not getting used in the Cpanel and use it for testing? I don't really want to change the domain that the server is setup for (eventually) until the shop is working.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.