Start Online Training

Get access to all our video classes and support. That's 1818 training sessions in Joomla, Drupal, WordPress, Coding and SEO.
Prices start only at only 25 USD per month

Testimonials

Testimonials OSTrainingHI folks! To start with, I'm really enjoying the OStraining videos. They are a wonderful, wonderful, WONDERFUL support to someone who is not enamored with spending hours fumbling over webdesign like a blindfolded surgeon! "Hey look guys, whatever I did, it works!" "

~ Rebekah

 

Start a FREE 7 day trial! Get training videos and books, plus expert support:  

TOPIC: moving a site ftom a live server to a local pc

moving a site ftom a live server to a local pc 1 year 11 months ago #46564

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Hi,

I want to move my live site to my computer. In order to do so, I use this tutorial:
www.ostraining.com/blog/joomla/how-to-mo...ocal-to-live-server/
Situation:
Live site at www.sitesuccess.nl.
Local host installed with WAMP: https://localhost/joomlatest3/
Joomla 1.5.26

I follow the steps of the tutorial, but somehow I get confused along the way.

Step 1 – 5: is okay. I backup my live site (.jpa file)

6. Locate the backup file in your localhost joomla_root/administrator/components/com_Akeeba Backup/backup - the backup file will have the extension .jpa. Upload this file to the directory on your live server where you will do the restore. For most this will be the root directory, /html or /home etc

Here I am not sure where I should upload or place this file. I put it in C:\wamp\www\joomlatest3. Is that correct?

7. Upload the Kickstart app file to this same directory. You should have unzipped the package in an earlier step, if not, unzip and then upload the file.

Here I am also not sure where I should upload or place this file. I put it in C:\wamp\www\joomlatest3. Is that correct?


8. Create a new database using phpMyAdmin or the tool provided by your host to do so. This new database will be used for our restore to populate with our backed up data. Make note of the hostname, username/password and database name for further steps.

I did create a new database. Or should I just use the database that I am already using for joomlatest3?

9. Navigate in your browser to https://backup_directory/kickstart.php (where backup_directory is the directory your backup file is located). Insert your Host, Username, and Password information and click on the green Start button. You will see the process beign - do not close this browser window!

When I navigate to this adress in my browse, it says ‘server not found’. I probably have to go somewhere else; but where?

Hope you can help!

Regards, Maurice

Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46565

  • jmc
  • jmc's Avatar
  • OFFLINE
  • Posts: 1566
  • Thank you received: 133
Hi Maurice
Have a look at this www.ostraining.com/courses/session/jooml...basics/joomla-15-pc/
It might clear up a few ideas. What you have done looks correct. Did you navigate to c:\wamp\www\joomlatest3\kickstart.php (for step9)?
Mark
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46566

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Hi Marc,
Thanks. I watched the video already earlier. The setting up of my local host environment works fine.
Step 9: I now navigated to c:\wamp\www\joomlatest3\kickstart.php. But now I am getting all kind of error messags like:
. */ define('KICKSTART',1); define('VERSION', '3.5.1'); define('KICKSTARTPRO', '0'); // Uncomment the following line to enable Kickstart's debug mode //define('KSDEBUG', 1); if(defined('KSDEBUG')) { ini_set('error_log', dirname(__FILE__).'/kickstart_error_log' ); if(file_exists(dirname(__FILE__).'/kickstart_error_log')) { @unlink(dirname(__FILE__).'/kickstart_error_log'); } error_reporting(E_ALL | E_STRICT); } else { @error_reporting(E_NONE); } // ========================================================================================== // IIS missing REQUEST_URI workaround // ========================================================================================== /* * Based REQUEST_URI for IIS Servers 1.0 by NeoSmart Technologies * The proper method to solve IIS problems is to take a look at this: * https://neosmart.net/dl.php?id=7 */ //This file should be located in the same directory as php.exe or php5isapi.dll if (!isset($_SERVER['REQUEST_URI']))

What is going wrong?

Maurice
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46570

  • jmc
  • jmc's Avatar
  • OFFLINE
  • Posts: 1566
  • Thank you received: 133
Hi
Well it looks as though you have found the right directory! Sorry but I can not help with the error messages, you will have to wait for a more experienced person to solve it. I have a love hate relationship with wamp. For me it has usually created more problems than it has solved.
I guess that you know that wamp works on your computer, just because you are using the directory "joomlatest3". If I am wrong then I would install a new version of joomla to check that all is well.
You could also test kickstart and your backup by installing it on your server as a test. The latest "Security" tutorials that can out this week do show you how to reinstate a backup. At least you would then know that wamp works plus your backup file and kickstart is also working as it should.
Mark
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46572

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Hi Marc and the rest of the team,

Marc, I will try your suggestions if necessary. By the way: Is this security class also valid for Joomla 1.5 or only for 2.5?
For now I hope someone will be able to help me with the error messages.

Maurice
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46574

  • jmc
  • jmc's Avatar
  • OFFLINE
  • Posts: 1566
  • Thank you received: 133
Security is fairly universal www.ostraining.com/blog/news/joomla-security/
Mark
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46582

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

Try navigating to https://localhost/joomlatest3/kickstart.php rather than c:\wamp\www\joomlatest3\kickstart.php

That should hopefully get rid of the error message for you.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46602

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Hi Nick,

That helps!
But after completing all the steps, I get a 500 error message now:
Internal Server Error: 
The server encountered an internal error or misconfiguration and was unable to complete your request.
I get this message when I go to my local site and when I try to login.
Hope you can help!

Regards, Maurice
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46605

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

Are your other sites on WAMP working correctly? Could you try restarting WAMP?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46609

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Hi Nick,

Restarted, but with no result. My other sites om WAMP work fine.
What should I do now?

Regards, Maurive
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46613

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

Double check your configuration.php's database settings. Check out the following tutorial for more info:
www.ostraining.com/blog/joomla/guided-to...nfigurationphp-file/

Let me know if you have specific questions while in there.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46614

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
p.s. Also, since you're restoring from a live site, double check your .htaccess file for old URL and do the same for your configuration.php's var live site variable.
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46615

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
I found the files, but I am not sure what to fill in instead of the name of my old file. Can you help?
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46616

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
PS
I see this line in my .htaccess:
#RewriteCond %{HTTP_HOST} ^(www.)?sitesuccess.nl$ [NC]
Might that be the problem?
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46617

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

The pound symbol (#) means that it's commented out. Try renaming your .htaccess file to htaccess.net

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46620

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Another step in the right direction, I see my website! But..I get this message:
JFTP::connect: Could not connect to host "127.0.0.1" on port 21
.
Besides that, when I click on a link, I get the message 'not found'.
Hope you can help me again.
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46622

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

Great! One step closer. Go to your global configuration and turn off your SEF URLs and turn off FTP.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 11 months ago #46673

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Thanks Nick, that's it, site works now!
Few more things.
1. All the custom css editing I have done to this template does not work anymore. Using firebug, I see that the custom css is not loaded. This custom css is stored in a special file, located at /templates/jblifestyle/user/EditML.css. Any idea why my local site does not load/uses this file while it works fine for my live site?
2. You wrote in one of your previous posts: 'The pound symbol (#) means that it's commented out. Try renaming your .htaccess file to htaccess.net'
What do you mean with 'commented out'?
3. Just to know: Is it possible to use SEF URL's at a local site?
4. When I want to do the whole process the reverse way (from local to live server), I am not sure what to fill in at step 9 of the tutorial. It says: 'Navigate in your browser to https://backup_directory/kickstart.php (where backup_directory is the directory your backup file is located)'. In my case with sitename 'www.sitesuccess'.nl' and root 'httpdocs', should I go to 'sitesuccess.nl/kickstart.php' ?

Regards, Maurice
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 10 months ago #46784

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
Hi Maurice,

You're welcome! I'm glad you got things working! :)

1) Since the site is an exact copy, it should work for you. I'd double check that the file is there and check the source code to see if it's loaded. It might be due to a hard-coded URL rather than a relative URL.

2) Comments are used to put notes into the code for humans to read but which aren't used by the server or browser. You can also use a comment to disable a line of code. In htaccess files, you can add # at the start of the line to create a comment. So adding # removes that line of code from being used by the server.

3) No, not fully.

4) Yes, that's correct.

Hope this helps! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 10 months ago #46786

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • Posts: 440
Thanks!
Maurice
Please become a member of OSTraining to reply to this post.

moving a site ftom a live server to a local pc 1 year 10 months ago #46788

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 19328
  • Thank you received: 528
You're welcome, Maurice! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

 

Start a FREE 7 day trial! Get training videos and books, plus expert support: