Futureline Posted March 2, 2003 Share Posted March 2, 2003 I have no room for a local server so i bought an shared server space. Now i have upped all the files to my server to give it a try but there is a strange problem. First my server adres: http://www.futurelinepowercore.com/roy/shop/ Here is where i upped all the files. I use de version "osCommerce 2.2CVS". In the shop i have now 2 directories called admin and catalog. I went to de URL http://www.futurelinepowercore.com/roy/sho...all/install.php and configured the steps needed. MySQL setup went oke so as the rest with no errors. Example of my configure.php define('HTTP_SERVER', 'http://www.futurelinepowercore.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.futurelinepowercore.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/roy/shop/catalog/'); // 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', '/home/sites/site62/web/roy/shop'); define('DIR_FS_CATALOG', '/home/sites/site62/web/roy/shop/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/ Here i can not find a mistake. Now after step 5 the comes up 2 buttons voor catalog en admin. No matter what i try i keep getting an 404 page not found. The strange thing is that i can see the file on my FTP connection. What did i do wrong. Or is this piece of PhP not made to run on an not owned server.??? Please help. I looked on the forum but nothing seems to be helping me. Link to comment Share on other sites More sharing options...
Jaguar Posted March 2, 2003 Share Posted March 2, 2003 Should be fine , try turning the status bar on in your browser and see what the path is that the software thinks it is looking for. This has helped me a few times. I did notice in your code that that last few characters in the DIR_FS_CATALOG lin are missing. Should be : define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Shared servers work well with OSC, I use them alot, the key here is to make sure that you know what the EXACT path is. Hre is an example of a path from a shared server: define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/domain.com/httpdocs/shop'); This path would not work because I forgot to include the HTTPDOCS folder in a fit of typing too fast. :oops: Loren The great thing about beating your head against the wall is that it feels SO GOOD when you stop! Link to comment Share on other sites More sharing options...
Futureline Posted March 2, 2003 Author Share Posted March 2, 2003 define('HTTP_SERVER', 'http://www.futurelinepowercore.com'); // eg, http://localhost or - https://localhost should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.futurelinepowercore.com'); define('HTTPS_CATALOG_SERVER', 'https://www.futurelinepowercore.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/sites/site62/web/roy/shop'); // where the pages are located on the server define('DIR_WS_ADMIN', '/roy/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/sites/site62/web/roy/shop/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/roy/shop/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/sites/site62/web/roy/shop/catalog/'); // 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/'); Link to comment Share on other sites More sharing options...
Futureline Posted March 2, 2003 Author Share Posted March 2, 2003 Here it is pointing at: http://www.futurelinepowercore.com/roy/sho...log/default.php And this also seems to be correct. I just can figur out what it is i am doing wrong. Everything and i mean everything is re-installed 3 times and rechecked 8 times. I am getting word blind here... :wink: Ps thanks for the fast responce... The last part of the line: define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); It is compleet. It was an copy past error... :oops: Link to comment Share on other sites More sharing options...
Jaguar Posted March 3, 2003 Share Posted March 3, 2003 I am assuming that you are installing MS1 from the install wizard. If your are not installing from the wizard try that first. IF you are : When you start the wizard you should get a screen that asks two questions at the top of the page. The page will also ask you to fill in the fields with path names, and database information. when you click continue you may be taken to another page that indicates any rights problems on the two config files (catalog,admin) (fix any rights errors hthat exist using chmod) after this you will be taken to a page that closely resembels the first page , (dont change anything here.. yet) at the bottom of this page you should find a question about whether you wnat to store your session information in the database. (I choose yes to this question) Click the continue button the next page should tell you that OSC has been installed properly and it will give you two buttons, on for catalog and one for admin. Pressing each of each should now bring up the necessary pages. Again I will assume that all of this has been done by you. Here's what I found on your site: your install directory is still there: I was able to access it via the command line in the URL: http://www.futurelinepowercore.com/roy/sho...all/install.php I was also able to get a 404 error from your hosting provider "?123XS.COM Webhosting " "Professionele webhosting diensten." by trying to acces the admin page with the following URL: http://www.futurelinepowercore.com/roy/sho...admin/index.php These problmes tell me that your install was probably correct but your paths are wrong. Try accessing the various pages from OSC from the command line and see what show up. Like I tried with the install folder. If you have checked the files , then check to make sure that you do not have any .htaccess files that are preventing you from viewing the files. the error that you are getting is on your default page is different from the one that I got when I have tried typing in pages directly into the URL line. So to recap: Check absolute paths / Check .htaccess files Loren The great thing about beating your head against the wall is that it feels SO GOOD when you stop! Link to comment Share on other sites More sharing options...
Futureline Posted March 3, 2003 Author Share Posted March 3, 2003 If i am getting it right: My virtual pad on de server is: 'http://www.futurelinepowercore.com' and my abolute pad is: '/home/sites/site62/web/' The subs used are: /roy/shop/catalog/ and: /roy/shop/admin/ Adding up...... What is possible wrong is that the absolute path used in the configuration file is NOT "/roy/shop/catalog/" and i have to ask my hosting company to ask what the real absolute path is. Because it is now pointing to the wrong path. And this is way the difference between my hostings company 404 page and the 404 page not found. This is what i think because when i aks for a page that does not exist on the server it comes up with a prefabric 404 of my hosting company. When it is outsite my hosting company is uses te IE 404 page not found. Is this the right way.?? Link to comment Share on other sites More sharing options...
Jaguar Posted March 3, 2003 Share Posted March 3, 2003 I think it is a real stong possibility that what you think is the correct path is far different than what it really is. It is also possible that the hosting provider has some security measures in place. I would talk with your hosting provider, tell them what you want to do , and confirm with them what the actual path to your hosting area is and what security may be in place that may prevent what you want to do from taking place. I did another quick check: http://www.futurelinepowercore.com/roy/shop/ This domain brought up directory listing. Two directories were listed - ADMIN, CATALOG When I attempted to enter them I got a "The page cannot be displayed" message ( NOT 404) Check to make sure that no .htaccess files are in place. Also check to make sure that your files can be run from this area. You may not have total rights to use this as configured by your hosting provider. Loren The great thing about beating your head against the wall is that it feels SO GOOD when you stop! Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 You are right.. i never saw the error message correctly. It seem to be a "The page cannot be displayed" This is not an 404 error. :oops: I am verry sorry about that. I did a compleet reinstall of the script and rerun the install script. No errors again en looked at http://guide.oscdox.com for some detailed information. I even contacted my hosting company to ask if the absolute path is correct. Everything seem to be OKE. No mistakes this time in the configuration files or permission..... Still i have the "The page cannot be displayed". I am getting crazy over this. I rechecked the directorie permisions and files with "CHMOD". After a lot of reading on the forum it seems that no one has encounterd this problem. I think that it has to do with the .htaccess file. Can it be so that my hosting company does not allow me to run these files and it come's up with this error page?? Link to comment Share on other sites More sharing options...
toolcrazy Posted March 4, 2003 Share Posted March 4, 2003 Try this. define('HTTP_SERVER', 'http://www.futurelinepowercore.com/roy/shop'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.futurelinepowercore.com/roy/shop'); // eg, https://localhost - should not be empty for productive servers In both configure.php and change this to: define('DIR_WS_CATALOG', '/catalog/'); // absolute path required Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 4, 2003 Share Posted March 4, 2003 Also change these to: define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/catalog/'); // absolute path required Steve ------------------------- Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 I know what you are trying to say with the change but it does not work. I still keep getting te "The page cannot be displayed" error. Thanks for the responce... i keep waiting for the answer and keep looking for it my self... :) Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 In de default configuration it assumes that i place the ADMIN dir in the CATALOG dir. I tryed it to...Not working. ( and changed the config first of course. Now my directory look like: www.futurelinepowercore.com/roy/catalog/default.php www.futurelinepowercore.com/roy/catalog/admin/index.php My config files look like: Catalog: define('HTTP_SERVER', 'http://www.futurelinepowercore.com/roy/shop'); define('HTTPS_SERVER', 'https://www.futurelinepowercore.com/roy/shop'); define('ENABLE_SSL', false); // 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/'); 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', '/home/sites/site62/web/roy/shop'); define('DIR_FS_CATALOG', '/home/sites/site62/web/roy/shop/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', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'futureline'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Admin: define('HTTP_SERVER', 'http://www.futurelinepowercore.com/roy/shop'); define('HTTP_CATALOG_SERVER', 'http://www.futurelinepowercore.com/roy/shop'); define('HTTPS_CATALOG_SERVER', 'https://www.futurelinepowercore.com/roy/shop'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/sites/site62/web/roy/shop'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/sites/site62/web/roy/shop/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/sites/site62/web/roy/shop/catalog/'); // 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', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'futureline'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 I tryed to get some pages as "download.php" and others by hand. I still get an "The page cannot be displayed" Then i tryed to open "application_top.php" in the includes of catalog. http://www.futurelinepowercore.com/roy/sho...ication_top.php Here i get an "Forbidden - You do not have permission to access the requested file on this server. " Can this be a lead.?? As i was reading the forum this file is verry important. If i can not acces it by hand maybe default.php cant either ??? Keeping on brainstorming over here.... Link to comment Share on other sites More sharing options...
Ajeh Posted March 4, 2003 Share Posted March 4, 2003 For your Catalog try: define('HTTP_SERVER', 'http://www.futurelinepowercore.com/roy'); define('HTTPS_SERVER', 'https://www.futurelinepowercore.com/roy'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/catalog/'); // 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', '/home/sites/site62/web/roy'); 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/'); Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 This is also no solution. Again i understand the meaning of the change. (i already tryed it 8) ) but it had no effect. Maybe a strange question but what does "The page cannot be displayed" mean. The strange thing is that everywhere i look, no one has this problem. Can it be that the script must be in the root of the server....? (wait.... i just try) other people had a solution of just using an other script. NO....ones i try something i never stop until there it work. My understanding of PHP en servers in minimal but i am not crazy. I have an other PHP script running on http://www.futurelinepowercore.com/roy/default.php It is from http://www.envolution.net and it is running fine. Also uses an mysql database (the same database btw) an exept from some GUI problems there was no error. So i think that osCommerce has a problen that is verry simple but has no easy sollution. I keep on brainstorming. :roll: Link to comment Share on other sites More sharing options...
Futureline Posted March 4, 2003 Author Share Posted March 4, 2003 I tryed to set the script in the root of the webserver (shared server) but it also has no effect. :cry: Why WHy WHY :? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.