Installing Wordpress 2.7 On Mac OS X Leopard
This post shows you how to install Wordpress 2.7 on a Mac OS X Leopard. The post assumes that MySQL and PHP have already been installed. Here are the six steps to get Wordpress installed on your Mac, so you can tweak a theme or create some widgets and plugins:
Step 1 - Configure MySQL Database
$ mysql -u root -p
Enter Password: {ROOTPASS}
> create database wordpress;
> grant all privileges on wordpress.* to wpuser@localhost identified by 'password';
> quit
Change the password in the grant command to whatever you want the password to be.
Step 2 - Download & Extract Wordpress
- Download and Wordpress from here: http://wordpress.org/latest.zip
- Move the Wordpress zip file (wordpress-2.7.1.zip) to /Users/user/Sites
- Unzip the zip file in /User/user/Sites
You should see a Wordpress folder now in /Users/user/Sites
Step 3- Configure Wordpress To Connect to MySQL
cd /Users/user/Sites/Wordpress
cp wp-config-sample.php wp-config.php
edit wp-config.php and set the following configuration variables:
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'wpuser'); // Your MySQL username
define('DB_PASSWORD', 'password'); // …and password
define('DB_HOST', '127.0.0.1');
Note: I needed to change “host” to 127.0.0.1 to get Wordpress to connect to my MySQL database.
Step 4 - Create a Virtual Host for Wordpress
This step allows us to access a local Wordpress blog from http://wp.local
Edit /etc/hosts and add the following line:
127.0.0.1 wp.local
Edit /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@wp.local
DocumentRoot "/Users/tdewell/Sites/wordpress"
ServerName wp.local
ServerAlias *.wp.local
ErrorLog "/private/var/log/apache2/wp.local-error_log"
CustomLog "/private/var/log/apache2/wp.local-access_log" common
</VirtualHost>
Step 5 - Restart Apache
Click:
System Preferences >> Sharing
uncheck and then check again the Web Share checkbox:

Step 6 - Install Wordpress
http://wp.local/wp-admin/install.php
Make sure you save the admin password somewhere.
Step 7 - Start Blogging
http://wp.local/wp-admin
References
This post is mostly based on this article:
Leopard How To Install Wordpress
I’ve modified the instructions to allow multiple projects and websites in the /Users/user/Sites folder.
I hope this article was of some benefit to you!

Derosa Said,
March 8, 2010 @ 7:59 PM
…
Skoro eto sluchitsya …
Nga Said,
March 13, 2010 @ 2:21 AM
…
rano ne pozdno …
Ferasa Said,
March 13, 2010 @ 7:20 AM
…
press releases …
Nga Said,
March 15, 2010 @ 1:20 PM
…
vim to very …
Валентин Said,
April 8, 2010 @ 11:04 PM
Спасибо…
Хм..…
jorg Said,
April 18, 2010 @ 3:54 PM
…
At last it happens! …
Sasha Said,
April 19, 2010 @ 12:39 PM
…
Excellent news …
Новости хайтек Said,
April 25, 2010 @ 5:38 AM
высокие новости…
мобильные интернет-устройства трудно было назвать самой дешевой вещью в мире Читать дальше< / a…
Sid Said,
May 4, 2010 @ 5:51 AM
травяные настойки…
Сготовьтепо-казахски чай! Стоит попробовать…
Ольга Said,
May 30, 2010 @ 1:53 PM
СПС.…
Я тут…
Сергей Said,
June 6, 2010 @ 5:56 AM
http://rel” rel=”nofollow”> Спасибо,…
Хотя новость уже читал…
Soviet Said,
June 9, 2010 @ 9:05 AM
http://rel” rel=”nofollow”>Хм…..…
Ссылки как то непонятно отображаются…