This repository has been archived by the owner on Aug 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
OSX Local Copy Setup
mmcguinn edited this page Jun 5, 2012
·
6 revisions
This page contains instructions for setting up a local copy of the iSENSE website on OSX.
- Open System Preferences ( Apple Icon -> System Preferences)
- Click on Sharing
- Click the box next to “Web Sharing” so that it checked to be on.
- Click the link to where it says “Your computer’s website is available here.” Verify content is displayed properly here. This will be some stock “It works!” page.
- Follow these Instructions. Make sure you meet the requirements.
- If you didn’t read the above links, you will have trouble installing if you don’t have xcode. Install XCode somehow (Download it, find your osx dvd, etc).
- Sudo port install mongodb
- Please Note: Doing this took roughly forever to install the “boost” C++ Libraries for threading. Not sure why. Please report back if you encounter this as well.
- Paying attention to the install log will yield the following command.
“sudo port load mongodb” Type this command to automatically start mongodb on boot.
- Open /etc/apache2/httpd.conf
- Uncomment the Line "#LoadModule php5_module libexec/apache2/libphp5.so" (delete the #)
- Restart apache:
sudo apachectl -k restart
- Go here and grab the 64 bit 10.6 dmg IF YOUR ON 10.6
- Install that
- If that link seems to be weird as it is for me. Here is a direct link http://mirror.services.wisc.edu/mysql/Downloads/MySQL-5.5/mysql-5.5.19-osx10.6-x86_64.dmg
export PATH=$PATH:/usr/local/mysql/bin
Generic Instructions exist, however, to install for OSX:
- download http://pear.php.net/go-pear.phar
php -d detect_unicode=0 go-pear.phar
- add pecl to your PATH
export PATH=$PATH:/Users/<youruser>/pear/bin/
sudo pecl install mongo
- append extension=mongo.so to /etc/php.ini
- restart apache:
sudo apachectl restart
- To grab a current backup of the databases, run ~cadorett/bin/dumpdb on the remote isense server. This will create a “dbdump” folder in your home directory.
- Transfer this to your local machine
- on local,
scp -r <user>@isense.cs.uml.edu:~/dbdump ~/
mysql -u root < ~/dbdump/fullsql.sql
mongorestore ~/dbdump/dump
- copy production-default.xml and debugging-default.xml to production.xml and debugging.xml respectively
- fill in: database -> pass
- Edit /etc/apache2/httpd.conf and find the “AllowOverride” directive inside the <Directory /Library/WebServer/Documents> tag.
- Change “AllowOverride none” to “AllowOverride All”
TODO: Information about apache permissions TODO: Smarty requires write permissions from the server