Personas/Dev Setup
< Personas
Jump to navigation
Jump to search
Requirements
- basic LAMP stack with gettext support
- MySQL Database
- ImageMagick - to resize uploaded images
Procedure
- Checkout http://svn.mozilla.org/projects/getpersonas.com/trunk/ from svn
- Create a database for personas
- Cleaned db dump here: http://people.mozilla.org/~rdoherty/personasdump.sql.zip
- Copy
server/lib/personas_constants.php.dist
toserver/lib/personas_constants.php
- Edit
server/lib/personas_constants.php
with- database username, password and name - for slave and master
- PERSONAS_BASE_URL should be the url to access your dev install
- PERSONAS_CDN_HOST should be http://PERSONAS_BASE_URL
- Copy
server/localhttpd-dist.conf
to the apache conf for your dev install (probably best to 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.
- Restart apache
- Profit!
Example Apache VirtualHost
- DocumentRoot and Directory should both reference the top-level directory where you checked out the site (ie. trunk)
- Replace
/Users/username/Projects/getpersonas.com/trunk
in the example below
- Replace
- Remember to add an entry in your hosts file matching ServerName and/or ServerAlias
<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>