Personas/Dev Setup: Difference between revisions

add example VirtualHost
(add ImageMagick and some other details)
(add example VirtualHost)
 
Line 13: Line 13:
## PERSONAS_BASE_URL should be the url to access your dev install
## PERSONAS_BASE_URL should be the url to access your dev install
## PERSONAS_CDN_HOST should be http://PERSONAS_BASE_URL
## PERSONAS_CDN_HOST should be http://PERSONAS_BASE_URL
# Copy <code>server/localhttpd-dist.conf</code> to the apache conf for your dev install (probably best to create a vhost)
# Copy <code>server/localhttpd-dist.conf</code> to the apache conf for your dev install (probably best to [[#Example_Apache_VirtualHost|create a VirtualHost]])  
# Change '/path/to/personas/' in the text you just copied to the full path to where you checked out the svn repository.
# Change '/path/to/personas/' in the text you just copied to the full path to where you checked out the svn repository.
# Restart apache
# Restart apache
# Profit!
# Profit!
=== Example Apache VirtualHost ===
* ''DocumentRoot'' and ''Directory'' should both reference the top-level directory where you checked out the site (ie. trunk)
** Replace <code>/Users/username/Projects/getpersonas.com/trunk</code> in the example below
* Remember to add an entry in your hosts file matching ServerName and/or ServerAlias
<pre>
<VirtualHost *:80>
    ServerAdmin "personas@localhost"
    DocumentRoot "/Users/username/Projects/getpersonas.com/trunk"
    ServerName getpersonas.com.localhost
    ServerAlias www.getpersonas.com.localhost
    ErrorLog  "/path/to/log/folder/getpersonas.com.localhost-error_log"
    CustomLog "/path/to/log/folder/getpersonas.com.localhost-access_log" common
    <Directory "/Users/username/Projects/getpersonas.com/trunk">
        Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
</pre>
Confirmed users
933

edits