cowasaki
TPer Emeritus
- Messages
- 19,708
- Name
- Darren
- Edit My Images
- Yes
Installing Word Press on the Mac
I have managed to get Word Press up and running LOCALLY on my mac using the following guide. This guide has been written by me after reading about 10 different guides that all contradict each other and generally didn't work!
Note EVERYTHING in UNIX is case sensitive make sure you follow CASE !!!!!!!
This is working on my Macbook Pro running Snow Leopard, there is a line in the middle which will be different for Leopard and Snow Leopard but this is highlighted. I have tried to make it as simple as possible.
Obtain files for install of My_SQL and Word Press
Add MySQL path to your paths
> Show hidden files.
Configure MySQL
> Note replace <ROOT> with your root password
> Now create the wordpress database
>
> For PRE Snow Leopard:
> For Snow Leopard:
define('DB_NAME', 'wordpress');
define('DB_USER', 'wpuser');
define('DB_PASSWORD', 'wppass');
define('DB_HOST', 'localhost:/tmp/mysql.sock');
I have managed to get Word Press up and running LOCALLY on my mac using the following guide. This guide has been written by me after reading about 10 different guides that all contradict each other and generally didn't work!
Note EVERYTHING in UNIX is case sensitive make sure you follow CASE !!!!!!!
This is working on my Macbook Pro running Snow Leopard, there is a line in the middle which will be different for Leopard and Snow Leopard but this is highlighted. I have tried to make it as simple as possible.
Obtain files for install of My_SQL and Word Press
- Goto http://dev.mysql.com/downloads/mysql
- Select the right version and click [Download]
- Goto http://wordpress.org/download/
- Select "Download WordPress 3.0.2" (or which ever version it is)
- Locate the .dmg file in your downloads directory
- Click on it to open it.
- Locate the file "mysql-5.1.51-osx10.6-x86_64.pkg" (or similar)
- Run this and follow on screen instructions.
- Copy MySQL.prefPane to [USER HOME] >> Library >> PreferencePanes >>
- Restart and allow My_SQL to accept incoming communications.
Add MySQL path to your paths
> Show hidden files.
- Start Terminal
- Type "defaults write com.apple.finder AppleShowAllFiles true"
- Type "killall Finder"
- Start TextEditor
- Type "/usr/local/mysql/bin" into it and press return
- Save As "MS." onto your desktop
- Copy the file into the directory ROOT :: private :: etc :: paths.d
- Click to authenticate this copy
- Restart your computer
Configure MySQL
- Run Terminal
- Type "mysql -u root"
- Type "drop database test;"
> Note replace <ROOT> with your root password
- Type delete from mysql.user where User = '';
- Type flush privileges;
- Type set password for root@localhost = password('<ROOT>');
- Type set password for root@127.0.0.1 = password('<ROOT>');
- Type quit
- Type "mysql -u root -p"
> Now create the wordpress database
- Type create database wordpress;
- Type grant all privileges on wordpress.* to wpuser@localhost identified by 'foo';
>
> For PRE Snow Leopard:
- Type set password for wpuser@localhost = old_password('wppass');
> For Snow Leopard:
- Type set password for wpuser@localhost = password('wppass');
- Type quit
- Open the directory root :: private :: etc :: apache2
- Double click "httpd.conf"
- select TEXT EDITOR
- Scroll the page down till you find a line that start "#LoadModule php5_module ."
- Delete the hash
- Goto File > Save As and save the file as httpd.conf on your desktop.
- Now drag the file httpd.conf into the directory we opened earlier. (you will be asked to authenticate, say yes and then you will be asked for your password
- Open the folder "Word Press" in your downloads folder
- Open your Sites folder (located in your home folder)
- Copy the CONTENTS of the Word Press folder INTO the Sites folder
- Locate the file wp-config-sample.php
- Right click this file and select "Open With" and select TEXT EDITOR
- Goto File and select SAVE AS and save the file unchanged as wp-config.php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wpuser');
define('DB_PASSWORD', 'wppass');
define('DB_HOST', 'localhost:/tmp/mysql.sock');
- Goto File and select SAVE then quit
- Start Terminal
- Type "sudo apachectl restart"
- Start Terminal
- Type "defaults write com.apple.finder AppleShowAllFiles false"
- Type "killall Finder"