- PHP5
- MySQL
- Git
- SASS
- (optional) MAMP or XAMPP if you don't want to deal with lots of local config stuff.
Contact us for a copy of the latest database dump for developing locally. For production servers, you'll just need to import the SQL through phpMyAdmin or however you like to rock MySQL.
The instructions are pretty much the same to run the website local or on a server.
http://www.mamp.info/en/downloads/
git clone [email protected]:projectexplorer/projectexplorer.org.git
- Load MAMP
- Click on
Preferences
- Click on
Apache
- Select document root will look similar to
/Users/david/Sites/projectexplorer.org
but with proper username and path to the cloned repo - Click
OK
- Apache should automatically restart
- Visit
http://localhost:8888/
to confirm Apache is loading the correct files - If all is well, you'll get a message saying "config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/"
- Visit
http://localhost:8888/MAMP/
- Look at host, port, user and password info which should be standard localhost stuff for MySQL dev (localhost, 8889, root, root)
- Click 'phpMyAdmin' link in the top navigation
- Click 'Databases'
- Create a database called
projectexplorer
- Click on the newsly created
projectexplorer
database - Click
Import
- Find the SQL dump, select it and click
Go
- Hopefully all green indicators
- You should have see a bunch of txp-prefixed tables in the
Structure
tab
- Open Terminal
cd
path/to/projectcd textpattern
touch config.php
- Open config.php in your favorite text editor
<?php
$txpcfg['db'] = 'projectexplorer';
$txpcfg['user'] = 'root';
$txpcfg['pass'] = 'root';
$txpcfg['host'] = 'localhost';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = '/home/path/to/textpattern';
$txpcfg['dbcharset'] = 'utf8';
?>
- Go back into terminal and run
pwd
- Copy the result
- Back to the your text editor
- Replace
txpath
with whatever you copied during thepwd
step - Save
- Reload
http://localhost:8888
in a browser
- Visit
http://localhost:8888/textpattern/
- Login with you username and password
- Visit the advanced preferences
http://localhost:8888/textpattern/index.php?event=prefs&step=advanced_prefs
- Update
File directory path
andTemporary directory path
using your path/to/project - Save
- Go walk around the block once to make sure Apache isn't caching old permalink structure
- Now visit
http://localhost:8888
and visit articles served directly out of your local database