Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Installing on temp url...

    Is there any problem with installing ZC on a temp url? I recently moved hosts and install ZC on a temp url given to me by the host to use until my domain is transfered over. I have my site moved successfully, but I am wondering what I am going to need to do after I my domain is transferred. Is it going to effect all my links? Will I need to change things in my configure.php files? I did back up both the new host install configure.php files and the old ones too in case I would need them.

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

    Default Re: Installing on temp url...

    Quote Originally Posted by toomanyknots View Post
    Is there any problem with installing ZC on a temp url? I recently moved hosts and install ZC on a temp url given to me by the host to use until my domain is transfered over. I have my site moved successfully, but I am wondering what I am going to need to do after I my domain is transferred. Is it going to effect all my links? Will I need to change things in my configure.php files? I did back up both the new host install configure.php files and the old ones too in case I would need them.
    I frequently install using the temporary URL provided by the hosting company. And then when the real domain name has replicated correctly all I have to do is edit the HTTP_SERVER and HTTPS_SERVER (and HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER) settings in the 2 configure.php files (after making them writable instead of read-only), and everything "just works". All the "links" generated by original Zen Cart code use the configure.php settings to set the correct URL, so that's the only place that requires touching.

    After the URL changes, you may need to empty your browser's cookies for logins to work.

    The only caveat: In the unusual case where the "temporary URL" is actually just an IP address (ie: all numbers, like 123.222.111.222), you may have troubles doing customer/admin login depending on the server configuration. In that case, ask your hosting company if there's a "named" temporary URL you can use.
    .

    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
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Installing on temp url...

    Sweet, sounds easy peasy, thank you! I think my url is just an IP though, my homepage address is: http://208.76.85.155/~jrvihfnf/newftp/

    If I have any problems I guess I will just re-install and re-migrate my site...

  4. #4
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Installing on temp url...

    So I got a confirmation email that my domain was transfered sucessfully. Under the details, the name servers appear to be the correct name servers. So I ma not sure if that is that, or what. But now any attempt to go to my website on the temp url or the main domain name both result in:

    "Forbidden

    You don't have permission to access / on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


    Just wondering if this is normal, or if I should wait a day, etc.

  5. #5
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Installing on temp url...

    Ok, I contacted my hosting company, and they got the domain name working. My links all point to the temp url though. I think the tech just copied a folder that I installed my new site too. I guess I need to go in and mess with the configure.php file now?

  6. #6
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Installing on temp url...

    Quote Originally Posted by toomanyknots View Post
    Ok, I contacted my hosting company, and they got the domain name working. My links all point to the temp url though. I think the tech just copied a folder that I installed my new site too. I guess I need to go in and mess with the configure.php file now?
    Oh, and to clarify why he copied it, is because I had my site installed to a directory off of my root, so the main domain wasn't working. I guess I will delete the first copy that is not working (after backing up that is). Anybody got a link to a thread that will tell me what I need to do to the configure.php files to point to my site?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Installing on temp url...


  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Installing on temp url...

    I haven't done the search of the faq to give you a direct potential instruction, but basically you need to know some information to modify/confirm that your configure.php files are correct. I also thought that the zc_install utility offered an update/correct the configure.php files option, but I could be wrong there.

    Need to know to what directory your new url is pointing, is it pointing to your public_html directory? And also need to know in relation to where the url is pointing, where is your store? Is it still in the newftp subdirectory? Ie would you need to enter yourdomain/newftp to get to your site?

    The answers to those two questions will help populate the constants that Dr. Byte was referring. The other part(s) thatshould be verified are the file storage locations. This information is usually obtained through your cpanel and is a "list" of / separated folders. The configure.php files themselves have some commenting that may help with the proper format of each entry.

    For some reason I'm thinking there is an easier way to do this, but if as I understand your old temp uri is still working, then you pretty much need to only answer/address the first two questions and then modify just the data suggested by Dr. Byte. Be advised that the recommended install though is to be at the root of the public folder or at a uri without being located in a subfolder when the uri is entered.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Installing on temp url...

    "Need to know to what directory your new url is pointing, is it pointing to your public_html directory?"

    yes, public_html

    "And also need to know in relation to where the url is pointing, where is your store? Is it still in the newftp subdirectory? Ie would you need to enter yourdomain/newftp to get to your site?"

    I believe it is is public_html, as the tech at my hosting site copied all files in the newftp folder (where my site was) and copied and pasted them into public_html. So I went ahead and deleted newftp.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Installing on temp url...

    Quote Originally Posted by toomanyknots View Post
    "Need to know to what directory your new url is pointing, is it pointing to your public_html directory?"

    yes, public_html

    "And also need to know in relation to where the url is pointing, where is your store? Is it still in the newftp subdirectory? Ie would you need to enter yourdomain/newftp to get to your site?"

    I believe it is is public_html, as the tech at my hosting site copied all files in the newftp folder (where my site was) and copied and pasted them into public_html. So I went ahead and deleted newftp.
    If understood correctly, then if you actually deleted all cases of /newftp in both files, the files should be pointing to the right location and as suggested if you cleared your cache and possibly cookies, you should be good to go.

    The only concern if you did a blind delete of all cases of newftp is that, 1) if your database information contained that string, then the wrong database would be referenced, 2) in all other cases either a forward slash (/) or double forward slash (//) would remain where not desired and this may lead to file writing issues or an improperly formatted uri.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. New Host Install - Temp URL Kills my Admin
    By joejoejoe in forum Installing on a Windows Server
    Replies: 7
    Last Post: 13 Nov 2011, 02:30 PM
  2. Brand New to Zen-Cart: Question regarding temp URL
    By atl2rva in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Feb 2010, 09:32 PM
  3. Moving Site to New Server Using Temp Url
    By kaiz in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 12 Dec 2009, 03:54 PM
  4. My temp URL and accessing the Admin...
    By deivid in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jan 2008, 08:30 AM
  5. Installing in root on temp host
    By tpatwood in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 5 Aug 2006, 01:15 AM

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