WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Run offline

[Resolved] Run offline

  • Our website, http://whs59.net is a high school alumni class site. This weekend, I visited an invalid classmate and wanted to show him the website on my laptop, but there was no available internet access in his nursing home. I am the website administrator, and I had a complete backup copy of all the website files on my laptop, but did not know how or if I could show him the website offline. Can someone tell me if there is a way to do this, and if so, how?

    Thanks in advance

    Jerry Isaacs

Viewing 15 replies - 1 through 15 (of 25 total)
  • You’d have to have a local installation of a server. In other words, have MySQL, Apache, PHP running on your machine, then install WordPress, upload your backups to the localhost and run it form there.

    XAMPP works very well.

    No, you can’t, if you have ONLY the WP files.
    There is nothing in the files – I mean no data because everything is stored in the database.

    What you can do (and many of us does this, e.g. for local testing for theme development): install XAMPP and have a version of your blog on your computer.
    Tutorial:
    http://www.tamba2.org.uk/wordpress/xampp/

    The other thing you can do, which is somewhat simpler but may take lots more time, depending on how many posts you have on the website:

    In your browser, goto every page on your website and click “File > Save page as” and make sure you specify “Web page, complete”, or the equivalent if you’re not using Firefox.

    There are tools that can rip dynamic websites and save the result as HTML or PDF.
    I don’t remember any names but maybe Google does 😉

    There is nothing in the files – I mean no data because everything is stored in the database.

    Sorry – I saw the word “backup” and thought he was talking about the database files as well!

    But yeah, all those options above could work.

    For demonstrations and the like, I have to say I prefer the Webserver on a Stick approach. Put the whole thing on a USB memory stick and run it anywhere, with no installation required:

    http://www.tamba2.org.uk/wordpress/usb/

    Thank you all for your very considerate input. I will look into these ideas and see if I can close the topic in the near future.

    JerryIsaacs

    My attempt to construct the web on a stick bombed terribly. Something about a zip7 error. Then apache wouldn’t run. Then xampp wouldn’t quit running.

    I finally managed to load xampp, mysql, apache, etc to my computer and I have the basics of my website running locally with the right theme, more or less. Except that my fastlinks have reverted to stuff that I don’t understand.

    But most importantly, I don’t know how to get the database downloaded (synchronized?) from the website yet so I can run it ‘self-contained’. Surely, I don’t have to reconstruct the 50-100 pages that are already on our website. Please provide me with a little guidance. Sorry I’m not very savvy. I’m a 66 year old mechanical engineer. A month ago I couldn’t even spell HTML.

    Those ten years shouldn’t be an excuse 😉
    Here you can reda how to backup (practically “export”) your database and there is also a tutorial for restoring it (“import”) into a new location – in your case the local install:
    http://codex.wordpress.org/Backing_Up_Your_Database

    OK: Stand by. I read something that said to backup my database to an sql file and put it in the htdocs directory and change all my http://whs59.net/wordpress refs to http://localhost/wordpress and that would work, but it didn’t. So now I’ll try your suggestion and report back.

    Thanks for your help.

    Hmmm. This part is correct:
    I read something that said to backup my database to an sql file

    the next step is NOT ok 🙁
    You should NOT put it in the htdocs dir but go the the phpmyadmin and import the .sql file into the database.

    I thought the sql file WAS my database. I can’t find an exe file called phpmyadmin, so I’ll have to web troll a while and download it before I can continue.

    How about a hint how to “go the the phpmyadmin and import the .sql file into the database”. I have no idea what you are talking about.

    I’ve read this above:
    I finally managed to load xampp, mysql, apache, etc
    so, I was assuming you know how to deal with that.
    Basically, if you type http://localhost in your browser it should display the XAMPP splash page.
    Then clicking on English – you should be taken to a kind of (orange coloured) xampp admin.
    In the menu on the left under Tools > there should be a link “phpMyAdmin. Click.

    If you can get till there, let me know.

    If you have skype or Yahoo messanger – click on my name here and go to the contact page… and let me know.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Resolved] Run offline’ is closed to new replies.
Skip to toolbar