local wordpress setup on mac osx lion

  1. Download WordPress to /Users/yourusername/Sites folder
  2. Extract package to a folder name to be your wordpress install. I called it wordpress
  3. Setup permissions on the wp-content folder so that wordpress can modify files there. I simply gave ownership to _www group.
    sudo chown -R _www wp-content
  4. Update /etc/apache2/users/yourusername.conf
    <Directory "/Users/yourusername/Sites/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All AuthConfig
        Order allow,deny
        Allow from all
    </Directory>
  5. .htaccess
  6. Restart apache for chaneges to take effect:
    sudo apachectl restart
  7. Edit wp-config.php to add this constant so wordpress will not ask your FTP credentials while installing plugins.
    define('FS_METHOD', 'direct');
  8. Create database for this wordpress installation in phpmyadmin.
  9. Create user for this database.
  10. Follow the 5 minute setup instructions localhost/~yourusername/wordpress/readme.html

Optional  Steps

  1. Update php version to 5.5 since Mac OSX lion comes with PHP 5.2 out of the box.
  2. Update Apache to 2.4 since Max OSX come with Apache 2.2 out of the box.

Hope this helps.

Simplest git repository setup on windows server

Git is awesome, you should know that. I had to setup a central git repository for a small team in a Windows shop. The simplest setup to get started is as follows.

On the Windows Server:

  • Install git (http://code.google.com/p/msysgit)
  • Create and share a folder where you will use it as central repository (C:\repositories\myproject). Setup whatever permissions you want to setup on the shared folder.
  • Run git bash and:

cd myproject
git init --bare

On your Windows Workstation

  • Map the shared folder (mypoject) on the server to a drive (ie: z) on your workstation
  • Install git (http://code.google.com/p/msysgit)
  • Create a folder where you will work on the project.
  • Run git bash and:

cd /c/projects
mkdir myproject
cd myproject
git init
touch readme.txt
notepad readme.txt # add some content
git add -A
git commit -m 'initial checkin'
git remote add origin file:///z/repositories/myproject
git push origin master
git branch -a

This is it…