Version 23.1 by Kieran Kelleher on 2009/03/25 23:42

Hide last authors
David Holt 20.1 1 This needs to be in one page - especially for beginners. I summarized my steps to run applications with Apache on a brand new Leopard install on the mailing list and it was suggested that it get put on the wiki. Please refer to the following pages if you need clarification:
David Avendasora 14.1 2
David Holt 16.1 3 [[Development Tools-Running Through Apache]]
David Avendasora 14.1 4 [[WO 5.4 Getting Started]]
5
6 You don't need to set your host in JavaMonitor. I thought you did too, but it wasn't the case. You should be able to just run your application from Eclipse and it will "magically" use Apache when it is starting up.
7
Kieran Kelleher 22.1 8 The steps I took as outlined in the wiki pages above:
David Avendasora 14.1 9
Kieran Kelleher 22.1 10 ~1. Edit /etc/apache2/httpd.conf
11 Search for "Directory /" and comment out the Order and Deny lines:
12
David Avendasora 14.1 13 <Directory />
David Holt 16.1 14 Options FollowSymLinks
15 AllowOverride None
16 #Order deny,allow
17 #Deny from all
David Avendasora 14.1 18 </Directory>
19
Kieran Kelleher 22.1 20 Then search for "ServerName" and add
David Avendasora 14.1 21 ServerName localhost
22
23 Add a line that points to the WebObjects apache config file
24 Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
25
Kieran Kelleher 22.1 26 2. My apache.conf (/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf) file contained the line to load the WebObject module
27 Confirm that apache.conf also includes:
David Holt 16.1 28 WebObjectsConfig http:~/~/localhost:1085 10
David Avendasora 14.1 29
Kieran Kelleher 22.1 30 3. Add the "WOHost=localhost" to the properties file in wotaskd (/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties)
David Avendasora 14.1 31
Kieran Kelleher 22.1 32 4. Change permissions of the two lauchdaemons to **exactly** what is written in the wiki (I think they are created by default now with WO 5.4.3, if not, create the files as described in [[WO 5.4 Getting Started]])
David Holt 16.1 33 644 system/wheel/everyone
David Avendasora 14.1 34
Kieran Kelleher 22.1 35 5. Set your launch parameters in your application:
David Avendasora 14.1 36
David Holt 16.1 37 --WODirectConnectEnabled false
38 --WOHost localhost
39 --WOAdaptorURL http:~/~/localhost/cgi-bin/WebObjects
40 --WOPort 5555
David Avendasora 14.1 41
Kieran Kelleher 22.1 42 6. Restart Apache
David Avendasora 14.1 43
Kieran Kelleher 22.1 44 7. Load the LaunchDaemons. Make sure the filenames of the plists are the same as the module you're loading. I know this seems obvious, but it appears that the filenames have changed over time from "com.apple.webobjects.womonitor.plist" to "com.apple.womonitor.plist". The wiki calls for the loading of a module named "com.apple.webobjects.womonitor.plist" (notice the extra **webobjects**). You may not load the modules if you use the wiki instructions on the command line and don't notice the naming difference of the files.
45
David Avendasora 14.1 46 If the LaunchDaemons are already loaded and you've made no changes, you should be able to start your application directly. If you've made changes and the LaunchDaemons are already loaded, you'll have to restart your machine to kick off launchd.
47
Kieran Kelleher 22.1 48 Steps 8, 9, 10. If that doesn't work, go back and double check every one of the settings. You'll probably find one of them has a typo or something. I am sure I did it three or four times before I finally got it all to work.