angelsRock Posted November 17, 2007 Posted November 17, 2007 problem occurs after move all the files from catalog to the root public html.. my purpose to do this is to access to the website straight by key in www.lensjunction.co.uk instead of www.lensjunction/catolog/index.php please access to www.lensjunction.co.uk and click on the "my account". error.. cannot login also, retrieve password... all cannot funtioning.. the code below is from admin/includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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.lensjunction.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.lensjunction.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.lensjunction.co.uk'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/lensjunc/public_html/lensjunction.co.uk/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/lensjunc/public_html/lensjunction.co.uk/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/lensjunc/public_html/lensjunction.co.uk/'); // 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/'); ?> this is from includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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.lensjunction.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.lensjunction.co.uk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.lensjunction.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'www.lensjunction.co.uk'); 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', '/home/lensjunc/public_html/www/lensjunction.co.uk/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); ?> hope that you can help me... stuck in this for a long time..
germ Posted November 18, 2007 Posted November 18, 2007 I'd say it's because you don't have a SSL certificate. Have you purchased/installed one? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted November 18, 2007 Posted November 18, 2007 And I think your account.php is MIA.... It's not in the root nor the catalog folder. :o If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
angelsRock Posted November 18, 2007 Author Posted November 18, 2007 And I think your account.php is MIA.... It's not in the root nor the catalog folder. :o i am using hostmonster as the my hosting tools... it said need $45 to purchase.. must i use that ssl in order to view the my account and even register / login...?? ssl should be the secure layer in protecting the business transaction only right? .. .. also , afer i checked my root (www/lensjuction.co.uk/) inside got all the files which i copied out from the catolog folder. ( it has account , account_edit.........).. i just copied all files out from catolog folder to the root... i din "delete" the files which still in the catolog folder... after i copied.. i change the path which is shown at the previous post.. does it matter with the deleting file in catolog folder? thanks
germ Posted November 18, 2007 Posted November 18, 2007 Without SSL covergae change these: admin/includes/configure.php define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module includes/configure.php 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', '.lensjunction.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', ''); Does your account.php file actually exist in the root or catalog folder? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
angelsRock Posted November 18, 2007 Author Posted November 18, 2007 Without SSL covergae change these: admin/includes/configure.php define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module includes/configure.php 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', '.lensjunction.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', ''); Does your account.php file actually exist in the root or catalog folder? :unsure: hi. thanks for the reply.. actually now i have the account.php in both root and catalog..hahah.. cos i just copy.. PROBLEM when i edit the admin/includes/configure.php.. i can edit.. but for the includes/configure.php it stated the error below after i click "save changes" [a fatal error or timeout occurred while processing this directive] i try many time to redo the editing.. it is not for "timeout" reason... error as below open configure.php failed: Permission denied at cpanel.pl line 492 Carp::croak('open configure.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1299 Cpanel::Fileman::fmsavefile('%2fhome%2flensjunc%2fpublic_html%2flensjunction.co.uk%2fincludes', 'configure.php', '<?php^M^J/*^M^J osCommerce, Open Source E-Commerce Solutions^M^J htt...', '', 1) called at cpanel.pl line 492 main::__ANON__('%2fhome%2flensjunc%2fpublic_html%2flensjunction.co.uk%2fincludes', 'configure.php', '<?php^M^J/*^M^J osCommerce, Open Source E-Commerce Solutions^M^J htt...', '', 1) called at cpanel.pl line 1479 main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4376 main::dotag(undef) called at cpanel.pl line 4265 main::cpanel_parseblock('SCALAR(0x1b89da0)') called at cpanel.pl line 4219 main::cpanel_parse('GLOB(0x1f01a80)') called at cpanel.pl line 1043 interesting error..!!
germ Posted November 18, 2007 Posted November 18, 2007 Use cPanel to change the permissions on the one you can't edit to 644 Also, change the permissions on account.php to the same. 644 is: READ and WRITE permissions for the USER READ permissions for GROUP and OTHER If unsure, this may help: ClicK me If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
angelsRock Posted November 18, 2007 Author Posted November 18, 2007 oh... great... thanks... now everything look fine.. thanks germ... good job
germ Posted November 18, 2007 Posted November 18, 2007 Good job to you! :lol: I'm only the "coach", you're the "player" getting the job done. ;) One thing I might add.... I think an SSL certificate is a must for any online store serious about turning a profit. Well worth the $45 you said it would cost. Personally, I NEVER register at or buy from any online site that doesn't use SSL. That's my 2 cents on the subject. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted December 28, 2007 Posted December 28, 2007 I also have problems after moving my files to the root, I hope someone can help, please. I changed both configure files (removing all catalog instences as described), then I moved all my files to the root through Cpanel. When I go to my site everything looks good, but if I try to go to a category or any link on the home page I get The webpage cannot be found message. I thought that maybe I needed to delete the catalog file from my files, when I did I received this message: Warning: rmdir(/home/mywebsite/public_html//catalog/includes) [function.rmdir]: Directory not empty in /home/mywebsite/public_html/admin/includes/functions/general.php on line 1024 Warning: rmdir(/home/mywebsite/public_html//catalog) [function.rmdir]: Directory not empty in /home/mycandle/public_html/admin/includes/functions/general.php on line 1024 Warning: Cannot modify header information - headers already sent by (output started at /home/mywebsite/public_html/admin/includes/functions/general.php:1024) in /home/mywebsite/public_html/admin/includes/functions/general.php on line 22 I am totally at a loss, I went through the steps again to make sure I did not miss anything. Any help would be greatly appreciated Thank You, Cindy
germ Posted December 28, 2007 Posted December 28, 2007 It looks like you have some sort of "Search engine friendly" contribution installed. I'm guessing that you'll have to change rewrite condition in the .htaccess file to get your site to work. Find the support thread for the contribution you have installed, and post in it. I have no experience with any of those. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted December 28, 2007 Posted December 28, 2007 Thank you Jim. I have been trying to figure this out for 2 days. The problem was with SEO-G that I installed, when I moved all my files I left out 1 file. Thank you very much for pointing that out, my problem is solved. Thanks, Cindy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.