Copy the full sample project folder to the directory where your project will be hosted.
Working with Mac OSX 10.7:
Open the terminal and go to:
cd /private/etc/apache2/users/
,
then look for your configuration file (it may be one directory up as well)
edit that file, adding the following code:
<VirtualHost *> ServerName magrathea.localhost.com ServerAlias magrathea.localhost.com DocumentRoot /Users/[user]/Sites/[path]/app <Directory /Users/[user]/Sites/[path]/app> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>The
DocumentRoot
should point to the path where the directory was copied. As well the line above.cd /private/etc/
and edit hosts file, adding the line:
127.0.0.1 magrathea.localhost.com, where
magrathea.localhost.com
is the internal URL that will be used to reach the website.sudo apachectl restart
Remember!
You have to start configurating your site path, Magrathea path and database connection, editting the file inside configs/magrathea.conf
!
For more info about how to edit the configuration file, Click here!