Hello!
FYI: This works for Enterprise 9 as well.
Several years ago (almost exactly two years ago as I write this) I wrote a post for installing WoodWing’s Enterprise Content Management system onto a Mac running Mac OS X 10.6 (see here).
Just recently I got a new machine and, of course, I need to install all these bits and pieces again so that I can run Enterprise v8 on my machine.
Below are the steps that I followed. This assumes that this is a new machine running Mac OS X 10.8.x
Preparation
I generally have to do a few things to prepare a new machine as I generally don’t like to migrate things from the old machine.
To get prepared for this I had to do the following:
1. I create the non-Admin user for security reasons.
2. Install TextWrangler
I install TextWrangler on any machine that I spend time on where I’m installing software. It has code coloring and outside of BBEdit is my favorite text editors.
3. Install Apple’s Xcode
Xcode is required for MacPorts to be able to compile the bits and pieces we are going to need.
To get Xcode go to the App Store, download and install it.
Once Xcode is installed there are still some components that need to be installed so that we can compile stuff.
Start Xcode, select the ‘Xcode’ menu at the top and select ‘Preferences’. In the preferences screen select ‘Downloads’.
‘Command Line Tools’ should be listed. Press the ‘Install’ button and watch the magic.
4. Install MacPorts.
Download the latest MacPorts installer from here (http://www.macports.org).
Be sure to get the right one for your operating system. The installer comes as a .dmg file. Open the file and run the installer. Read more here.
After installation I open the ‘Terminal’ application and enter the following command:
sudo port -v selfupdate
MacPorts will update, if necessary, and then it is ready to use.
You will also want to get the path information to your profile run the following commands in Terminal to do so:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
Install Apache2, PHP and MySQL
Installing MySQL
1. Start Terminal
2. Run the following command to install MySQL v55
sudo port install mysql55
If you want MySQL to start up on start of the machine run:
sudo port install mysql55-server
Then the command below to get the initial databases installed:
sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
To get your server to start when the machine starts up:
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql55-server.plist
You might run into this: Starting MySQL… ERROR! The server quit without updating PID file
See here.
Installing PHP5
Note that Apache2 will get installed by issuing the command below.
The command to install php5 is: sudo port install php5
NOTE: We could do a command that would install PHP5 and all of the other necessary bits. Instead, below I have outlined the individual port commands below.
sudo port install php5-mysql
sudo port install php5-sqlite
sudo port install php5-sockets
sudo port install php5-mcrypt
sudo port install php5-curl
sudo port install php5-mbstring
sudo port install php5-imagick
sudo port install php5-xdebug
sudo port install php5-xmlrpc
sudo port install php5-xsl
sudo port install php5-zip
sudo port install php5-soap
sudo port install php5-gd
sudo port install php5-exif
sudo port install php5-openssl
sudo port install php5-iconv
sudo port install php5-ftp
Set up Apache2 to start up automatically
Use Terminal and issue this command:
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
You may need to set the server name in the ‘httpd.conf’ file to something like:
ServerName 127.0.0.1:8080
Starting Apache
There are two commands that you will need if you are making adjustments to Apache or PHP config files.
Start Apache:
sudo /opt/local/apache2/bin/apachectl -k start
Stop Apache:
sudo /opt/local/apache2/bin/apachectl -k stop
Installing Enterprise
Follow the admin guide provided on the Community site.