Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Domain Transfer Problem!

    Hello!!! Before i start with my problem - I want to say cheers for the great cart and forums!
    And now my disaster...I needed to transfer my cart to a new domain. From what i understood from forum searches, all I needed to do was:
    - copying all the files to the new domain
    - edit the admin/includes/config file to show the new domain
    - edit the includes/config file to show the new domain.
    I did all this and now when i try to open my website it automatically tries to run the zc_install files . Have i done something wrong????
    Any and all help would be HUGELY appreciated!
    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain Transfer Problem!

    Did you create a database in your new account?
    Did you set permissions for that database for a certain username+password?
    Did you put that information in your configure.php files?

    If it's redirecting to zc_install, that means the configure.php files are:
    - are not found
    - contain invalid data
    - contain database-settings that don't actually "work" for this server/account

    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Domain Transfer Problem!

    Hi

    Thank you so much for getting back to me!

    The old domain, the new domain and the database are all on the same hosting package. I want to use the same database and therefore:
    - I only changed the domain references in the config files; and
    - left all the database details unchanged.
    Any idea what could have gone wrong?

    Thanks again.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain Transfer Problem!

    Again, if it's redirecting to zc_install, that means the configure.php files have something wrong:
    - are not found
    - contain invalid data (maybe they're corrupt?)
    - contain database-settings that don't actually "work" for this server/account
    or
    - the permissions settings for them are too restrictive

    Perhaps reloading the configure.php files to your server may help?
    Perhaps changing their permissions to a higher level may suit?



    Failing that, please post the exact information that's appearing on the URL when it attempts to redirect to zc_install.
    If you have removed/renamed the zc_install folder, please ALSO post the exact PHP error message that appears when it's trying to find your zc_install files.
    Then also post the contents of your /includes/configure.php file without password
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Domain Transfer Problem!

    Hi

    Thanks again for all your help. I've now got my cart up and running again on the new domain and just thought i'd quickly post how i did it in case it helps someone else...

    This is the background: I had 2 domain names pointing to 2 different folders (I'll call them the source folders from here):
    - domain 1 pointed to source folder 1; and
    - domain 2 pointed to source folder 2.
    I originally installed zencart on domain 1 and so all the files were contained in source folder 1. When i wanted to transfer zencart to domain 2, i copied all the files from the source folder 1 to the source folder 2 and edited the 2 config files to the new domain name. When i tried to open the cart on domain 2, however, the database could not be detected and it kept trying to re-run the zc_install.

    I solved the problem my putting the zencart files back in the source folder 1 and then pointed domain 2 to that folder (including the edited config files) and its all seems to be working fine...

    I hope that makes sense!

    Thanks again.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Domain Transfer Problem!

    what you have done makes sense...but this is not a correct solution.

    You have ZenCart accessed via some domain name using files & DB installed in another domain name.

    I will guess that these domains are on a single hosting account and co-exist as an added domain. Am I correct in this?

    If so, this is the only reason that this is functioning.You should really look at DrBytes post and answer the questions he posed and get this done correctly.
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Domain Transfer Problem!

    Hi kobra. Thanks for getting in touch. You're totally right - its is a single hosting account. Good to know that my solution was at least logical even though totally wrong !

    These are my responses to the issues raised by Dr Byte (i should have posted these before thinking i had figured out the problem!):
    "Again, if it's redirecting to zc_install, that means the configure.php files have something wrong:
    - are not found"

    * The config files were definitely there - although i don't know whether something maybe causing them to not be detected.

    "- contain invalid data (maybe they're corrupt?)"

    * They worked for the original domain so i don't know how they would have been corrupted.

    "- contain database-settings that don't actually "work" for this server/account"

    * Both domains are on the same server/account so the database settings should be ok.

    "or
    - the permissions settings for them are too restrictive"

    * The permissions are 444 on both config files.

    "Perhaps reloading the configure.php files to your server may help?"

    * At the time i tried reloading but this didn't help.

    "Perhaps changing their permissions to a higher level may suit?"

    * Should i have tried changing them to 777?

    "Failing that, please post the exact information that's appearing on the URL when it attempts to redirect to zc_install.

    *www.mydomain.com/zc_install.index.php"

    "If you have removed/renamed the zc_install folder, please ALSO post the exact PHP error message that appears when it's trying to find your zc_install files."

    * I did remove the zc_install but when i saw it was trying to access that page, i put it back but then thought - what am i doing! - and contacted you guys... I can't remember the php error message cause it is now working but, from what i have learned from Kobra, the wrong way.

    "Then also post the contents of your /includes/configure.php file without password"

    * OK - i was just copying and pasting the contents of my config file for you when i noticed that the following lines contained file paths to "eshop". This was the original source folder. When i tried to change domain i transferred it to a domain pointing to a source folder with a different name but had not changed these lines. Does this explain why:
    - it would not work when i transferred the files
    - but did work when i instead put the files back to the original source folder pointed the domain there??!!
    Seeing these file references does jog my memory that the php error message did say something about htdocs and cache - but maybe that is wishful thinking that this is the answer!
    define('DIR_FS_ADMIN', '/kunden/homepages/16/d113661620/htdocs/eshop/admin/');
    define('DIR_FS_CATALOG', '/kunden/homepages/16/d113661620/htdocs/eshop/');
    define('DIR_FS_SQL_CACHE', '/kunden/homepages/16/d113661620/htdocs/eshop/cache');

    Can't wait to hear back from you guys!

    Thanks again to Kobra and Dr Byte.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain Transfer Problem!

    yes, having paths in your configure.php file that point to the wrong folder ... would... cause you grief.
    Changing those to match your new setup should be a huge help
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Domain Transfer Problem!

    Phew - major relief! Thanks for all your help! Have a good day.

  10. #10
    Join Date
    Dec 2006
    Location
    n ireland
    Posts
    14
    Plugin Contributions
    0

    Default Re: Domain Transfer Problem!

    i transferred my shop to a different domain name on the same server / host and get this error message:

    Warning: I am able to write to the configuration file: /home/twitchy/glopipe.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

    how do i fix this ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Transfer website to new domain
    By rrzc in forum General Questions
    Replies: 5
    Last Post: 20 Jul 2010, 08:58 AM
  2. Transfer Site to new domain, and changeing domain name
    By dng in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 9 Mar 2007, 12:28 AM
  3. Domain Transfer Password Log In
    By blainbci in forum General Questions
    Replies: 2
    Last Post: 22 Jan 2007, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg