Running WordPress on Mac OS X with XAMPP
- Download XAMPP for Mac OS X from http://www.apachefriends.org/en/xampp.html.
- Open the xampp dmg file and copy xampp into the applications folder.
- Run the xampp control app and start apache & mysql.
- Using your browser, go to http://localhost/xampp/splash.php
- Select your language then click phpMyAdmin.
- Create a database called ‘wordpress’ using ‘utf8_unicode_ci’ collation.
- Download WordPress from http://wordpress.org/download/.
- Unzip WordPress into /Applications/XAMPP/htdocs/.
- Copy the following details into your wp-config file, and save it as wp-config.php These are the exact details you need for Xampp to work because the default user in phpmyadmin is called ‘root’ and there is no password:
- DB_NAME is ‘wordpress’.
- DB_USER is ‘root’.
- DB_PASSWORD is ”.
- DB_HOST is ‘localhost’.
- In your browser, go to http://localhost/wordpress/wp-admin/install.php to install WordPress.
- Once WordPress installation is complete go to http://localhost/wordpress/ to verify the installation.
- To get automatic updates of WordPress and installation/updates of plugins and widgets working do the following:
- Make a note of your username e.g. ‘Daniel’.
- Open /Applications/XAMPP/etc/httpd.conf as root/admin e.g. “sudo open -e ‘/Applications/XAMPP/etc/httpd.conf’” from terminal.
- Find the following lines:
User nobody
Group admin - Change the lines to the following:
User <Your Username>
Group staf f - Save the file.
- Restart XAMPP and visit http://localhost/wordpress/ you should now have a fully functional WordPress installation you can experiment on without effecting your live blog.
The next step is to mimic the configuration of the live blog on the test blog by:
- Importing the posts and comments from the live blog.
- Installing the same theme, widgets and plugins.
- Configuring the theme, widgets and plugins.
You can now start hacking away on your test blog without worrying about breaking your live site!
Hello,
I’m actually stuck at step 10. Instead of getting a page that’s helpful, I get an “Object not found” message.
Help?
Hi Daniel, thanks for posting this guide- it seems easy enough for a beginner like myself to follow. However, could you please clarify step #6? I don’t know what ‘utf8_unicode_ci collation’ means. Thank you again!
-Paula
This is very clear and concise, and helped me solve the auto-update issue, thanks!
I’m trying to set up my local network as a development environment, hosting Xampp on my MacPro but I’d like to have full access from my laptop too. I’m able to see the WordPress site from the laptop using http://(macpro ip address)/wordpress/ but the template does not load, it’s showing unstyled pages, as if the css is missing. Links revert to “localhost” as well.
Any tips on viewing a Xampp installation from a different computer? I’ve moved from Mamp to Xampp for this purpose.
Found it! The trick is to change WordPress >General Settings, both WordPress address and Site address to your host computer IP address. By default it says “localhost” but for computers on the network to see it, it must be IP address.
Hi, thanks for making this so simple. Been searching a while for a solution on this. Just started working on Mac, but have been using XAMPP on windows for a long time. So, on a Mac it was a bit different.
Thanks. Bookmarking
Hi Daniel. Good article on how XAMPP. I’m pretty big on it myself. You might like my twist on it as I’ve tossed in an ‘easy’ wizard to create friendly “fake” domain names for working on more then one site (and who doesn’t these days). It also features an intelligent copy feature just for WordPress (it scrubs your database posts, pages for re-mapping to a new domain). Check it out!
Oh, and the aforementioned features are free.
I didn’t try this yet, but about to…..do you then know how to export that file onto network solutions?
by TUTORIAL: Using Sass and Compass for managing CSS in WordPress | Technosailor.com
[...] running. There are a variety of ways to do this, but I use the approach of installing XAMPP. Here’s a tutorial on that. Follow the rabbit trail to configure Apache to look to your Sites directory, as I have, or make [...]










Thanks for the awesome instructions, I was able to setup XAMPP on the Mac and install WordPress. However when I get to step 12 and try to make the changes to the httpd.conf file I can’t save the changes. I followed your instructions, I’m singed on as SU and I have even changed the file permission on the entire XAMPP directory…any guidance would be greatly appreciated.