Personas/Dev Setup: Difference between revisions
< Personas
Jump to navigation
Jump to search
(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 | # 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> | |||
Latest revision as of 22:49, 1 July 2010
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.disttoserver/lib/personas_constants.php - Edit
server/lib/personas_constants.phpwith- 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.confto 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/trunkin 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>