Wiki source code of Deploying on Mac OS X Server
Version 21.1 by Pascal Robert on 2012/01/30 22:27
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = Deployment Installation on Mac OS X 10.6 (Snow Leopard) = | ||
| 2 | |||
| 3 | == Install WebObjects Using Apple's Installer == | ||
| 4 | |||
| 5 | Install WebObjects using the [[Apple WebObjects 5.4.3 Installer dmg>>http://support.apple.com/kb/DL688]] if you want "standard" install paths. Make sure you install "WebObjectsRuntime.pkg" which is in the "Packages" directory of the .dmg. | ||
| 6 | |||
| 7 | == Install WebObjects using the mDimension Installer == | ||
| 8 | |||
| 9 | {{color value="#333333"}} | ||
| 10 | Install the Snow Leopard apache adaptor from mdimension | ||
| 11 | {{/color}} | ||
| 12 | |||
| 13 | {{color value="#006daf"}} | ||
| 14 | [http://wocommunity.org/documents/tools/WOInstaller.jar] | ||
| 15 | {{/color}} | ||
| 16 | |||
| 17 | {{color value="#006daf"}} | ||
| 18 | [http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so] | ||
| 19 | {{/color}} | ||
| 20 | |||
| 21 | == Configure Apache for WebObjects == | ||
| 22 | |||
| 23 | Then open terminal and perform the "extra" stuff you need to do to get things complete. you will need to do all this as 'root', hence the sudo s at the start. | ||
| 24 | |||
| 25 | {{code title="Replace the apache adaptor with the Snow Leopard one"}} | ||
| 26 | |||
| 27 | sudo -s | ||
| 28 | |||
| 29 | cd /System/Library/WebObjects/Adaptors/Apache2.2 | ||
| 30 | mv mod_WebObjects.so mod_WebObjects.so.obsolete | ||
| 31 | curl -C - -O http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so | ||
| 32 | |||
| 33 | {{/code}} | ||
| 34 | |||
| 35 | {{code title="Configure Apache to use the WebObjects Adaptor"}} | ||
| 36 | |||
| 37 | cd /etc/apache2 | ||
| 38 | cp httpd.conf httpd.conf.backup | ||
| 39 | echo "Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >> httpd.conf | ||
| 40 | apachectl restart | ||
| 41 | |||
| 42 | {{/code}} | ||
| 43 | |||
| 44 | {{code title="Install launchd tasks to keep WebObjects running always"}} | ||
| 45 | |||
| 46 | cd /Library/LaunchDaemons | ||
| 47 | curl -C - -O http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.wotaskd.plist | ||
| 48 | curl -C - -O http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.womonitor.plist | ||
| 49 | |||
| 50 | |||
| 51 | NOTE: These two plists point to the Apple provided JavaMonitor and wotaskd that are in /System/Library/WebObjects/JavaApplications/. | ||
| 52 | If you are using the Wonder versions and placed them in /Library/WebObjects/JavaApplications/ then you will need to edit these files. | ||
| 53 | |||
| 54 | launchctl load com.apple.webobjects.wotaskd.plist | ||
| 55 | |||
| 56 | {{/code}} | ||
| 57 | |||
| 58 | If you are going to run WOMonitor on this machine, then do the following: | ||
| 59 | |||
| 60 | {{code title="(Optional) Permanently start the WOMonitor app"}} | ||
| 61 | |||
| 62 | launchctl load com.apple.webobjects.womonitor.plist | ||
| 63 | |||
| 64 | {{/code}} | ||
| 65 | |||
| 66 | If you have problems or further questions try the tips here: [[Debugging wotaskd and JavaMonitor>>Troubleshooting wotaskd and JavaMonitor on OS X]], if that still doesn't give you the clues you need, ask on the wo-deploy mailing list :-) | ||
| 67 | |||
| 68 | == == |