WordPress on OsX

I n order to learn more about Word­Press and to try and limit my exper­i­ment­a­tions on the live server, I decided to run a duplic­ate copy of this blog on my PowerBook.

Marc Liyanage’s PHP Apache Mod­ule handled the PHP and MySQL install, Web­min looks after the Apache admin­is­tra­tion and cre­at­ing a new MySQL user, PHPMy­Ad­min for the remain­ing MySQL admin­stra­tion tasks, includ­ing duplic­at­ing the data­base. Everything was going fine, except for Permalinks, which is frus­trat­ing because none of my links worked.

The Os X GUI does not let you play with files begin­ning with a period (.), not a prob­lem cre­at­ing a .htac­cess file, just using another name and them rename it using ter­minal to .htac­cess . Accord­ing to Web­min mod_rewrite was installed and run­ning but it was get­ting frus­trat­ing, then I found this gem Get­ting mod_rewrite to work on Mac OS X from Pet­rik de Heus. If you fol­low the instruc­tions and modify your /etc/httpd/users/YOURUSERNAME.conf file so it looks like:

<directory "/Library/WebServer/Documents/">
Options All
AllowOverride All
Order allow,deny
Allow from all
</directory>

Or if you have changed your Apache server dir­ect­ory in the httpd.conf file replace “/Library/WebServer/Documents/” with dir­ect­ory you use. Restart your Apache server with Web­min and permalinks work, well they did for me.

Update: 24 Octo­ber 12:45 Tex­tWran­gler a free text editor will let you edit your .htac­cess file without hav­ing to go through ter­minal to rename the file, just use the open hid­den from menu.

3 Responses to “WordPress on OsX”

  1. Francesco Says:

    Please make your NickCowie.com graphic a link to your home page. I could find no easy way to return to your home page from any other page on your site. oth­er­wise, great site!

    Francesco

  2. nick Says:

    Franceso that was on of the many thing on my to do list, I keep put­ting it off because I could not get a link in the top left corner as well. I was fol­low­ing try­ing to fol­low this example from West­Civ.

    SIFR and empty span tags inside anchor tags don’t mix, went for the more prim­it­ive approach, so it is now works and is on my done list, thanks for remind­ing me.

  3. John Says:

    You could also use BBEdit to open up hid­den files from within mac osx, espe­cially .htac­cess and .conf files, it works wonderfully.

Affiliates

Google
text advertising by
Powered by Reseller Zoom