Creating an offline blog sandbox

Post to answer repeated requests from a friend )

What is a sandbox? In computing, this term can be described as:

a testing (or virtual) environment that isolates untested code changes and outright experimentation from the production environment [Wikipedia]

In our context, this would mean an environment in which we would play around by tweaking themes, modifying code, adjusting css, etc… and view the results, without having to break our *live* online site, plus nobody will see when strange mistakes occur in our code! Afterwards, the completed code/theme/css can be uploaded to the site. Why make it offline? It is much faster as no ftp is required.

Creating the Sandbox

Now, the first step you need to take is to install an Apache server on your windows PC. Okay, i will say this only once, this is NOT as complicated as you might be thinking it is, i would even say it is freaking too easy! and the is how you do it:

  1. download Xampp.
  2. download Xampp

    (Note, the light version is fine if you are only installing wordpress.) I vould recommend you to download the exe self extracting archive

  3. Extract the zip package (Or the exe self extracting archive, depending of which you have downloaded) to the root directory of your hard drive (giving something like C:/xampp
  4. Exe extracting to root dir

  5. when extraction is over, double click on the Xampplite folder. the folder will contain these files among others:
    folder
  6. now open “setup_xampp.bat”
  7. after the success message open “xampp-control.exe” and click the indicated buttons to start Apache and mysql, thus getting Xampp working the way we need it to.
  8. Now go download wordpress
  9. download Wordpress

  10. Okay, now extract the zip archive to c:/xampp/htdocs, (or c:/xampplite/htdocs, depending on what version you downloaded.) thus obtaining a directory

    c:/xampp/htdocs/wordpress

    OR

    c:/xampplite/htdocs/wordpress

    (Again depending on the version you have downloaded.)

  11. Okiie, okay till now? right, almost over. now in the wordpress directory, rename wp-config-sample.php into wp-config.php, open it, and edit it so that it looks like:
  12. // ** MySQL settings ** //
    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', ''); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    And save the file. (the code below needs not be changed.)

  13. Okay, now is when it starts to become interesting. launch yout browser to

    http://localhost/

    And choose a language you understand.

  14. Click on phpmyadmin in the tools section of the sidebar
  15. in the Create new database field, type wordpress, and set the combo box (list) to utf 8 unicode (normally last in the list) and click create.
  16. Now it definitely gets familiar. go to

    http://localhost/wordpress/wp-admin/install.php

  17. And follow the instructions.

    Finished!! then your local blog address is

    http://localhost/wordpress

    Tadaa! its done!

>>Jump to comment form, or trackback from your own site.



9 Responses to “Creating an offline blog sandbox”

  1. See my profile on MyBlogLog.com! Kyu Says:

    Okies, thanks for the feedback! well it was probably because skype blocked the port when it is active ) Anyway thanks for your visit and comment, and do not hesitate if you need some more help! )

  2. See my profile on MyBlogLog.com! Lucy Says:

    Here via blogosquare … thanks for this. Only issue I had was that I had to disable Skype to get this to work, but once I’d done that, it worked a treat

  3. See my profile on MyBlogLog.com!   A quick remedy to your theme modding addiction — BlogoSquare Says:

    […] Or you could simply just create an offline blog where you can play on your computer without putting it live on the net. Check out kyu’s quick guide on creating an offline blog. […]

  4. See my profile on MyBlogLog.com! Kyusphere » Tired of SUDO? Go for the root! Says:

    […] Thus, when trying to implement my Blog Sandbox technique into ubuntu, i found i couldnt work at all for any modification would require me entering the sudo command followed by my instructions. granted, it works and is kind of safe but wouldnt it be nice to get full write/edit ability in the gui itself? perso i prefer New folder->cut->paste to sudo mkdir etc… So here is how to gain root access in UBUNTU. […]

  5. See my profile on MyBlogLog.com! Hans Says:

    yo man, I tried it. It’s a marvel, a jewel, a I don’t know what word to describe it…it’s too great man :agree: thanks for this :sly: yeah……

    fu*king sh*t that’s tooooooooooooo goood….better than s*x who knows????????????

  6. See my profile on MyBlogLog.com! Kyu Says:

    Yo hans.

    Question: how dya know the post is good if you havent read it? ) lol lol lol :bleh: =D
    Happy to see you again =D

  7. See my profile on MyBlogLog.com! Hans Says:

    hey kyu pour le comments, t’as oublier d’inclure l’heure a laquelle le comments a ete poster mane :sly:

  8. See my profile on MyBlogLog.com! comradejv Says:

    hey y a un concour pour le moment, fais en un tour quand t’as le temps :yes:

    check li >>> car le deadline c’est le 20 Janvier

  9. See my profile on MyBlogLog.com! Hans Says:

    hey yo kyu franchement c tro bon c poste….je l’ai pas encore lu mais j’y vais le faire pour de sur…pour mwa c encore les vacances la :sweat: je traine chez mon couz de rose-hill pour le moment…

    j’espere que la rentree s’est bien deroule apres :roll: apart les incovenient que t’as eu le premier jour meme :roll:

    hey mane keep up the good job….

Leave a Reply


beurk aie oups love choler cool bloody -[) -| -D -) [ o (( -) 8 -( lol 8-) -p


This blog is under a Creative Commons licence.

© 2008 Kyusphere