Setup WordPress locally
Most of you perhaps already know this but still, here we go:
For Windows:
- Download XAMPP Lite (A Combo of MySQL, Apache Web Server and PHP5)
- Download WordPress 2
- Extract XAMPP Lite’s 7z Self-Extractor in a convenient location like, C:/xampp for example.
- Enter the C:/xampp or the location of extraction you provided and run the setup_xampp.bat in it to set XAMPP up.
- Start the xampp-control.exe executable program and click the Start buttons next to MySQL and Apache options. Now click the tray icon that appears and the Control Panel disappears to that place.
- Now test your local server, go to http://localhost/xampp/splash.php
- Choose your language there, and in the following panel, look at the left middle bottom to see a “phpMyAdmin”. Open it.
- In Create New Database put in a name, (I chose wordpress) and select the encoding as utf8_unicode_ci (optional).
- Extract the WordPress.zip to any location of your choice. I chose C:/wordpress
- Open the folder you just extracted it in (C:/wordpress here).
- Rename the wp-config-sample.php to wp-config.php. Open the thus renamed file.
- In the top part, where you see stuff like
define('DB_NAME', 'wordpress'); // The name of the databasePut DB_NAME as wordpress (or the name of the database you created) - Put DB_USER as root.
- Make the DB_PASSWORD like look like
define('DB_PASSWORD', ''); // ...and passwordNotice the blank quotes instead of it being filled. - Thats it. Now move your C:/wordpress (or whatever your folder name is), into the C:/xampp (or wherever its location is) and then into the htdocs folder inside. Hit http://localhost/wordpress to see your blog in action. Happy breaking.
good tut dude….
anomit
7 Mar 07 at 5:16 pm
xaamp is quite sloq (at 250 MB installed size.) EasyPHP is better that way and faster. xaamp also has additional features such as Mercury mail and others. currently using Wordpress 2.1.2 on EasyPHP.
saurabh.sauron
8 Mar 07 at 3:51 pm
@Saurabh - XAMPP Lite just takes around 130~ MB.
Harsh J
8 Mar 07 at 5:37 pm
Good tut. Setting up a WP blog on your own system is incredibly useful. Back in the day before I was on a Linux box I would use WAMP for Windows. Linux makes it a bit easier to set up a local install of WP since it already has PHP, MySql & Apache running locally anyway. But still, great tut!
Ben G.
9 Mar 07 at 8:12 pm
[...] know how to set up a WordPress blog on your own computer but for those who might not know this here’s a great tutorial. Setting up a local copy of WP is exceedingly useful for testing and development. Share This [...]
Setup WordPress Locally | Open Switch
9 Mar 07 at 8:14 pm
Right! Linux just needs a small installation of MySQL, Apache, PHP and also, Ubuntu’s repos have Wordpress too! Just apt-get them all and all these steps go to the dump heh!
Harsh J
9 Mar 07 at 8:27 pm
What are, if any, the security implications behind running MySQL, Apache, and PHP locally on a desktop install of Linux (Ubuntu)?
Mark
9 Mar 07 at 9:42 pm
@Mark - As long as your Port 80 (Default HTTP Server port for Apache) isn’t forwarded, I guess there isn’t a security issue in running a locally hosted WordPress blog. However, on hosting it like another Webserver, there could be various security problems, you got to know your way around permissions, script executions, etc to avoid them.
Harsh J
9 Mar 07 at 11:06 pm
I made a tutorial on how to install WP on a usb stick (link)
Ralph Dagza
10 Mar 07 at 1:35 am
You should also take a look at the Web-Developer Server Suite. It comes withg WordPress pre-configured. Use what works the best for you.
Apache and WordPress
14 Mar 07 at 2:05 am
that’s a good step-by-step run-through but you can also bypass all the low-level setup and just get the Wordpress JumpBox-> http://www.jumpbox.com/wordpress-blogging-jumpbox/
double-click the .pvs or .vmx file depending on which virtualization technology you want to use (Xen, Parallels or VMware). Fire it up and complete the 1pg config form and you have a full working instance that can be unlocked if you need access to the internals.
sean
Sean Tierney
30 Mar 07 at 4:02 am
Thanks , I could test themes , plugins before uploading, and very good tutorial !
Jayahari
25 Dec 07 at 10:09 pm
I am a non-tecn person.
Lets say I use my desktop as a server using XAMPP.
I install wordpress and add more plugins to the folders.
Now for those plugins to reflect on the website do I have to keep my machine ON all teh time?
I mean if I switch off my machine, the plugins will cease to exist for anyone who views my blog online.. ? coz the plugins r on my machine… or is it that wordpress creates a backup copy of all plugins in the users account???
P
3 Jan 08 at 2:57 am
If you use a desktop as a server, logically enough it should be ON as long as you wish it to run, correct?
Perhaps am not understanding your question right. As long as WordPress runs over any webserver (XAMPP in our case), it’ll keep the plugins running as well. What’re you asking about?
Harsh
3 Jan 08 at 5:22 pm
P, no your blog won’t be running on wordpress then. This tutorial is to download and run “wordpress software on your own PC”. So, if you turn off your PC your whole site will be down.
Let this tutorial be for geeks like Harsh only cos you are opening up your machine to secutiy and maintainance woes. It’s difficult for non-techies to handle.
Jayahari yeah, a local server is really nice to test out themes, plugins and hacks before implementing it on the actual blog.
mehul
5 Jan 08 at 1:47 am