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:
- Change the lines to the following:
User <Your Username>
Group staf f
- Save the file. Some people are having issues with TextEdit preventing edits to the file due to file ownership, there are two possible work arounds:
- Use another text editor like vi to make the required edits the file: “sudo vi ‘/Applications/XAMPP/etc/httpd.conf'”.
- Use the chown command to change the file’s ownership: “sudo chown <Your Username> ‘/Applications/XAMPP/etc/httpd.conf'”.
- 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!
Responses are currently closed, but you can trackback from your own site.