Installing on Mac OS X

NOTE: The ResourceSpace team does not actively monitor this guide and this article may be out of date.

The below instructions will work on earlier versions of OS X with some small alterations.

With Snow Leopard there is no need to replace PHP (unlike Leopard) as the provided PHP comes bundled with the GD library.

Install MacPorts

The instructions below are for remote installation via the command line. If you have GUI access to the machine you can use the simple MacPorts installer.

Next install MacPorts, which requires Xcode so make sure you have installed Xcode from the OS X setup disks.

These instructions are taken from this page.

  • Download MacPorts
curl -O

(Change URL to match the latest version)

  • Mount disk image
hdiutil attach MacPorts-1.8.0-10.6-SnowLeopard.dmg
  • Run the installer
sudo installer -verbose -pkg /Volumes/MacPorts-1.8.0/MacPorts-1.8.0.pkg -target /
  • Add the appropriate paths by typing:
nano ~/.profile
  • Add the line:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
  • Do Ctrl+O, Ctrl+X to save and quit then log out and back in again (or open a new terminal window) so your profile changes take effect.
  • Update MacPorts to the latest version
sudo port -v selfupdate
  • Unmount the disk image
hdiutil detach -verbose /Volumes/MacPorts-1.8.0

Use MacPorts to add the remaining packages

sudo port install mysql5 ffmpeg ImageMagick p5-image-exiftool antiword xpdf subversion ghostscript ufraw wget

(There is currently a bug in the port for gimp2 which is a dependant of ufraw, so if you do not need raw support you should leave out ufraw Sep-09)

Configure php.ini

sudo cp /etc/php.ini.default /etc/php.ini
sudo nano /etc/php.ini
  • Find the value for 'memory_limit' and set this to a high value e.g.
memory_limit = 999M     � ; Maximum amount of memory a script may consume (128MB)
  • Find the value for 'post_max_size' and set this to a high value e.g.
post_max_size = 999M
  • Find the value for 'upload_max_filesize' and set a high value e.g.
upload_max_filesize = 999M

Then Ctrl+O, Ctrl+X to save and quit.

Install ResourceSpace from Subversion

cd /Library/WebServer/Documents    [or alternative path to ResourceSpace install target]
mkdir old
mv * old/
svn co (swap X.X for the latest release)

mkdir filestore
chmod 777 filestore 
chmod -R 777 include

mysql -u root -e "create database resourcespace"

...then fire up a web browser and point it at the server to resume the setup.

Set up the cron job

cd ~
nano mycrontab

Add the line:

0 1 * * * wget -q -r http://localhost/pages/tools/cron_copy_hitcount.php

Ctrl+O, Ctrl+X to save and quit, then do:

crontab mycrontab