Changes for page Running Through Apache - Leopard & Snow Leopard Client - Summary
Last modified by Aaron Rosenzweig on 2012/10/18 13:08
From version 36.1
edited by David Holt
on 2010/07/26 16:30
on 2010/07/26 16:30
Change comment:
There is no comment for this version
To version 38.1
edited by Pascal Robert
on 2010/08/20 19:50
on 2010/08/20 19:50
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. dholt1 +XWiki.probert - Content
-
... ... @@ -7,34 +7,52 @@ 7 7 8 8 The steps I took as outlined in the wiki pages above: 9 9 10 - ~1. Edit /etc/apache2/httpd.conf10 +1. Edit /etc/apache2/httpd.conf 11 11 Search for "Directory /" and comment out the Order and Deny lines: 12 12 13 +{{code}} 14 + 13 13 <Directory /> 14 -Options FollowSymLinks 15 -AllowOverride None 16 -Order deny,allow 17 -Deny from all 16 + Options FollowSymLinks 17 + AllowOverride None 18 + \#Order deny,allow 19 + \#Deny from all 18 18 </Directory> 19 19 22 +{{/code}} 23 + 20 20 Then search for "ServerName" and add 25 + 26 +{{code}} 27 + 21 21 ServerName localhost 22 22 30 +{{/code}} 31 + 23 23 Add a line that points to the WebObjects apache config file 33 + 34 +{{code}} 35 + 24 24 Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf 25 25 26 -2. My apache.conf (/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf) file contained the line to load the WebObject module 38 +{{/code}} 39 + 40 +1. My apache.conf (/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf) file contained the line to load the WebObject module 27 27 Confirm that apache.conf also includes: 28 -WebObjectsConfig [[http://localhost:1085]] 10 29 29 30 - 3. Add the launchd plist files necessary tostart monitor andwotaskd during system startup to your /System/Library/LaunchDaemons/ directory. If you are using WO 5.4.x you can probably find the plists at /Developer/Examples/JavaWebObjects/Deployment/launchd/ If you cannot find them there, you can find instructions to produce them here: [[WO 5.4 Getting Started]] If you do not specify WOHost in your plist, you will need to add the "WOHost=localhost" to the properties file in wotaskd (/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties)43 +{{code}} 31 31 32 -4. Change permissions of the launch daemon plists for wotaskd and monitor to **exactly** what is written in the wiki 33 -644 system/wheel/everyone 45 +WebObjectsConfig [http://localhost:1085] 10 34 34 47 +{{/code}} 48 + 49 +1. Add the launchd plist files necessary to start monitor and wotaskd during system startup to your /System/Library/LaunchDaemons/ directory. If you are using WO 5.4.x you can probably find the plists at /Developer/Examples/JavaWebObjects/Deployment/launchd/ If you cannot find them there, you can find instructions to produce them here: [[WO 5.4 Getting Started]] If you do not specify WOHost in your plist, you will need to add the "WOHost=localhost" to the properties file in wotaskd (/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties) 50 + 51 +1. Change permissions of the launch daemon plists for wotaskd and monitor to **exactly** what is written in the wiki 52 + 35 35 {{code}} 36 36 37 - //cdto theLaunchDaemonsdirectory and execute the following commands55 +$ cd /Library/LaunchDaemons/ 38 38 $ chmod 644 com.apple.webobjects.womonitor.plist 39 39 $ chmod 644 com.apple.webobjects.wotaskd.plist 40 40 $ sudo chown root:wheel com.apple.webobjects.womonitor.plist ... ... @@ -42,17 +42,21 @@ 42 42 43 43 {{/code}} 44 44 45 - 5. Set your launch parameters in your application:63 +1. Set your launch parameters in your application: 46 46 47 -WODirectConnectEnabled false 48 -WOHost localhost 49 -WOAdaptorURL [[http://localhost/cgi-bin/WebObjects]] 50 -WOPort 5555 65 +{{code}} 51 51 52 -6. Update mod//WO 67 +\-WODirectConnectEnabled false 68 +\-WOHost localhost 69 +\-WOAdaptorURL [http://localhost/cgi-bin/WebObjects] 70 +\-WOPort 5555 71 + 72 +{{/code}} 73 + 74 +1. Update mod//WO 53 53 You will need to replace your mod//WebObjects.so located at /System/Library/WebObjects/Adaptors/Apache2.2/mod//WebObjects.so with the appropriate version of [[mod//WebObjects//>>http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/]] This will allow you to use SSL and solves a lot of problems where pages return **No instance available** errors. Make note of the original file's permissions and duplicate them on the replacement. Once you do this, restart Apache.// 54 54 55 - 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.77 +1. 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. 56 56 57 57 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. 58 58