How to Install WordPress Locally
The fastest way to run WordPress on your own computer is a purpose-built local tool: install WordPress Studio or Local, click “add site”, and a working WordPress with a database and an admin login is ready in about a minute. If you prefer the command line, wp-env (Docker by default) or a hand-built stack with WP-CLI give you the same result with more control.
This guide covers five routes (Studio, Local, wp-env, a manual stack with WP-CLI, and Playground), explains what a local WordPress actually needs under the hood, and shows how to configure it so it behaves like a real development environment. It is the first step before building a custom WordPress theme: you edit files, refresh the browser, and nothing is ever uploaded.

localhost:8888 from wp-env.Why run WordPress locally
- Speed. Saving a file and reloading takes a moment, with no FTP or deploy step in between.
- Safety. You can break a theme, test a plugin update, or try a new WordPress release without touching the live site.
- Privacy and cost. Client work stays on your machine until it is ready, and you do not need hosting to learn.
Pick a method
| Method | Best for | Needs |
|---|---|---|
| Studio | Free, official one-click app | Desktop app |
| Local | Many sites, polished interface | Desktop app |
| wp-env | Repeatable, version-controlled setups | Docker, Node.js, git |
| Manual and WP-CLI | Learning, or matching a server | PHP, database, web server |
| Playground | Throwaway experiments | A browser |
If you are unsure, start with Studio or Local. You can always move to a command-line setup later, and the site content is portable between all of them. The export and import guide shows how to move a site in either direction.
Option 1: WordPress Studio
Studio is a free, open-source local development tool from the WordPress.com team. It ships as a desktop app and a command-line tool (studio, covered below). Download it from the Studio page, then:
- Open the app. The first-run “Add site” dialog lets you create a new site, connect an existing WordPress.com or Pressable site, import a backup, or start from a Blueprint.
- Choose a name for the site and create it.
- Open the site in your browser and use the WordPress admin button to log in.
Blueprints are the feature worth knowing about early. A Blueprint bundles a theme, plugins, demo content, and settings, so every new project starts from your preferred baseline instead of a bare install. Studio also bundles debugging tools (a debug log, phpMyAdmin, and Xdebug) and supports SSL and custom local domains to match production. A WordPress.com account is only needed for hosted preview sites and sync features, not for running a site locally.
The Studio CLI
The same tool is available in the terminal. Install it with npm install -g wp-studio, or switch on “Studio CLI for terminal” in the app’s General settings. Then, from the folder where the site should live:
studio create
studio start
studio wp plugin list
studio wp passes any command to WP-CLI inside the site. The difference from wp-env is that Studio needs no Docker and no configuration file, while wp-env is built for a committed, repeatable setup. Studio also includes Studio Code, an AI agent that can generate plugins, themes, and content, which is optional.
Option 2: Local
Local is a free desktop app that creates a self-contained WordPress site per project. Download it from localwp.com, create a site, and choose your site name and admin credentials in the wizard. Each site runs independently, so one project’s PHP or database settings do not affect another. Local also offers features that connect to hosting accounts, which are optional.
Both Studio and Local replace the web-server-plus-database setup that older tutorials made you assemble by hand with a bundle such as MAMP or XAMPP. Those bundles still work, but you configure and maintain the pieces yourself.
Option 3: wp-env
wp-env is the official command-line environment used by WordPress core and Gutenberg development. It runs WordPress in Docker containers, so Docker is the default runtime and you need Docker and Node.js installed first. Git is only used to download remote sources such as plugins and themes, so you can skip it when everything is local. Install it globally and start it from any folder:
npm -g i @wordpress/env
wp-env start
When it finishes, WordPress is at http://localhost:8888. The default admin login is the username admin with the password password, and the database login is user root with password password. These are fine for a machine that only you use, and they are a good reason never to expose a wp-env site to a network.
The real value is the configuration file. Put a .wp-env.json in your project and everyone who clones the repository gets the same setup:
{
"$schema": "https://schemas.wp.org/trunk/wp-env.json",
"plugins": [ "." ]
}

Here "." mounts the current folder as a plugin. Useful commands:
wp-env stopshuts the containers down and keeps your data.wp-env run cli wp user listruns a WP-CLI command inside the environment.wp-env destroydeletes the containers, volumes, and local files. Your site data is lost, so use it only when you want a clean slate.
Docker is the default, but wp-env also has two experimental runtimes that avoid it: wp-env start --runtime=playground runs WordPress in WebAssembly, and --runtime=php uses the PHP on your computer with SQLite. Treat both as experimental.
The @wordpress/env reference lists every option.
Option 4: Build the stack yourself
Building it by hand is the closest equivalent to the original manual process, and it teaches you what the other tools hide. WordPress needs three things: PHP, a MySQL-compatible database, and a web server.
What WordPress needs
The official requirements page recommends PHP 8.3 or greater, MariaDB 10.11 or greater (or MySQL 8.0 or greater), HTTPS support, and Apache or Nginx. Older PHP and MySQL versions can still run WordPress, but they are end-of-life and unsafe on a public server. Locally you want to match what your host runs, so check that before choosing versions.
The manual steps
- Install the stack. Use your package manager, or a bundle like MAMP or XAMPP. On macOS with Homebrew,
brew install php mariadbis enough. On Debian or Ubuntu, usesudo apt install php php-mysql php-xml php-mbstring php-curl php-gd mariadb-server. For a quick local web server, runphp -S localhost:8000from the WordPress folder, so Apache or Nginx is optional for learning. - Create a database and a user. Use phpMyAdmin or the database client, and give the user all privileges on that database only.
- Download WordPress from wordpress.org/download and extract it into your web server’s document folder.
- Configure the database connection. Rename
wp-config-sample.phptowp-config.phpand enter the database name, user, password, and host. You can skip this and let the installer create the file, but you still need the same details. - Run the installer. Open
/wp-admin/install.phpon your local address, then enter a site title, admin username, password, and email.
The same steps with WP-CLI
WP-CLI turns that checklist into commands. Install it with brew install wp-cli on macOS, or download the wp-cli.phar file from the WP-CLI site, make it executable, and put it on your PATH as wp. From the folder where you want the site:
wp core download
wp config create --dbname=mysite --dbuser=wpuser --dbpass=secret --dbhost=localhost
wp db create
wp core install --url=http://mysite.test --title="My Site" \
--admin_user=admin --admin_password=change-me [email protected]
Replace the sample values with your own. The command list is documented in the WP-CLI command reference.
Option 5: WordPress Playground
WordPress Playground runs WordPress entirely in your browser using WebAssembly, with no server and no account. It is ideal for trying a theme or plugin, reproducing a bug on a particular PHP or WordPress version, or teaching. It is a sandbox, so treat it as disposable rather than as the home of a client project.
Configure it like a development site
Once WordPress is running, add a few lines to wp-config.php. They make errors visible and make the site identify itself as non-production:
define( 'WP_ENVIRONMENT_TYPE', 'local' );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
Place these above the line that reads “That’s all, stop editing! Happy publishing.” WordPress stops reading settings there, so anything below it is ignored.
WP_ENVIRONMENT_TYPEacceptslocal,development,staging, orproduction. Plugins and themes can read it withwp_get_environment_type(), and an unrecognised value falls back toproduction.WP_DEBUGraises error reporting and shows deprecation warnings, which helps you catch problems before they reach a live site.WP_DEBUG_LOGwrites errors towp-content/debug.log. Keep that file out of any publicly reachable folder on a real server.WP_DEBUG_DISPLAYcontrols whether errors print on the page. On a local site showing them is fine, butfalsewith the log is the safer default because notices cannot break layouts or AJAX responses.SCRIPT_DEBUGmakes WordPress load the unminified core CSS and JavaScript, which helps when debugging scripts.
When something goes wrong, the log usually names the file and line. The guide to common WordPress errors and how to fix them covers the ones you will meet most often.
Common problems
- “Error establishing a database connection.” The name, user, password, or host in
wp-config.phpis wrong, the user lacks privileges, or the database server is not running. Check them in that order. - Port conflicts. If another app already uses the port, your local tool will pick a different one or fail to start. Stop the other app or change the port in the tool’s settings.
- Permalinks return 404. Visit Settings, then Permalinks, and save once. On a manual stack, make sure your server’s rewrite support is enabled.
- Uploads or updates fail. The web server user needs write access to
wp-content. Local tools handle this for you; a manual stack does not.
Before you go live
A local site is a development copy, not a backup. When you are ready to publish, move the files and database to your host and fix the site URL. Remove the debug lines, and review the security basics in how to protect WordPress sites. A slow site is easier to fix before launch than after, so also read how to speed up a slow WordPress website.
What to build next
With a local site running, you are ready to build. The Complete WordPress Theme Guide series picks up from here, and Building a Custom WordPress Theme is the next chapter. Start the Site Editor, create a child or block theme, and edit it with the confidence that nothing you try can reach a live site.
Wow, that’s Cool.
I didn’t thought of that. But they idea is brilliant. Now I can’t change the theme without worrying about the live status …
Great ThanX
Alright Nick. That took 5 minutes. On to the next step..lets go!!! Hurry up! :)
I just wanted to say that YOU RULE!!!
Just a note, the latest beta of WordPress is pretty cool, I have it running and haven’t run into show stopping problems. But you’re probably correct to reference a stable release :) Good tutorial.
interesting! the next step is good to sea how make a designer a wordpress theme.
Good joob!!! I wait to the next chapters!
I’ve done this in the past, but I don’t do it any longer. For some reason, the local server programs I install are always prone to bugs, breaking down, etc.
Nevertheless, installing WordPress locally is beneficial as you can test your themes beforehand and keep a working copy of your website, replete with its posts.
Alternative of XAMPP is Denwer (now only russian)
The post is very useful for newbie. Anyway, thanks a lot !
Keep up the good work
Nice tutorial! Another alternative is EasyPHP (PHP – Apache – MySQL – PhpMyAdmin for Windows) in english or french. Very easy to install and an administration page with all your local web projects.
I can install two WordPress on a single database, for instance for a preview? If so, can I how do?
I realize that you asked this a few years ago, but, for anyone else who has the same question, you can install as many WordPress sites as you want by placing the files in different directories.
For each installation, edit the wp-config.php file. It must contain the database connection information and then, under the section “WordPress Database Table prefix”, make sure that each WordPress installation using the same database has a unique “$table_prefix” name.
anyone else having trouble running the XAMPP ? I’m getting libsql.dll errors running mad all over my screen when I start the admin tool….
clear explanation. I Hope the next chapter will be published as so on as possible. I really wait for that ..
Your tutorial on the subject will definitely tilt the scales in favour of WP.
I have been trying to decide between many CMSs for simple sites and what you have achieve with your site gives me the confidence that it can be themed away from the existing templates out there.
I am a designer so if the amount of PHP is kept to a minimum even better :)
Regards,
Petolo
I do an extra step when I install WP locally, I like to configure the virtual host in Apache with a fully qualified domain name and then edit my host file to point that domain to localhost.
The advantage of this setup is to save you the step of replacing all your non-qualified domain names in your code and in the database before migrating your website to a production server.
Gahhh where were you 2 weeks ago? I figured this out on my own and it took HOURS. All the tutorials I tried to use were years old.
In any case thank you for posting this.
I hope you won’t forget the hold ups of transfering your local database to a your online one.
The many many many hold ups.
Especially if you use security plugins. (Quick Pro Tip on that: Don’t install the Security Plugins on your local and just have them running on your live)
Love your site my fellow Torontonian. If only I had friends like YOU in this city eh? lol
I’ll second Sam’s comment.
I’ve used both XAMPP and WAMP (WampServer).
For uses such as this, I think WAMP is easier to use.
Thanks for the series.
I’m looking forward to the following articles.
Regards,
Brian
Finally, someone will do this right. I read the “small potato” tutorials to learn wordpress. I wish you would have been available back then. You’re much easier to follow.
I use MAMP on my Mac, but I think there’s a better alternative to XAMPP for Windows. It is called USB Web Server. There’s no installation required so you can just drop it anywere you want, even on a USB-stick! Check it out.
Finally, installing is too easy.. I think :) Cann’t wait to other parts..:)
Thanks for a great post. Really came at a critical time. Looking forward to some more frequent entries. Amazed at how progressive your features on the blog are getting. Great stuff, keep up the great work..
Cheers
very usefull, but nothing special. you have gained 5 days simply posting the summary eheheh
Am I the only idiot who found XAMPP impossible to install? I don’t really need a solution, I’ll just get someone more technologically inclined to handle that part. Any “here, here’s” would make me feel better though.
Love this Nick, you are a true guru. This is particulrly helpfull since I´m starting work on a new site with wordpress as the backend.
Thanks very much for the tutorial! Looking forward to the remaining two. Your clear instructions are great, I’ve been meaning to give WordPress a try for a while now.
Hey Nick, thank you so much for the tutorial. I’ve been wanting to install WP locally so that testing WP won’t be eating my all the bandwidth of my hosting plan. I’ve tried combing through online tutorials but some of them are horribly overcomplicated and makes it sound very cumbersome to get WP installed.
Thank God your tutorial came at the right time! Now I can test WP2.7 beta locally without messing with the online and active version of my WP ;)
However, I’d prefer to use WAMP because it uses phpmyadmin. Very handy and simple. Oh, and I can’t wait for the next part to be released!
Curious – on this tutorial, you show your wp-config file and at the localhost part – you have ‘localhost:8889’ — why is it 8889 instead of 8888 ? (which is what MAMP sets it up as). I admit, I’m new to this, so maybe there’s a perfectly good explanation for this, I just thought I’d ask. Does it make a difference?
@Tim
I’ve got it set up and working with localhost:8888, I’m not sure if that’s just a typo or if there’s a better explanation, but I wouldn’t worry about it… :-)
Yes, yes, yes! Super-handy mate.
This will save me a lot of time methinks.
The reson that it’s set to 8889 it that it’s MySQL port and the 8888 is the apache port!
hello :)
hurm i’ve done this since Xampp 1.5. very easy to me. i use it to test my wordpress theme offline, since it won’t eat away my server bandwith.
very nice and detailed tutorial indeed. keep it up!
Good guide.
I’m waiting for the next chapters.
It might also be worth covering how you switch on mod_rewrite in apache as its turned off by default. Once its switched on then you can test various perma link structures locally.
As that was the one problem I had when running WordPress locally. =)
very cool tutorial. very usefull to beginners in wordpress.
@Amilcar
I wrote an article that might save you some time :)
You should be able to migrate your blog to a production server without any hassles if you use my solution. Installing WordPress Locally and Migrating to a Production Server Hassle-Free
If XAMPP doesn’t work for you (it sadly didn;t work for me either), try another one (first uninstall the other server!) : wamp server and usb webserver (dutch site, but english software available) worked fine for me.
Greetz,
Bastian
You should try usbwebserver 7 you unpack it, and it works.
I always have wordpress running in less then 5 minutes.
Also mod_rewrite is on bij default.
@giles
I had some trouble with this too, until I realized I had extracted the wordpress zip-folder into a new directory inside ‘mysite’. When I moved the wordpress-files out of ‘wordpress-folder’ into ‘mysite’ it worked just fine.
really useful tutorial,save many time to edit theme and perview the result
I’ve had WAMPP set up for a while (for testing php) and never even thought of installing wordpress locally to test changes to my (few) wordpress sites. Nice post!
It does not find where I installed wordpress.
I get the message below and it’s not caused by a firewall or anything like that.
Failed to Connect
Firefox can’t establish a connection to the server at localhost:8888.
Though the site seems valid, the browser was unable to establish a connection.
* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer’s network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
Hey giles
Not sure if its the same problem I faced but try placing your site in (the whole shebang) in applications/mamp/htdocs/
workked for me. I use a G5 at work and could only get it to work that way. Funny thing is I use an intel Imac at home and it didnt have that problem. let me if that helps.
ocube
Giles, make sure that you changed the wp-config-sample file and make sure that you only have a (1) parent folder under htdocs structure should be like this:
mamp>htdocs>mytestsite>then all the extracted WP files
with WP 2.6.x “Update wp-config.php File” as a option, the install guide will do it.
Hi thx for the great tutorial. Anybody got any ideas how to acces the site from a PC in my LAN to check how IE works with my freshly created theme?
humm não é muito dificil estou tentando seguir as dicas acima veremos se consigo
This was a great help! Thanks so much. I love your site, keep up the good work :)
I already have a wordpress blog. how do i log into that? It seems that its creating a new site. im lost please help.
hey,
im trying to install wordpress locally but im having some problems. When i get part 5 where it says :
With your browser, go to and follow the instructions to install WordPress.
i get an error message. Can you tell me where im going wrong?
Thank you
Fahad make sure that the contents from the wordpress folder are directly in the mysite folder. applications/mamp/htdocs/mysite/(the contents from inside the wordpress folder). if you place the the whole wordpress folder inside it wont work. Hope that helps.
Thanks Aris:) it works now.
Does anyone know where i can download a plugin which allow users to rate a product and review my posts or products?
by the way this site is great!
thank you for you help guys
Hey,
I use Windows and istalled WAMPServer. The problem I have is with step 3: where actually should I unzip the WordPress content? The only ‘htdocs’ folder I have is inside ‘apache’ folder (wamp\bin\apache\Apache2.2.10\htdocs\).
Please help me.
Hi,
Thank you for the tutorial, it is great!
I have successfully set up WordPress on localhost, however I don’t know how to login to the admin panal of WordPress. I am a newbie, please pardon me if this sounds like a silly question. Thanks in advance!
I am totally in the dark…so grateful this site exists!
The “newbie” tutorial for installing WordPress locally was too complicated for me…but since the blog is already up…(hosted with Hostazar…I managed to get THAT accomplished)…my dilemma now is “Themes”…I desperately need help in uploading/installing themes.
I am very ashamed because I AM a (graphic) designer…but not technical enough for Web design…my expertise is marketing/branding/imaging and PR…I’ve taken a hiatus from all that to engage in Internet marketing…so my inability to make my sites look fabulous is embarrassing to say the least. Please help!
I just discovered this blog and I’m reading all the other posts here now…in the meantime, additional hand holding is highly appreciated.
Thanks ahead of time.
AlysynC
I’m a complete noob and didn’t know to turn web sharing on in order for MAMP to work properly. Hope this helps anyone else as incompetent as I am! Thanks for this post so much…
for those trying to install wordpress and use xampp (mac or PC) when editing the code DO NOT put in a password. above says root for username and root for password. dont put in a password. you might have to remove whatevers there first. you can keep your localhost as just localhost as well.
I’m stuck on Step 5. I tried that URL: and I get a “Failed to connect” error. I don’t know where I went wrong. I’m using WAMP server. I opened the HTML file in the wordpress htdocs folder and clicked the 5 minute install link which takes me to a page saying I already have wordpress installed. I never saw the install.php page. There were 2 blank text fields. There, I tried to name it and put my email address associated with the server. I don’t know what’s happening.
Also, What does the number 8888 and 8889 mean after “localhost:”? How do I know if I used the right number or if I need one at all?
MAMP saves me soooo much time. Amazed it’s free.
For anyone using WAMP (and possibly XAMPP, have not tested) who has any issues related to Step 3-5, here is your solution:
With WAMP installed (or XAMPP) your Step 3, 4 and 5 will look different then, our gracious host has suggested, with a MAMP install.
Step 3.) Go to wamp / www, in whatever directory or location that wamp was installed. Extract latest (or any version) of wordpress-X.X.zip to a folder (mysite) with only the content of the wordpress folder dumped directly into (mysite). New file structure will be wamp / www / mysite / etc..
Step4.)Unless you’ve changed the db username, password or host name then the db_name is whatever you created in Step 2, the username is root, enter nothing between the ‘..’, and host is localhost.
Step5.)With your browser go to .
Hope that helps!
Thanks again, Nick!
PS. If you’re having a problem getting your WAMP or XAMPP server online, that’s a whole ‘nother issue, but check to make sure you’re not using IIS; infact disable IIS if possible.
Okeif,
Having endless problems with the install and have tried both Nicks and your directions. Using XAMPP. No luck on either front, as constant “The requested URL was not found on this server” errors.
Have tried all combos:
(get “IE cannot display this webpage” error on this one. wp-config localhost changed)
(get “IE cannot display this webpage” error on this one. wp-config localhost changed)
Some questions about your post:
1. In “Step 3″, you say ” Go to wamp / www”… This directory does not exist. Do you have to create it?
2. In “Step 4”, you say “…… the username is root, enter nothing between the ‘..’, and host……” What is the “enter nothing between the ‘…’ referring to? The password?
3. In “Step 5”, you say “With your browser go to ”
Should this be:
Thanks so much for your assistance!
I’ve finally got a local WordPress install setup on my Mac thanks to your tutorial. Great for testing new versions and making changes to existing sites without editing live content. Thanks.
Hello,
I am pretty new to all of this, but eager to learn how to set up my own blog. What is the advantage of installing WordPress locally?
I’d like to thank Okeif who posted the life-saving tips (comment 101) that are needed to get the install working on a PC. Moved the whole thing from super-frustrating to super-satisfying. Whew…
Really useful, thanks. In fact, I substituted IIS for Apache on Windows XP, because that’s my usual development environment. All works a treat with PHP and mySQL.
IS this lesson inteded for a Paid WordPress account? or this can also apply to a free WordPress Acount.. ?????
Hi, Brilliant site, brilliant post!!!
I had mega problems getting the XAMPP Server working locally [Windows XP], so I decided to try the WAMP. It works a treat.
This is how I did it – and it has been commented here before so this really is following on the instructions of other users on this post, [Okeif and otheres], anyways… This is for Windows XP,
Download and Instal WAMP,
then
1) create a folder, say ‘mysite’ to your c:\wamp/www/ folder. 2) download WP and unzip it to c:wamp/www /mysite, alternatively just unzip it to your desk top and then copy all of the wp files to c:wamp/www/mysite Make sure you do not a)copy the ‘wordpress’ file in there, just the content and b)don’t copy the wp file content into www. It needs to go to c:wamp/www/mysite !
3) go to phpmyadmin, which can be found on the little icon at the right bottom of the desktop. Create a data base for e.g mysitelocal or what ever.. Just make a note of it.
4)Go to your wp-config-sample file and rename it to wp-config , also set your DB_name as ‘mysitelocal’ or whatever else you chose, DB_user as ‘root DB_password as ” or if you have set a password then use it, and finally DB_host as ‘localhost’ – then save it!
5) next type in or alternatively just write and then choose from ‘Your Projects’ the mysite folder and you should be on your way. I hope this helps..
Again Brilliant resource site!! Thanks for all of your help past, present and future.
JUST AS A HEADS UP!!! Sometimes the password is not root at all for a local host! In my case it was supposed to be left blank. Caused me hours of issues! Silly me.
Sorry,
do you think is possible keep both IIS on local (window 2003 server) and apache…
In this way I can test my sites that working in ASP and my sites that working in php…
Thank you very much
#danilo
Thanks! Fantastic site! And thanks Tomas L. who saved me from giving up with your tips for the Windows installation. It works on Vista too. Yeh!
Thanks Alot .. it helped me in setting it up locally, only problem is of simulating .htacess file in the windows xp machine, it would be great help if that could be provided.
When I go to /wp-admin/install.php, all I get is a blank page. For some reason it’s not prompting me to install. Can anyone help me fix this issue please?
Ashley, are you by any chance running on a 64 bit Operating system? I am, and I just discovered recently that XAMPP still hasn’t released a 64-bit version… but there are workarounds… if you are interested (an running on 64-bit)
HI – can someone help please
I Get to the very last page and it reads
The requested URL /mysite/wp-admin/install.php was not found on this server.
Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at localhost Port 8888
Ive tried this 3 times with no joy, can anyone recommend what i might be doing wrong?
Thanks
PAUL
Oooopppps, not a typo, scratch my previous comment. I just forgot to put my WordPress dos in the htdocs folder within MAMP. Now it’s working.
Hello everybody,
I thought I had done everything right, but I was wrong. For some odd reason when I click the instal file dreamweaver launches and no install takes place.
Following the instructions on the tutorial this is what I did:
1 Created datebase
2 Downloaded wp files, placed them inside a folder named mysite, and subsequently I placed the mysite folder inside the htdocs of mamp.
3) I removed “sample” to rename the wp-config.php
4) I launched dreamweaver and I entered the info inside wp-config.php file (database name, user, password)
5) I went to and downloaded the instal to my desktop.
6) I click the instal file. Dreamweaver launches showing the istal file, and no instal takes place.
I’m stuck here. I don’t know what to do. What did I do wrong? Can somebody help, please?
Thank you in advance.
For some odd reason, after I download from “”
Wonderful! My dilema: Running IIS and Apache on the same PC. I didn’t want to disable IIS. After a bit of struggling I managed to install WAMPServer on my PC. Now I have both servers IIS and Apache running on the same machine. I just changed “Listen 80” to “Listen 777” and “ServerName localhost:80” to “ServerName localhost:777” on httpd.conf – After the change I had to “Restart All Services”. From now on when I want to access Apache server I just have to change the URL to – Great article! Thx!
Im trying to install the wordpress on a rails application.
+ Can wordpress be installed on rails application?
I’ve just bought a copy of “WordPress theme design”, cost me nearly £25.00.
Pity I didn’t find this article first!!
Question – for windows vista, which is best XAMPP or WAMP?
Thanks for the articles.
Keith D
I am using wamp for a pc. I am having trouble with installing wordpress when I type in I get this error message:
URL /mysite/wp-admin/install.php was not found on this server.
I can get to localhost/mysite and I can see the wordpress folder but cannot access it. I get the error message above.
I put my SQL hostname as “localhost could this be my problem.
If anyone can help me I would appreciate you emailing me at [email protected].
Thanks
First of all, thanks for yet another great tutorial. I love this site!
I’m running on Windows Vista. I personally couldn’t get XAMPP to work at all, but after some trial and error here’s what worked for me:
1. Download WAMP ()
2. Follow the tutorial at the following site to get the server and wordpress up and running —
Hope this helps.
Since leopard comes with PHP and apache preinstalled I just wanted to install mysql instead of installing mamp, also because I can use the mac as a webserver If i chose and from what i understand this would be impossible to do with mamp, it can only be used for testing locally and could not be viewed by anyone else. I understand the security issues but I would like the ability to do so. My question is how can I install wordpress using the apache php and mysql installed on the computer and not through mamp?
I followed the tut.through each step, but developed a problem when trying to run ‘install’. I copied “” into my browser, but it comes up an blank white page,nothing happened.
when I change the address to “”,it asked me to save the install file. I did, but when open it,Adobe GoLive launched with these random codes “4???
5.0.41?)???@uQsmJjU?,¢??????????????Nc,L{J=1{=\7???ÿBad handshake”….I’m stuck….
I did put wordpress docs in the right folder(htdocs).
Please help me,thanks.
Hi,
All I could express after seeing your wordpress blog’s design and beauty was this ” Oh my God, I have never seen such a beautiful design and blog”.
Well Anyway I do know Photoshop and Fireworks but I do not know how these flowers are made and even if these are made in these two or something else, I wish I could create design or flowers like this page has. Wow what is it did you develop yourself I write and preview is showing up of text I am typewriting that’s very new for me.
Any hint will be appreciated.
Oh yeah actually so far I only add entries for short tutorials or hints in my blog for technical programming or gadget or software related.
Thank you for reading my comments.
hi… i’m confused. i bought a host plan and installed my wordpress on it. does this mean installing it on my computer is much more better?
Could someone give me some advice?
So I downloaded wordpress and installed in sucessfully on localserver –does this mean that the blog is only visible from my computer? I don’t have a web host. can I make one myself? if that is possible I’d like to try and figure it out. thanks!
Following along with the WordPress tutorial here I’m running xampp 1.7.1 on vista sp1 but since I tried to start mysql with it I just get the 1067 error code every time I try to launch phpMyAddmin with it. Thing is I used to be able to run phpmyadmin just fine in previous releases but not anymore.
I’ve Googled the error on a few sites now and I’m not getting any solution yet. Please help as I ‘m banging my head against the wall here!
Solved my problem by switching to my home PC setup :grin: works a charm.
Hi, My wordpress installation stalls at the last stage after I key in my blog title and email. I am not getting the “Success” page with the generated login and password. Which step am I missing?
Please help! Thanks in advance!
hi love the tutorial so far – very clear, but when I try to run the wp-install php file I get some gobbldygook and “bad handshake” can you help please.
I’m running os x10.4.11 with the latest version of wordpress and mamp.
Great Info! Had to tweak a few things for Windows Xammp, but very easy process. I love your site. Its one of the most beautiful I have come across and it is full of useful info for an aspiring designer. Thank you for all your work.
helpful article …
was looking for something like this …
thanks for sharing …
am gonna try local wordpress intallation now …
Mac people, can’t get to the install bit?
You need to move the wordpress folder (that you unstuffed) into the htdocs folder found in the MAMP directory (should be installed in your applications folder).
Than go to the localhost URL described in step 5.
Hey Jez, I got the same thing, but when go you to install, take out the /mysite and it will take you to the install page – assuming all other things have been done.
Thank you to the writer of this post! It walked me through and got me up and running.
In case anyone (Mac users) is having problems with all graphics and pics showing up I figured out why. Another popular tutorial said that you can install wp in any folder on your computer inside a htdocs and I did under my username. But I looked for weeks why the themes and WP icons wouldn’t show up. After reading here I read that wp needs to be installed into the “htdocs” folder inside of MAMP, inside of the apps folder. I also changed my Preferences inside of MAMP to “Reset MAMP ports” and it changed the Apache Port to 80 and they MySQL Port to 3306 and in my browser I put in “” and everything works perfect. I am new at this so don’t know if it’s the right way but it works to work locally.
I love the design of this site! Thanks for all the great info here.
Thanks for the article and I’ve managed to install MAMP with no problems, along with getting a WP install up and running.
However, I cannot get my local install to see any new themes I copy into teh theme directory – any ideas?
Hi ^^
The information is pretty clear, but i think im doing something wrong and i need help to solve it. When i go to the link you mention to install.php i get this error that says the page was unable to reach… im pretty sure i did something wrong on my wp-config.php doc and actually i dont know the actual account and password for MySql, so please someone contact me and help me i need this thing up o.o I know im missunderstanding some information but i need you to guide me on this ^^
Tnx for all the tutorials and information ^^
Outstanding Article , I thought it was tremendous
I look ahead to more great postings like this one. Do you have a RSS I can subscribe to for updates?
Nice write up. Saved me a little time explaining it to someone. I use WAMP on my pc for working on WordPress pages. I have had no issue with it. I recommend it as well.
Hi there,
I used your instructions to set up a local beta site for the school I worked for last year, and it worked flawlessly. I moved to a new school this year, and wanted to start fresh. I deleted the old site, created a new database in myphpAdmin for the new site, and now I can’t get it to work at all. I keep getting the same error message about already having installed wordpress despite having deleted the old database in phpmyadmin.
Any ideas? I have a screenshot of the error message if that would help. Any assistance would be brilliant. Thanks!
Check these video…it explains how to install wordpress on local computer..
Please place these video in your blog so it will help your visitors
https://www.youtube.com/watch?v=wnd3u0bWJv8
Thanks
Excellent Tutorial! Spent hours trying to figure this out but once I found this tutorial I had WordPress running locally in half a minute!
thank you so much @ Tomas Lonnberg because i couldnt get mine to even give me the page to bring up wordpress until i read your guide. and i went through 13pages of comments and guide trying until i came to yours ^-^ thanks again=)<3
I’ve just installed WP 2.9.1 locally with XAMPP Windows 1.7.3 in my Vista PC.
How To Install WordPress Locally With XAMPP
Hi, just a simple question
Im new to wordpress and php
Which version of local server should I use if the machine I work on locally is a widows pc whereas the server I will be using is with Linux.
Thanks for the tutorial, it’s really helpful
Thank you for the clear guide. I had been battling for a week to get WordPress installed – you gave me that one bit of information I was missing from other instructions and I got it done in half an hour.
Nice tutorial mr…. but my problem is that, i’m stuck in 5. Run install.php “Warning: require_once(../wp-load.php)” i need help really badly…. thank you…..
I’m stuck on step 5, please help!
I’m using a mac and MAMP. I’ve tried every way of trying to get that setup page and have had no success. What am I doing wrong?
hi,
Thanks for this but i have a problem with steps 4 & 5.
I inserted the ‘database name’ no problem. (very impressive i know).
– where do i find the username and password to insert in step 4?
– when you say ‘localhost:8889’? what do you mean?
Sorry if this is all newbie questions but im genuinely stuck.
:(
and assuming i fill in the info in step 4 correctly, then running /install.php should work?
thanks in advance
n8
You might want to add the Microsoft Web Platform Installer as a possible way to install wordpress locally. It is a really easy install for windows users (about 10 minutes).
https://learn.microsoft.com/en-us/windows/web/
I would be willing to do a guest post for web designer wall detailing how to use the Microsoft Web Platform. Contact me if you are interested at kyle{at}highergroundstudio{dot}com
resolve for step 5.
in wp-config file replace original code with this:
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ”); // …and password (needs to be empty, just for local install)
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
of cours, your datebase name must be “wordpress”.
enjoy!
Great tutorial. I was always looking for ways to install WordPress and work with a theme locally. There are many steps, but all are laid out very well. Thanks for taking the time to help everyone.
Kurt
San Diego Mobile Notary
Thanks for the clear instructions and easy to follow layout. This article was very informative.
Brilliant tutorial and have used it before. I updated my MAMP Pro, and now it won’t work!!! So annoying… it cant connect and I keep getting this msg-
Not Found
The requested URL /mysite/wp-admin/install.php was not found on this server.
Please help, I need to get this sorted. I’ve done everything that is required so really dont know whats going on! Thanks
Things are slightly different for WAMP: Here’s what I did:
1. Install WAMP into c:/. When done, run WAMP then click on WAMP icon in icon tray> select ‘start all services’ from menu.
2. Go to your browser address bar: (if you see nothing, try closing ‘SKYPE!!!!’), click on phpmyadmin link at bottom (this just takes you to localhost/phpmyadmin)…
3.You now ‘create new database’, give name ‘wordpress’… leave all other dropdown boxes.
4.When it has created that, go to tab towards top right called ‘Privilages’… click ‘add new user’, enter a username and password twice, ignore everything else and click GO on bottom right to save this user.
5. Now you can continue from STEP 3 in Nick (webdesignerwall’s)
tutorial, but note your folder will not be called ‘htdocs’ it is call ‘www’ found at c:/wamp/www/’folder-name-you-created-for-your-local-wordpress’…
Never ever came to my mind LOL to do it localy tzzz, now i can work even when im without net
10 thumbs up
Thanks so much. Steps were nicely presented and easy to understand to a beginner like me. I am trying to create an e-commerce site and even though I read that drupal is the best way to go. I will try to do it with wordpress because I read is possible. I saw a template that I really liked that was supposed to be used with drupal, but I was not able to handle it. I was able to install drupal on a local server, but I was not able to do anything with the template that I chose. I know drupal is a more powerful CMS, but for someone like me it doesn’t add to anything if I can’t understand how it works. I hope that WordPress is as easy as I read. Again, thank you for the tutorial it was clear and useful enough for beginners like me.
When I go to
I get
Not Found
The requested URL /mysite/wp-admin/install.php was not found on this server.
Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 8888
Any ideas what I am doing wrong. Much appreciate a response
@ ALEX..thanks you give me a solution since I am using wamp server. The wordpress already installed on my PC. Hug from Timika, Papua, Indonesia.
I’m a total noob at this (a) So when I try to install wordpress, it says Error: PHP is not running. I downloaded everything above, I even downloaded php seperately and after that I downloaded the WIX to manually install php, that totally didn’t work :( I do have another program called eclipse. I can open the php files and edit them, but I can’t view them. When I try that there comes a black window and it disappears, seconds after… Can someone help me??
Thanks so much for this guide. I was a bit daunted about all of this and you have really helped. I don’t usually show my gratitude on posts like this, but i felt i needed to on this one…
Is this what I would use to just test out creating a website with WordPress and not having a live website just yet?
we are in wordpress age thanks great post
It’s nice to answer people’s questions. Otherwise, why bother posting them?
Hey thanks for a great tutorial.
What if I change my mind (LOL) about the name of the wordpress folder in htdocs?
I tried changing the name of the folder from “wordpress” to “testing” and then changed the Mamp url to and ended up with a blank screen.
Thanks very much
John
thanks for write up this guide.
correction needed: please include this step in your guide:
– for Windows, unzip wordpress into c:\wamp\www\wordpress
My live server will be Linux based as the hosting company does not include WordPress installation for Windows. Idiot level question then:
1) if I download XAMPP to use as the local server for a local version of WordPress, should use the Linux version of XAMPP?
2) If I use the Windows version of XAMPP, will it prevent me from uploading my WordPress site to my live, Linux server?
3) If I DO have to use the Linux version of XAMPP, which Linux software would you recommend – a friend suggested Ubuntu – and would I be better off running Ubuntu with a virtual machine such as vmware to avoid issues with my regular Windows XP OS?
I am new to this, so bear with me. Thanks
I would like to work on a site on my local computer before taking it live. My question is what do you do to take it live once you have worked on it on the local server and you like what you’ve created? Please advise.
Thanks,
RW
When you do article marketing, your intention is to increase the number of visitors to your website. It is not our abilities that show what we truly are, it is our choices. I have look for such a article for a long time, thanks a lot.
The design template for this site is fab! Bright & strong & wish it was a standard template as it’s stunning! :-)
THANK YOU! I’m such a newbie I was stuck on the WP site’s final instructions until I found this lovely, helpful post. I’m now up and, well, toddling, but I’d still be stuck without your help!
Cheers!
This is a good way to learn word-press.
Hello this is a good websites..
I love it to see. It is a very useful for user. And It is very interesting for us. I suppose to take help form you for making a WordPress website.
Thanks Neeraj
People can have no interst in Nokia, Moto or other mobile phone brand, but he wiil surely love the apple offical white iphone 4.
white iphone 4 available now. It is the best news today.
@Robin: If you’re already running Windows, just use XAMPP for Windows. WordPress is cross-plaform, and it won’t matter which version of XAMPP you use to edit your local version. Seriously, skip vmware, skip trying to install Ubuntu and just run the Windows version of XAMPP.
There are different ways of doing that, but what I generally do is export the database using the ‘tools’ menu and import into the live website, then upload all the theme files and plugins via ftp.
It takes a while but it’s quite simple.
Q: so should I download MAMP into my applications folder or inside the site folder for that specific website?
Cool but the problem I’m having is how to publish it online after building it on wamp how do I change the path how do I install the database on the server thanks
I am not a developer at all and trying to work on a new theme while keeping our default WP one live. Is there an easier way to design our new theme (we’re customizing an existing theme) than to do it on a local server?
On a similar note, I tried to follow your instructions and am stuck at “Run install .php”. The url you provided is pulling up a 404 page.
thx
Cool but the problem I’m having is how to publish it online after building it on wamp how do I change the path how do I install the database on the server thanks
I am using XAMPP. I have downloaded & extracted WP. I changed the file name to wp-config.php as instructed, but when I try to open it, Windows tells me it cannot open it and needs to know what program created it. I am a beginner. Please help……..
Is it possible to have multi-site with a local install of wordpress?
I followed your instructions for Mac — no problems, thanks — but it means the URL for the local site is “localhost:8888” etc… and if you try to create a wordpress network it throws the error:
Error: You cannot install a network of sites with your server address.
You cannot use port numbers such as :8888.
I don’t know enough about working with servers to know whether the port number can be dispensed with or not.
Thanks for an interesting set of posts.
same question here. I’ve tried masking the port from WP’s perspective by mapping to an external domain, but it seems to be a dead end. Someone must have gotten around this!
I learned to run WordPress locally with this tutorial. I thought it will confuse me but, it’s easy to follow.
Thank you so much for installing wordpress tutorials. finally I could install wordpress
Another questionnaire, the participants’ problem identification and structuring, idea generation, problem elaboration and clarification, such as creativity, problem solving insertion sezkin idea which one’s preferred styles are evaluated. While participants preferred the style of non-disclosure and intellectual development of ADHD, with ADHD, participants chose to produce ideas.
Thnx I will try this to run my moms website locally and do some test befor putting it online. Just what I need.
hi, my wordpress blog is not proper working..i can’t upload any file images, audio & video..my some plugings is not working…check out http://www.wallpapersfuns.com smoothslider its not showing slideshow..i have try also deactivate smooth slider,,and then reactivate it but its not working proper…please help me so many problems in my wordpress blog.
I’m trying to install a local copy of WordPress on my personal computer so I can work offline and later upload my corrected site to my host server. I followed instructions from people who seem to know what they’re doing. This is what I did exactly:
1. I successfully installed MAMP on my local Mac hard drive (Local Server)
2. In the phpMyAdmin page, I create a new database with my site’s name.
3. I went to wordpress.org and downloaded the latest build of WordPress. Went to the htdocs folder (where I installed the MAMP), extracted the wordpress.zip files and moved them into my new site folder (located in ).
4. Inside my new site folder, I renamed the wp-config-sample.php to wp-config.php. Opened the wp-config.php file and updated the database details according to my localhost server (db_name = mysitename, user = root, host = localhost:8889) .
5. At this point, I went to my browser and typed in so I could install WordPress. Instead of the WordPress screen, I got the following message: “The requested URL /mysite/wp-admin/install.php was not found on this server.”
I’m stuck. Please help. How do I fix this?
Thank you.
I am having the same problem.. I went through all of the steps and I can’t open any php files in my browser at all, let along install.php. I always get the message “Not found.”
The servers are on, I did check that. And I went in and changed wp-config they way you said (8888 and 8889) and it still didn’t work. I am starting to get really frustrated, I had this operation working on my PC in minutes, but it has taken me hours of work so far on my mac and I still can’t get it working…
This is my second time around installing wordpress locally and have going through a few (human error) mistakes.
1. Make sure MAMP preferences… is ” /Applications/MAMP/htdocs/ and that is where your folder is.
2. Double check “db_name = mysitename” with MAMP database name, and other file paths are correct. For example, are the wordpress files in a folder within mysite (/mysite/wordpress/wp-admin/install.php)?
p.s My localhost is set to 8889 and is working fine.
Anyways really came here to say thanks for the great tutorials.
Hi Guys, I am running MAMP with multiple wordpress sites and databases locally on my Mac which is great. If I want to get them onto my laptop so I can work on them out and about what to I need to do. Any help greatly appreciated.
Thanks.
Hi for some reason I’m having an error establishing a database connection?
do you know what might be wrong with my database or what I’m doing wrong? I followed your instructions perfectly
Thanx for this post. Thank you so much for installing wordpress tutorials. finally I could install wordpress.. please keep up to date with wordpress ……
Great concise instructions. I’m working on converting our hotel website into WordPress platform. I decided to do it locally, on my machine. But for some reason I constantly get an error while establishing database connection. I’m using WAMP. Should I switch to XAMPP? Is there any difference? – Thanks.
Thanks for the guide. It’s self explanatory. My problem now is that I can’t install a php server in my system. I then used wamp and it installed. Trying to run it, it displays an application error message. What am I to do? Is there any other reputable server that has php server, database mysql and apache. Any help will be appreciated. My email is masterweb4real(64)yahoo(dot)com
This would be the proper weblog for anybody who wishes to discover this topic. You realize an excellent deal of its almost tough to argue along with you (not too When i would want鈥aHa). You really put a brand new spin utilizing a topic thats been written about for decades. Fantastic stuff, just fantastic!
This is the best tutorial I have came across for setting up wordpress locally. The instructions are simple to follow and very clear. A wonderful post will be back to see what else you have to say.
Cheers from Mel
Thank ‘ s For Gui d me how to install WordPress……………..
What a very user-friendly tutorial! I had only 15min and managed to install everything with absolutely no problem. Bookmarked!
Hi,
I was reading your article and I would like to appreciate you for making it very simple and understandable. This article gives me a basic idea of how to install and use wordpress article on local system and it will help me a lot.
Check this link too its also having a collection wordpress article which helped to beginner as well as developer.
Thanks for sharing your article with us.
This is amazing thank you so much for doing this.
But one question, I’d like to get an e-commerce site up on WP using WPEC, do you think I should download the local server XAMPP for my PC?
Is it powerful enough for a e-commerce site?
I’m open to any suggestions, please and thank you!
@javivo
Very useful information. I tried your guide while installing wordpress on my blog and it is successful.
Thanks
I am having great difficulty with WAMP install on my win7-64bit…I hope your tutorial is the answer…Thanks for the simple instructions for a “newbie” on WordPress running locally!
Thanks for the great tutorial.
Everything works fine for me until the actual installation process. So when I go to this address:
‘s site/wp-admin/install.php
It seems like it’s trying to connect with localhost, and after waiting for about 3 minutes all I get is a blank page, instead of the wordpress screen.
Any thoughts that could help?
Thanks
@magge
3 options:
1: did you actually started wamp/xamp?
2: you cant type ‘s in a url so you can try choosing a different map name
3: instead of typing localhost you can try typing ‘s site/wp-admin/install.php
hope it help’s.
have a nice day
ohw forgot to say…. you cant use ‘ in a url and you cant use a space try – instead
Hi,
Thanks for this. I am new to wordpress. local setup is helpful for learners like me. just did it.
regards
vinodh
wow it works !! i can see my site locally . awesome !! now I just have to learn to upload my site to my Godaddy account.. hhmm.. i know how to do this with FTP. but it owuld be cool to do it from withtin Phpmyadmin. or am I missing the point somewhere ?
If you go into your hosting account on GoDaddy you can install WordPress. It’s usually in applications on the right sidebar. It will take you through step by step setting up the database. Once it’s installed you just have to compress your theme and upload it. No FTP necessary. GoDaddy, in my opinion has great customer service so if you need help just call them and they will walk you through the install.
Hello all,
I am waiting for my domain to be transfered, but I would like to staart working on my template.I s there a way to start working on a wordpress design before the website server is pointed?
I dont know how to proceed after step 4. What do I have to type for local host.? it is showing url not found in this server.
Any one help me….
Very nice tutorial, It helps me alot for installing wordpress. Thanks for writing for us :)
Thank you so much for this very clear post. I find that being self taught leaves lots of holes in my theory, and often I read more than I need to get where I want to get. This was so on the money, and I was able to troubleshoot what I did wrong.
Thank you, thank you, thank you,
Marty
Nice Post, i would like to know which one is better, xampp or wamp?? given the fact that my system is a bit slow..
I cannot get past step 2.
I get error 2002 when I try to click on myPHPadmin from the MAMP startup page. I’ve got green lights for Apache and SQL, but I cannot even access myPHPadmin. (I do not have any duplicate processes running in activity monitor).
Any ideas on what to do?
How did you solve it? I have installed xamp and created a new database. When I have to fill in the database, user and password in the wp-config file I create a password in the MySQL database and then it tells me no access. I also have the problem when I dont set a password then it tells me 404 not found…I am very new to MySQL and would really appreciate some help.
Thanks
Thank’s for this (Installing WordPress Locally) great tutorial. I was having a hard time with those.
thanx to help ua to make a bolg
So I’m using XAMPP and I did everything I was supposed to do but then when I insert through my web browser (Firefox) it says, “Problem loading page.” I think there may be something wrong with XAMPP but is there anyone that can help me?
I’ve been having the same problem when I entered the url. A page with the following message “Error establishing a database connection” prompted.
However, after tried a bunch of solutions, I managed to get it to work. In the wp-config.php, where you enter the password, I just left nothing between the apostrophes. It works now!
However, after tried a bunch of solutions, I managed to get it to work. In the wp-config.php, where you enter the password, I just left nothing between the apostrophes.
I tried repeatedly…I uninstalled the WAMP and reinstalled it. There was no htdoc folder, but I put the WordPress folder in the www folder….nothing seems to work for me.
I created the wordpress database in phpmyAdmin….but it never asked me to set a password…I’m SOOOOO confused. Help would be appreciated.
Am using WAMP in windows and am unable to run wp-admin/install.php.pls help me on how to go about it at step 5
Am using WAMP in windows and am unable to run wp-admin/install.php on a local pc.please help me on how to go about it at step 5
I had the same problem after renaming the wp-config-sample i changed the name back then it worked
It definitely is. Adoption rate is already very high and it just the very beginning.