Mmmmm…. Cake….

April 24, 2007 § Leave a comment

CakePHP is a nice Ruby on Rails clone. There, I’ve said it. On my Windoze machine it was delicious. On my Ubuntu, it tastes even better. Now it’s about time for OS X to taste the cake.

  1. Download the cake!
  2. Untar it.
  3. copy the whole folder to /User/{username}/Sites directory.
  4. Edit your Apache httpd.conf:
    • Add new port for the following <Virtualhost> tag.
    • Create new <Virtualhost *:{new_port_number}> tag. See example below:
  5. Restart Apache daemon (run: /usr/local/apache2/bin/apachectl restart)

Sample of VirtualHost:

<VirtualHost *:2000>
ServerName {make up some name}
DocumentRoot “/Users/{username}/Sites/{your_cake_folder}/app/webroot”
<Directory “/Users/{username}/Sites/{your_cake_folder}/app/webroot”>
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
DirectoryIndex index.php index.html index.thtml index.htm
</Directory>
</VirtualHost>

There you have it! Yet another easy tutorial to make Mac OS X the ultimate Web Development machine.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Mmmmm…. Cake…. at RAPD.

meta

%d bloggers like this: