How to Install WordPress Locally for PC/Windows with XAMPP

Setting up a local sever environment on your computer will save you a bunch of time if you regularly test or develop themes and plugins.

Not only will your local sites run much quicker than they would online, but you’ll also have a much safer testing environment away from a live site.

Having a localhost environment has dramatically improved my workflow and is even an important part of my WordPress working life. It’s such a waste of money using an online WordPress installation with a web host as a test environment!

This week we’ve looked at Mac solutions for local machines. Today we’re going to look at XAMPP for Windows, a free, popular and easy to install server environment application that’s open source.

XAMPP
Easily install XAMPP for Windows and run your own local server environment for WordPress.

What is XAMPP?

XAMPP stand for cross-platform, Apache, MySQL, PHP and Perl. It’s a simple and lightweight solution that allows you to create a local web server for testing purposes.

Since XAMPP is cross-platform, it also works on Mac and LInux, but today we’re going to look at setting up XAMPP on Windows 7.

WordPress isn’t a stand-alone application and needs server software to run. XAMPP provides the necessary environment needed to run WordPress on a local machine.

Installing XAMPP

Go to the Apache Friends website and download XAMPP.

Apache Friends Site
Download XAMPP from the Apache Friends website.

The XAMPP file is 125MB. Once downloaded, launch the installer.

You may receive warnings about installing the software on your computer. As you would when installing any software on Windows, use your best judgment.

The XAMPP setup wizard will guide you through the installation.

XAMPP installer
XAMPP setup wizard.

In the next window you will be asked to select which components of the software you would like to install and which one you don’t want. Some options, such as Apache and PHP are greyed out because they are essential to running the software.

It’s up to you which components you want and don’t want. Since I we want to run WordPress on this localhost, I’ll leave MySQL and phpMyAdmin checked and uncheck the remaining options.

XAMPP options
Choose the components of the software you want to install and untick the ones you don’t want.

Next, select the folder where you would like to install XAMPP. I’m going to create a new folder in C:\Program Files\XAMPP.

XAMPP select folder
Select the folder where you would like to install XAMPP.

In the next window you’ll be asked whether you would like to install Bitnami for XAMPP, which offers free tools for installing WordPress, Drupal and Joomla! on top of XAMPP. We’re going to install WordPress manually and without this promotional program, so untick “Learn more about Bitnami for XAMPP” and click “Next.”

XAMPP Bitnami
In this tutorial we’re going to set up WordPress manually, so untick this option.

After going through all those options, XAMPP is now ready to install.

XAMPP ready to install
Almost there…

Once installed, you’ll be asked whether you would like to start the Control Panel. Leave this option ticked and click “Finish.”

XAMPP Control Panel
Installation is quick and painless.

If you receive any security/firewall warnings during the installation process (such as the one below), make sure you check “Private networks, such as my home or work network” and click “Allow access.” This is very important. If you don’t allow access, XAMPP won’t work.

XAMPP firewall and security
Allow access for Apache and MySQL to ensure XAMPP can run.

If you left “Do you want to start the Control Panel now?” checked during installation, the Control Panel will automatically open. If not, go to the XAMPP folder on you computer and open “XAMPP Control Panel”.

XAMPP Control Panel
The XAMPP Control Panel.

Start up both Apache and MySQL. If you have installed XAMPP properly, both components should run fine without any errors, however, if there are any other applications on your computer using the same ports as these modules then you need to quit the conflicting applications using the same ports and restart XAMPP.

XAMPP running smoothly...
XAMPP running smoothly.

You can check if your new local server is installed by visiting http://localhost in your browser.

XAMPP localhost
Localhost is now installed and working!

Setting Up Your MySQL Database

Before we install WordPress, we need a database.

On your XAMPP Control Panel, click the “Admin” button in the MySQL section.

MySQL admin
Click “Admin” to set up MySQL.

A new browser window will automatically open with the phpMyAdmin interface.

XAMPP phpMyAdmin
Click “Admin” to set up MySQL or go to “localhost/phpmyadmin” in your browser.

Click on “Databases” near the top-left and you’ll be prompted to create a new database. I’ve called mine “WP”. When you’ve entered a name, click “Create” and close the window.

XAMPP MySQL database
Quickly and easily set up a new MySQL database for WordPress.

Download and Install WordPress

Download the latest version of WordPress.

In order to get WordPress working with XAMPP we need to unzip WordPress to the right folder. Go to the XAMPP folder on your computer and open the htdocs folder, i.e. C:/Program Files/XAMPP/htdocs.

XAMPP folder
Go to XAMPP/htdocs folder on your computer and unzip WordPress there.

Unzip WordPress into its own folder and rename it whatever you like. For consistency, I’m going to call this installation of WordPress “WP” to match the name of the database I just created.

Install WordPress
My installation of WordPress is called “WP.”

Open your WordPress folder, find the wp-config-sample.php file and rename it wp-config.php. Open the file and scroll down until you see the following lines:

wp-config database details
Update your wp-config.php file with your database details.

These lines of code define the login details for your database. Replace “database_name_here” with the name of your database, which in my case is “WP.”

Replace “username_here” with “root” and leave “password_here” blank.

Save the file and close it.

Now we can get on with installing WordPress.

Open your browser and go to http://localhost/wp/

You should see the welcome screen for the famous five minute WordPress installation process.

Famous five minute install
Set up WordPress using the famous five minute install process.

Enter your details and click “Install WordPress.”

Your WordPress installation is now complete!

Setting up WordPress Multisite

Having Multisite setup on a local machine provides a great way to test themes and plugins in a Multisite environment, but also makes it a quick and easy to have multiple sites running at once.

Open your wp-config.php file again and add/edit the following lines to activate Multisite’s installation mode:

Activate Multisite
Activate Multisite installation mode.

Open XAMPP and ensure your Apache and MySQL servers are running.

Login to your localhost site in your browser and under “Tools” you will now have a new option, “Network Setup.”

Network setup
Enabling Multisite will add a new “Network Setup” sub-menu item to WordPress.

Enter a name for your network and your email address, then click “Install.”

WordPress will prompt you to edit your wp-config.php and .htaccess files.

Following the onscreen instructions, open wp-config.php and add the following lines underneath your previous edit:

Multsite wp-config
Edit your wp-config file to get Multisite up and running.

Next, open .htaccess. If you can’t find it, make sure hidden files are displaying on your computer.

Your .htaccess file should look like this:

Edit .htaccess

Edit your .htaccess file to complete your Multisite installation.

Multisite should now be enabled and working on your WordPress site!

Multisite network
Your Multisite network should now be up and running!

Summing Up

XAMPP provides an easy way to run a local server environment on your Windows machine, allowing you to test and develop locally, rather than installing WordPress online. It will also save you a bunch of time since you won’t have to install and uninstall WordPress each time you test themes and plugins.

The great thing about XAMPP is that it’s free and also open source. You can set up as many installations of WordPress as you want and it’s just as easy to set up Multsite.

Next week I’ll look at how to set up WAMP, another popular option for setting up a local server environment for Windows.

Do you use XAMPP? Tell us in the comments below.

111 Responses

    Mika

    Great tutorial!

    Have you considered making a video showing how to set up MAMP PRO to work as a server so developers can show their “work-process” to clients without needing to upload the database and files to another server?

    Sincerely,
    Mika

    gary_ndco

    Thanks for this info on setting up WordPress. I have followed each step but obviously have a problem.

    When I get to:

    Now we can get on with installing WordPress.

    Open your browser and go to http://localhost/wp/

    I get an error message saying: Error establishing a database connection

    I have checked the name of my database, the .php file edits, just can’t seem to see where I have gone wrong. Any help would be greatly appreciated.

      Raelene Wilson

      It looks like MySQL isn’t working properly. Are the database details in your wp-config.php file correct? Is the database name the same as the name you of the database you created in phpMyAdmin? Is the username root? And did you leave the password blank?

    gary_ndco

    Database is named wp
    Folder in htdocs is named wp

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wp’);

    /** MySQL database username */
    define(‘DB_USER’, ‘ROOT’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘ ‘);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    everything seems to be right, but obviously isn’t

    gary_ndco

    Yes they were, but I just stopped them and started them again but got the same error message

    11:22:50 AM [Apache] Attempting to stop Apache (PID: 1576)
    11:22:50 AM [Apache] Attempting to stop Apache (PID: 5976)
    11:22:50 AM [Apache] Status change detected: stopped
    11:22:51 AM [mysql] Attempting to stop MySQL (PID: 7088)
    11:22:51 AM [mysql] Status change detected: stopped
    11:22:52 AM [Apache] Attempting to start Apache app…
    11:22:53 AM [Apache] Status change detected: running
    11:22:54 AM [mysql] Attempting to start MySQL app…
    11:22:54 AM [mysql] Status change detected: running

    gary_ndco

    Can I please tell you that the info in that post fixed my problem. I edited the “users” as per that post and I now have the WordPress installation screen.

    Hopefully I can follow the rest of your instructions above with no more problems. Thanks for your help

    gary_ndco

    Through the rest with all things looking like they work OK.

    Now the new task of learning how to create sites and import themes into WordPress. Do you have any recommendations? I have created sites using HTML/CSS but am totally new to WordPress.

    Thanks again

    gary_ndco

    Just to get started, I probably wanted to be able to import a theme (probably just a free one to practice) and then be able to customize. Need to practice finding my way around WordPress.

      Raelene Wilson

      The best place to start is the WordPress Theme Repository: https://wordpress.org/themes/

      I’ll have to leave you there since we’ve now ventured outside the scope of this article. Good luck with WordPress! If you need any support, you may want to consider signing up for a WPMU DEV membership. Our support team are much better than me at helping out users :)

    lakshman_teja

    Nice info explained in a well detailed way. I just installed Xampp and thinking that I had wp installed on Local host. After reading this I setup my test sites on Local host and started running them. Thanks a lot for the article.

    Ali Sajjad

    Thanks for the well explained, This improve my knowledge to install WP at localhost.

    But why it showing ftp credentials errors at uploading any theme or plugin?

    bluee_smith

    Thank you for explaining how to install wordpress and xampp locally!

    I have successfully installed xampp following your steps. I then downloaded the wordpress zip and extracted it in hotdocs folder under xampp, as you suggested. I also renamed the wp-config-sample.php to wp-config.ph and then opened the file and edited the information for username, database, password. Then save. However, when I try to access http://localhost/nameofmydatabase the page doesn’t connect, the browser says url not found, error 404. I have even repeated the process of creating a new database first with xampp and then extracting wordpress again and editing the wp-config.php but I get the same error when trying to access the url.

    I don’t know if I have missed a step or if there’s another problem. Do you know how I can access the url to run wordpress?
    Thanks in advance!

    bluee_smith

    Now I am getting “error establishing database connection” even though MySQL and Apache are both running. I don’t know how to solve this :(

    james_cannan

    Thanks for a great tutorial. Worked almost perfectly.

    I copied what was in your .htaccess and made the alterations to wp-config.php but they didn’t work. I found If you follow the wordpress instructions when clicking ‘Tools->Network Setup’ it works fine.

    Any recommendations on how we can sync the local wordpress site with a online website?

    Jon

    I need some help with the setting up.
    The installation is successful, but when I enter “http://localhost” I get error.
    I using WIn7 and I have IIS installed

    The error is:
    IIS 7.5 Detailed Error – 500.52 – URL Rewrite Module Error.
    Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded (“gzip”).

    How I can fix this?

    giacoma_russo

    Hello,

    I cannot seem to figure out why I am getting this error when I connect to localhost

    Object Not Found.

    I have followed the instructions here.

    Also, for some reason I am not able to download xampp or wordpress to program files and I am forced to download to the C:\ I get a warning that the folder is full or something like that, could that be making a difference?

    dan_hamilton

    Hi, I am having trouble adding multiple sites to the page… I manage to add them but get the following:

    “Access forbidden!

    You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

    If you think this is a server error, please contact the webmaster.

    Error 403

    localhost
    Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15″

    I can access the original site but not any that I add… strangely even though they appear added when I click ‘add site’ I also get a message saying “There is no disk in the drive. Please insert a disk into drive \device\harddisk2\DR2″ I hit cancel/continue a few times and it goes away but does add the site to the list but doesn’t work anyway.

    azzie_elbub

    how do i fix this?

    Server error!

    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

    If you think this is a server error, please contact the webmaster.

    Error 500

    localhost
    Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15

      Tyler Postle

      Hey Kayla,

      Hope you’re doing well today. I realize this comment is from quite awhile back, but are you still having any trouble here?

      Are you referring to the wp-config.php? If you’re working locally then you don’t need to re-load it, just save it :) then navigate to that folder destination through your browser starting at http://localhost

      “I don’t have a domain or host yet. Is that required to follow your steps?”

      The brilliant part about working on localhost is that you don’t need either of those, because your computer is the host :)

      Let us know if you have any further questions. Hope the rest of your 2014 was awesome and wish you all the best in 2015!

      Cheers,
      Tyler

    Anna

    This is a great tutorial and I got everything set up with Multisite without an issue. Of course now here is where I get confused up:

    The sites I have already exist outside of this and the localhost was setup as an after thought as the sites got more involved and needed customization. I’m not sure where to put the files for the separate sites. Do you have a tutorial for that?

    emily_ann

    Awesome article. I really need help though and am hoping someone can take a moment to help me. I’ve been working on this all day and am very frustrated. I followed the instructions to a T and recieve the error “object not found” ….requested URL is not found on this server. For sure I’ve spelled everything correctly. The only thing I can think of that might have goofed things up is at the step when you click “admin” on mysql to create a database…..well clicking “admin” didn’t open the browser so rather I went to localhost and selected the option to go directly into phpmyadmin. From there I created the database exactly as it was detailed in the article. I unzipped the wordpress into the htdocs folder and edited the wp-config file. I left the password blank, set root as admin, and specified the database I just created in phpmyadmin…..

      Tyler Postle

      Hey there Emily,

      I see you posted this quite awhile ago, but do you still need any further help with this? :)

      Is it when you try to visit http://localhost/wp or whatever you named the folder you installed WP in that the “object not found” error happens? or is it after you have entered in the all information to begin the setup?

      Let us know if you still need further help with this.

      Cheers,
      Tyler

    Matt

    Hi, I’ve been able to download wordpress and xampp fine but am running into a bit of an issue.

    In order to use the full wordpress editing site, you need to have gone to http://localhost/wp/ and installed wordpress which creates a new website. However, is it possible to download wordpress and connect it with a local site? I moved all of my local web files to xampp/wp, and I can see the webpage fine when I go to localhost/wp, but the only way I can edit it is by editing the actual files (as opposed to using the much nicer wordpress site layout). I might be misunderstanding something, but is downloading wordpress to a local site possible?

      Tyler Postle

      Hey Matt,

      I see this comment is from a little while ago, are you still having any issues here?

      I’m not sure if it would cause any issues but better to install WP in a different folder other than the XAMPP one, if your setup is still default then htdocs is likely your root. What I like to do is create a folder inside that one called “sites” or something like that, then have all my sites there or you can create folder categories, up to you :)

      “but the only way I can edit it is by editing the actual files (as opposed to using the much nicer wordpress site layout).”

      I’m not sure what you mean by this. What are you trying to edit exactly? Are you wanting to use the WordPress editor? You should still be able to use that :)

      If you still need any further help with this just let us know.

      Cheers,
      Tyler

    john_warren

    Most excellent post – Thanks for the great information and making it easy to get a local setup!
    I’ve followed your instructions for a multi install of wp sites and everything went well with editing the wp-config.php and htaccess –
    However when I log into WP admin, there are a whole lot of errors:
    (Just a sample):

    Notice: Trying to get property of non-object in C:\xampp\htdocs\WP\wp-includes\capabilities.php on line 1168

    Notice: Trying to get property of non-object in C:\xampp\htdocs\WP\wp-includes\capabilities.php on line 1169

    Notice: Trying to get property of non-object in C:\xampp\htdocs\WP\wp-includes\capabilities.php on line 1169

    Notice: Trying to get property of non-object in C:\xampp\htdocs\WP\wp-includes\capabilities.php on line 1172

    etc etc…

    Do you have any idea what they mean and how I can fix?

    Thanks

    John

      Tyler Postle

      Hey there John,

      Hope you’re doing well today!

      I’m not a developer myself, so not exactly sure what the issue is from a developers stand point; however, in general php notices are harmless and won’t cause any issues – more meant for developers to use while debugging.

      You likely have wp_debug set to true in your wp-config.php right? If you set that to false it will hide the notices and you can continue using your site without any issues :)

      Here is more info on wp_debug: http://codex.wordpress.org/WP_DEBUG

      All the best,
      Tyler

    amanda_beard

    I just want to say that this was so simple to follow. Being a web developer familiar with CSS/HTML but not much of anything else…this was a challenge I spent hours agonizing over.

    After finding this tutorial, it was such a blessing! <3

    As for those looking for a way to show a client progres…I use Skype ScreenShare. It (more often than not) works like a charm. I just clear all my windows, open all my clients project information, and BAM! Ready to go!

    Anyway, I really, really appreciated this.

    Would Multisite be how I eventually take the WP live?

      Raelene Wilson

      I’m glad you found the post valuable. Having a localhost setup is definitely the best way to test themes and plugins.

      You don’t necessarily need Multisite. I really depends on what kind of site you’re setting up.

    spencer_jones4

    Each time I try and download wordpress from any source the menus are in Spanish or latin1. How can I correct?

    How can I delete numerous databases I created, all with no tables, trying to get an English version?

    Thanks.

      Tyler Postle

      Hey there Spencer,

      Hope you’re well today!

      I see this comment is a little old now, but just in-case you still need any assistance with this:

      You can remove databases from phpmyadmin by selecting the database then going to:

      Operations > Remove database.

      As seen here: http://stackoverflow.com/a/24035555

      As for your menus being in Spanish whenever you download WordPress, do you mean when you install and setup WordPress the menus on your site are in Spanish? You can change the WP language from:

      Settings > General.

      Or are the menus from somewhere else in spanish?

      If you do still need help with this just let us know!

      Cheers,
      Tyler

    russ_hendry

    Could not have done this without you!
    In fact your Multisite edits to the config file work. What WP 4.0.1 tell you to add in the dialog box don’t! It’s flawed.

    Winnie

    Hi, thank you for this great information. Everything works perfectly except when I now go onto my sites>network admin. When I click on this it says object not found, also when I click on network admin> sites, it also says object not found. I want to add new sites besides my principal site but have no idea on how I’d do that.

    Please help.

      Tyler Postle

      Hey Winnie,

      Are you still having this issue?

      I just tested this out myself on my localhost and I didn’t get that error.

      When you entered the .htaccess code during network setup, did you make sure to replace everything that was original between the “#begin wordpress” and “#end wordpress” lines?

      Perhaps double check that because if not then it could mess up your links.

      If that is all fine then you can also try re-saving permalinks just in-case:

      Settings > Permalinks.

      If you are still having an issue then just let us know :)

      Cheers,
      Tyler

    usama_arshad

    Raelene, it was a great tutorial. I followed each and every step but got stuck in the middle.
    When I type localhost/wp in my browser it shows “Database Error”, although I did everything stated in your tut. Oh, one thing I did change was rather installing XAMP in mandatory “C” disk, I installed it in another one. But I wonder, whether it would had impact.
    Do help with this.
    Thank you.

      Tyler Postle

      Hey Usama,

      I see you commented this a little while ago so you may have got this all sorted by now, but if you haven’t then let us know and we can help out :)

      “Oh, one thing I did change was rather installing XAMP in mandatory “C” disk, I installed it in another one. But I wonder, whether it would had impact.”

      This shouldn’t be a problem. I have it installed on the D drive myself :)

      The likely cause of this is the database was setup incorrectly inside phpmyadmin or the database name doesn’t match. Make sure the name you listed in your wp-config.php matches the one you created inside phpmyadmin.

      Let us know if you still need any assistance with this!

      Cheers,
      Tyler

    pepper_skull

    Thanks for the thorough tutorial! I am having an issue setting up multisite. I changed and added the appropriate lines in the wp-config.php file but when I login to the localhost site, there is no network setup option under tools. I’m using WordPress 4.1 Everything is running fine and I tried clearing the cache. Any suggestions?

      Tyler Postle

      Hey Pepper,

      Hope you are well today.

      Are you still having any issues with this? It sounds like maybe the define was entered incorrectly. Did you make sure you pasted it in above this line:

      /* That’s all, stop editing! Happy blogging. */

      If you’re still having any problems just let us know :)

      Cheers,
      Tyler

    david_myers

    Hi Raelene,
    Thanks for this, everything went according to plan until I edited the wp-config.php for the network setup now I’m getting the following message:

    Notice: Constant MULTISITE already defined in C:\xampp\htdocs\wordpress\wp-config.php on line 84

    and there’s no “Network Admin” option.

    Thanks for your help
    David

      Tyler Postle

      Hey there David,

      Hope you’re doing well today! Are you still having this issue?

      Sounds like you might have the multisite constant defined twice in your wp-config.php.

      Check for this line showing twice:

      /* Multisite */
      define( ‘WP_ALLOW_MULTISITE’, true );

      Before the network admin will show up you need to go to:

      Tools > Network Setup.

      I’m thinking you have likely sorted this by now, but if you haven’t then just let us know and we can help out :)

      Cheers,
      Tyler

    david_myers

    Hi,
    Now when I go to edit/add posts I get a banner appear offering me “Distraction-Free Writing” which I can’t get rid of, clicking on the x or “Dismiss” has no effect, even trying to use the distraction-free writing doesn’t remove the banner! Any ideas?
    Thanks
    David

      Tyler Postle

      Hey again David,

      Responded to your last post before I saw this one :p

      Again, I’m thinking you might have this sorted by now, but if not less us know and we can help out further. This could be an issue with your server setup, it will be kind of difficult to troubleshoot without seeing it.

      You may want to open up your java console and check for Js errors too. You can open the console in Firefox or Chrome by going to developer tools then clicking browser console :)

      Refresh the page and see if any errors come up.

      Let us know if you still need any further help with this!

      Cheers,
      Tyler

    Dilan

    I have a problem “Open your WordPress folder, find the wp-config-sample.php file and rename it wp-config.php. Open the file and scroll down until you see the following lines:”

    I have renamed the file and double click to open. but it asks ” How do u want to open this tipe of file “PHP”

    so i stuck here. please help me to slove this problem.
    Thank you.

      Ralph

      I’m seeing that many including myself are all above average individuals with great mental capacity…and yet many are having problems getting this to work ..I see that you too get stumped as to why this is happening to so many individuals… hmmmmm!

      why are so many having problems getting this to work right.. perhaps many of us aren’t really as smart as we think…. Ay! it seems all these name line changes can be rather daunting much like running through a standing corn maze never knowing where one is going to wind up… hoping that at the end of this download ordeal we just might find an Ah-ha moment… fat chance!

      I have deleted and re-installed this marvel of a software package 3 x’s and each time I have carefully followed your long winded instructions.. scrolling and scrolling almost to the point where the finger on my mouse wheel developed a freakin cramp..

      Are u kidding me ..
      you call this easy!
      I’m gonna continue trying but without your help.. no doubt… I know a person who uses this XAMPP thing and he says he loves it.. so I guess someday I’ll get to love it too… but not today…
      you have to wonder why internet marketing is going by the wayside for millions of wannabees
      who aspire to a new opportunities only to find that nothing really works for them ..I see this everyday… Do you wanna make it? ….then make it !
      because no matter what you say …. so find it easy and some dont…. Ay!

        Raelene Wilson

        Hi Ralph,

        I don’t doubt your great mental capacity at all! XAMPP is a great server environment, but it does take a bit of setting up and it’s easy to run into problems if you have a firewall set up. I spent a week setting up and testing different local host environments for several different articles and XAMPP took the longest time to set up. Unfortunately, it’s difficult for me to answer everyone’s questions without spending a lot of time delving into readers’ Windows setups. This is why I’ve suggested to many commenters that they check out the Apache Friends forums: https://www.apachefriends.org/index.html

        If you’re still having trouble setting up XAMPP, I would highly recommend using DesktopServer instead. There’s a free version available and the guys who develop it are fantastic. It’s super simple to set up and you’ll wonder why you even bothered with XAMPP :)

        http://serverpress.com/products/desktopserver/

        Cheers,

        Rae

          Ralph

          No… I’m gonna keep trying… if it works then it works.. but I feel an advisory about the time this takes is in order….
          I feel the problem lies in the fact that the execution instructions are laid out way too far apart and as result one doesn’t realize which folder is what for example when you say “Open your WordPress folder, find the wp-config-sample.php file and rename it wp-config.php” Its easy to confuse this… and other folder name changes… there for a while I didn’t even realize that the WordPress zip file wasn’t even transferred over to the Xampp folder or whatever.. I have no idea where it went….so I have decided to re-write your instructions on one single sheet of paper so that I can easily view all of the folder changes and name changes as opposed to endless scrolling and losing my place in the order for each step is to be executed…
          The same goes for your comment pages currently its about 2 miles long… scrolling to get to the bottom is quite a trip. !
          cheers!

      Tyler Postle

      Hey Dilan,

      Hope you’re having a great day :)

      “I have renamed the file and double click to open. but it asks ” How do u want to open this tipe of file “PHP” ”

      Have you got this sorted out yet? You will want to use a text editor like notepad. Notepad++ is a good free one too if you’re on Windows. If you want to try some other more advanced text editors you could check out coda and/or sublime :)

      Hope this helps!

      Cheers,
      Tyler

    Ralph

    Hello again.. can you please assist…… I’m almost there… !!!!!!!! have manged to see the WP intro page ..this is good….. Xampp is running ..however your WP page sample is not the same as mine…..most likely an older version…. I have questions???? please see below…..

    Below you should enter your database connection details. If you’re not sure about these, contact your host…… who is the host?…. me?
    I named my database but I’m not to sure about the rest of the fields.. I keep getting the following “Error establishing a database connection”
    the database never did ask me for a username? am I suppose to create one.. I have done that and still no match..?????

    http://localhost/rjramwp/wp-admin/setup-config.php?step=0

    Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

    Database name
    Database username…… never saw anything until now for a username.. just insert anything????
    Database password…… your instructions said to leave this blank.. however I did create one????
    Database host…… have no idea what to call this…. right now it says local host????
    Table prefix…… wp_ ???? (if you want to run more than one WordPress in a single database) multiple WP sites… perhaps in the future…

    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the database.

    Are you sure it exists?
    Does the user have permission to use the database?
    On some systems the name of your database is prefixed with your username, so it would be like username_RJRamWP. Could that be the problem?

    what in the world is going on here????????????????????????????????????????????

    now I cant get back the MYSQL pages…

    Quite frankly this is annoying as hell ..its one thing to get things wrong and to insert files into wrong folders but its another when it doesn’t even tell you what in the world d you did wrong…

    How inconsiderate????

      Tyler Postle

      Oops, hey again Ralph, I saw your last post before this one :p I guess working my way up is a bad idea. haha.

      Anyways, as for the sample:

      “Database name
      Database username…… never saw anything until now for a username.. just insert anything????
      Database password…… your instructions said to leave this blank.. however I did create one????
      Database host…… have no idea what to call this…. right now it says local host????
      Table prefix…… wp_ ”

      Database name is the one you chose
      database username is usually “root” by default, unless you made a new one.
      database password you can usually leave blank, but sounds like you might have created one so you can enter that

      database host – keep it as localhost :)
      table prefix: I would just leave as wp_ It’s unlikely you would add another WordPress into the same database, what you might do at some point is change your site into a multisite install which is sort of like having multiple sites in the same database but they are all connected/networked together and you won’t have any prefix conflicts :)

      If your database did ever get too big then we have a plugin called Multi-DB that lets you split it into several DB’s to speed up your site. That really shouldn’t even be considered until you have 5k+ sites though. https://premium.wpmudev.org/project/multi-db/

      Let us know if this helps get you going. As mentioned below, if you need further assistance just let us know!

      Enjoy the rest of your weekend :)

      Cheers,
      Tyler

      Tyler Postle

      Hey there Ralph,

      Hope you’re doing well today :)

      You can get to your phpmyadmin settings via:

      http://localhost/xampp

      That is the default on install anyway, so unless you changed any folder names you should be able to go there. That will take you to the xampp splash screen then on the left hand side there will be a link for phpmyadmin.

      Hope this helps Ralph! Let us know if you need further assistance.

      All the best,
      Tyler

    Ralph

    Hello Tyler
    ..thank you for helping… looks like I have most of this correct… except for this fact..
    This is what comes up when I enter
    http://localhost/rjramwp/wp-admin/setup-config.php
    I named my database ” rjramwp”
    I also created my own user name rather than ROOT
    and I also created a pass word
    when I enter http://localhost/rjramwp I get the following..
    from this point I do not know what to do…

    ” We were able to connect to the database server (which means your username and password is okay) but not able to select the rjramwp database.
    Are you sure it exists?
    Does the user colorad03 have permission to use the rjramwp database?
    On some systems the name of your database is prefixed with your username, so it would be like username_rjramwp. Could that be the problem?

    What do I do from here?

      Tyler Postle

      Hey Ralph,

      Thanks for your reply!

      “I also created my own user name rather than ROOT
      and I also created a pass word
      when I enter http://localhost/rjramwp I get the following..
      from this point I do not know what to do…”

      It sounds like your new database user doesn’t have proper permissions to the database. You will want to go to mySQL in your xampp installation and then to the mySQL users and manage the permissions for the one you created and grant it all of them :)

      That should sort out the issue. Let us know if you’re still having further problems.

      All the best,
      Tyler

    Ralph

    Hello Tyler…
    OMG
    Is there any way you can come into my PC so that you remotely view what I have..???
    That would be fabulous… I even buy you lunch if it suits you…

    When I go to the mySQL I do not see mySQL users as you suggested…

    when I enter http://localhost/rjramwp…. it takes me to the opening WordPress page
    it is here that I run into a road block….

    when I enter https://localhost/xampp/…. it takes me to the congratulations page
    On this page I can now enter my “phpMyAdmin” page
    On this page when I click database it says I dont have any privileges… and wont even let me create a new database… I have literally clicked every freaking link on the “phpMyadmin” page and nowhere on this page do I see user permissions nor do I even see the database that I originally created rjramwp

    _______________________________________
    when I view my control panel in XAMPP
    I can read the following

    “””””You are not running with administrator rights! This will work for
    11:18:39 AM [main] most application stuff but whenever you do something with services
    11:18:39 AM [main] there will be a security dialogue or things will break! So think
    11:18:39 AM [main] about running this application with administrator rights!

    Now that I know I dont have any admin rights where do I give myself admin rights… I have no clue?
    Its not that i dont have a clue …. We can all read ..Personally I believe that the configuration and navigation as to how to do things is so convoluted that only people like yourself and other full time gurus can actually do this.. I’m sure it is easy for you…
    People like me who do not have this experience suffer tremendously and we always find ourselves at the mercy of of others just to accomplish the most infantile tasks…
    Its amazing… how such a simple click here and there can almost always resolve the most mundane issues.. As I say in my industry its not that we dont know how to do….. its knowing what not to do… In my case I dont know how to do and I also dont know what not to do…

    At this point I’m going on about 2 weeks just to get XaMPP going …do you think I should just hang it up and go play checkers or chess with some one in Central Park… this would certainly be more entertaining and relaxing to say the least…

    Are you able to remotely enter another PC… I could use the help…
    Still lost in the mountains

    Rgards

    Ralph

    Heres another page that’s a bit confusing for me…
    “””””” ______________________________________________________
    This page gives you a quick overview about the security status of your XAMPP installation. (Please continue reading after the table.)
    Subject
    Status
    These XAMPP pages are accessible by network for everyone UNSECURE ?
    Every XAMPP demo page you are right now looking at is accessible for everyone over network. Everyone who knows your IP address can see these pages. ?

    The MySQL admin user root has no longer no password SECURE ?
    PhpMyAdmin password login is enabled. SECURE ?
    A FTP server is not running or is blocked by a firewall! UNKNOWN ????
    A FTP server is not running or is blocked by a firewall!
    _________________________________________
    I’m looking but I cannot see.. what does the above mean?
    Obviously I must have entered something wrong…. some place

    Ralph

    Is this correct???

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘rjramwp’);

    /** MySQL database username */
    define(‘DB_USER’, ‘colorad03′);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘seas0n49′);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    perhaps I should change something here????

    Ralph

    How do I get permission to use my database.. how do I access my database in the local host page…..
    If you get a message like this (below) what would you do ?
    ____________________________________________________________
    We were able to connect to the database server (which means your username and password is okay) but not able to select the rjramwp database.

    Are you sure it exists?
    Does the user colorad03 have permission to use the rjramwp database?
    On some systems the name of your database is prefixed with your username, so it would be like username_rjramwp. Could that be the problem?
    _________________________________________________

    Fairly simple message… wouldn’t you say! … sure would be nice if some little cloud would hoover over this message to say do this ..do that..
    the problem is when you do exactly as what is suggested …. it still doesn’t work.. duh!

    Have I bored the hell out of you folks with my nearly insane questions and remarks…. I know if i was on the receiving end of these comments.. I would certainly wonder?
    But I would appreciate a logical answer.. an answer that will prove to be a success instead of a disappointment.

    Still lost in the mountains?:

    Tyler Postle

    Hey Ralph,

    Hope you’re doing well today and thanks for your detail here :)

    I’ve created a screencast to illustrate. I would recommend following my screencast and create a new database user, might be easier than editing your existing one: http://screencast.com/t/Mjr5TffylFCV

    For that screencast, I already had my wp-config.php open in notepad, you will want to open that file from the root of your WordPress install and edit the database/user/password according to what you have setup in phpmyadmin – video above should walk you through that.

    If you’re still having any trouble then let me know which part of the video isn’t working for you and perhaps I can go into some more detail for you where needed :)

    As for your security concerns:

    “The MySQL admin user root has no longer no password SECURE ?
    PhpMyAdmin password login is enabled. SECURE ?
    A FTP server is not running or is blocked by a firewall! UNKNOWN ????
    A FTP server is not running or is blocked by a firewall!”

    It looks like you already secured phpmyadmin and mysql by giving them both passwords. If you followed Rae’s guide above then the FTP unknown part won’t matter, the reason it is unknown is because it was never installed when you setup XAMPP :) so it doesn’t know whether it’s secure or not because it can’t find it. In other words, you don’t have to worry about that part.

    Look forward to hearing back!

    All the best,
    Tyler

    Ralph

    Thank you so much Tyler… I’ll view the vid and let you know… Juts a quick note:
    I was on the Word Press.org support line.. and I was amazed to see that even as far back as 6-7 years ago.. this same issue of ” no database can be found” was baffling even the best of the best.. Unbelievable… One thing caught my eye… this “localhost” label doesn’t jive with the files.. I really couldn’t understand what this meant but my point is that the set-up for Xampp is in dire need of repair…
    Its like anything else in life.. ask enough people to execute anything with a belief that everything is going to work or should work … and if a high percentage of errors come back to the source my deduction would be that the program set-up is so convoluted from the start… wouldn’t this conclude that there is something wrong… perhaps we’re all idiots.. who knows all I know is that I do know how to read, I do know how to execute, I am somewhat analytical by nature…so go figure? what else is left?

    I’ll let you know how your screen-cast worked out for me…

    Thanks again

    Ralph

    Ralph

    Well …..so far no luck.. it appears as though your phpmyadmin page on the screencast is different than the one I have.. this is very chilling …. I could swear up and down the courtroom that I downloaded the latest version of XAMPP Version 5.5.19 [PHP: 5.5.19]
    about 2 weeks ago or didn’t I ?????
    The more I submerse myself into this the stranger it gets..
    take a look at 2 screenshots I hope you can view it…

    file:///C:/Users/Owner/Dropbox/Screenshots/Screenshot%202015-02-23%2013.23.55.png
    file:///C:/Users/Owner/Dropbox/Screenshots/Screenshot%202015-02-23%2013.32.00.png..

    here is what my phpmyadmin page looks like, slightly different than yours I’d say…. I honestly believe mine is corrupted .

    I noticed on yours there is a tab for users.. my phppage doesn’t even have a tab for users…
    my php page wont even let me create a database… it says I have no privileges

    The sad part about all of this, these so called software programs, offer no back door or escape mode…
    I did noticed that there’s is an update for phpmyadmin .
    should I be concerned about that? Is your phpmyadmin an updated version ? I tried looking for a link to update but I couldn’t find one? no surprise there…..after all, we are having so much fun why stop there.

    The only thing I have to say.. still lost in the mountains

    Ralph

    Hey Tyler…. you dont have to help me anymore… I’m deleting this XAMPP from my hard drive…
    This EDITED up I’m sick of it..
    I’ll just continue with my standard hosting … another good day gone by… EDITED

    Ashu Malik

    Well that was in fact the best tutorial to install Xampp and WordPress and I used it for my blog.
    Thank you guys ! I am a beginner and you helped me a lot.

    Ralph

    Hello…

    Does this Xampp really work or is this software some kind of trick…
    I have downloaded and deleted the latest version of Xampp several times now.. I have also my established a database and It is listed on on my local host.. http://localhost/phpmyadmin/
    I have downloaded the latest version of WordPress 4.1.1 and I believe its installed in the correct Xampp / htdocs folder….and yet when I go to the http://localhost/rjramwp I do receive the WORDPRESS set up page…
    except for the fact that it was not able to establish a database connection..bummer! even though I followed all the instructions explicitly still no show…

    The problem I have found is that if you do not use a password… then leave the password field blank… you see… I have found that the simplest of details does make a difference…

    for a while the word “password” was in plane view never thinking to remove it …. then I removed the word “password” and left the field blank… and guess what.. I now have XAMPP installed on my local PC box… no more tears, no more late night crying and feeling sorry for myself ..no more bashed in knuckles from pounding the walls with frustration… VIOLA my friend… it does work… I did it and now I am happy… Just thought the crew here would like to know that… I have been wanting to have Xampp / wordpress installed for many months now so that I can test and create… and finally..I got it.. Hope this helps! I know others have similar frustrations.. I’m here to say that there is a dim light at the end of the tunnel…

      Raelene Wilson

      Ralph, I want to give you a big hug and a high five!

      I’m so glad you worked out how to get XAMPP running. You are definitely the most patient person I’ve ever known! I’ve never known anyone to persevere with software the way you have. It’s a shame it takes so much mucking around to get XAMPP running. Hopefully what you’ve been through will help others who come across this post and read your comments.

    Jude

    Hello, have done everythng to the letter 8 hope. Deletted and rentslled lke several tmes. When fnally managed to get to the part where fill in the wp-config.php part, i got stuck

    below are my nputs,
    The name of the database for WordPress */
    define(‘DB_NAME’,’wp’);

    /** MySQL database username */
    define(‘DB_USER’,’ROOT’);

    /** MySQL database password */
    define(‘DB_PASSWORD’,”);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’)

    what dd do wrong, after this the result get from the http://localhost/wp page is
    Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.

    Help out please

      Tyler Postle

      Hey Jude,

      Are you still having any troubles here?

      It sounds like it is connecting to the db correctly, as it’s trying to walk you through the setup for that again. Try adding the default wp-config-sample.php back into your installation – remove the wp-config.php you edited for now. Once you visit the site it will walk you through the wp-config setup by asking you for the db name and such :) see if that does the trick.

      Let us know if you need any further assistance.

      Cheers,
      Tyler

    David

    Well, it’s been a very long day, competition for port 80, a register that insisted my old MySQL folder was the correct path, so I learned a lot about MS I never wanted to know;
    However, my last install worked…up to the point where:
    8:02:00 PM [main] Starting Check-Timer
    8:02:00 PM [main] Control Panel Ready
    8:05:13 PM [Apache] Attempting to start Apache app…
    8:05:13 PM [Apache] Status change detected: running
    8:05:22 PM [mysql] Attempting to start MySQL service…

    And then…NOTHING. It’s been 15 minutes. Does anybody have an idea?
    Still, this one of the clearest tutorials I’ve ever seen; well done!

    David

    Update: Success!
    I deleted everything, and downloaded from another source. Worked just fine, but I’ve got IIS7 showing up on my localhost.

    Inch by inch…

    mpress

    Hi,
    Thanks for this explanation!
    I was able to install XAMPP with your explanation :-) and also from somewhere else (I have my localhost installed in a usb drive).
    I did got some issues, some error messages, not being able to access database, not being able to see my subsites, subdomains under “my sites” option (but by de sites list from network), not able to go to the subsites dashboard….. and so on….
    After a lot of searching here(wpmu) and also at the wordpress forums I got the conclusion that, at least for me, it was a question of having the “.htaccess” written in a good way.
    I did copied “.htaccess” info from my fresh WP installation (from “network setup”), and here is/was the problem…
    the code from “network setup”:
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) D:/Programs/xampp/htdocs/H4Net/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ D:/Programs/xampp/htdocs/H4Net/$2 [L]
    the code I was advised [from someone else] to use :
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) H4Net/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ H4Net/$2 [L]
    Where “H4Net” comes from here: http://localhost/h4net/wp-admin
    And it did work for both of my multisites (with subsites[localhost] and the other one with subdomains [webhost].

    So, in my case I would suggest WordPress to have a good look at the “htacces” code given by the network setup. At least, in my case this was the BIG problem….

    I hope it can help someone else too.

    Cheers

    Roya

    Thanks for this really detailed guide. I cannot open my wp-config.php file for some reasons. When I click on it to open, it takes me to where you have to choose the right program to open with. What should I choose then? Why am I not able to open the file?

    Thanks!

    Bruce

    Very easy to follow tutorial so thank you.

    I also got stuck on the password until I realised that I had to delete the contents but quickly solved.

    My issue is that I have been installing this so that I can download an existing website of mine, make some changes to make it fit a new domain and then want to upload to that domain. My question is what information I should be entering when I get to the five minute famous WordPress installation process?

    Wayne

    2015-03-27 00:32:41 7008 [ERROR] InnoDB: C:\xampp\mysql\data\ibdata1 can’t be opened in read-write mode
    2015-03-27 00:32:41 7008 [ERROR] InnoDB: The system tablespace must be writable!
    2015-03-27 00:32:41 7008 [ERROR] Plugin ‘InnoDB’ init function returned error.
    2015-03-27 00:32:41 7008 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. mySQL failed. this is what it said. please help how do i get back running ? thank you wayne

    Geoff

    I ran into a small issue around the htaccess not being able to route to the new sub site .. as FIle Note Found. This helped me.

    RewriteEngine On
    RewriteBase /yoursitenamehere/
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Nurutheinn

    thanks alot for the tutorial, it really help me alot…i have been trying to configure my xampp with joomla, it not working properly…..i always get error message could not connect to database. but when i try it with wordpress with your steps, i work perfectly for me….