Changes for page Running Through Apache - Leopard & Snow Leopard Client - Summary
Last modified by Aaron Rosenzweig on 2012/10/18 13:08
To version 32.1
edited by David Holt
on 2010/07/23 22:18
on 2010/07/23 22:18
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. ramsey1 +XWiki.dholt - Content
-
... ... @@ -1,6 +1,6 @@ 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: 2 2 3 -[[Development Tools-Running Through Apache]] 3 +[[Development Tools-Running Through Apache>>Development Tools-Running Through Apache]] 4 4 [[WO 5.4 Getting Started]] 5 5 6 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,14 +7,14 @@ 7 7 8 8 The steps I took as outlined in the wiki pages above: 9 9 10 -~1. Edit /etc/apache2/httpd.conf 10 +~1. Edit /etc/apache2/httpd.conf 11 11 Search for "Directory /" and comment out the Order and Deny lines: 12 12 13 13 <Directory /> 14 - 15 - 16 - #Order deny,allow17 - #Deny from all14 +Options FollowSymLinks 15 +AllowOverride None 16 +Order deny,allow 17 +Deny from all 18 18 </Directory> 19 19 20 20 Then search for "ServerName" and add ... ... @@ -24,8 +24,8 @@ 24 24 Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf 25 25 26 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: 28 -WebObjectsConfig http: ~/~/localhost:1085 1027 +Confirm that apache.conf also includes: 28 +WebObjectsConfig [[http://localhost:1085]] 10 29 29 30 30 3. 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) 31 31 ... ... @@ -32,12 +32,22 @@ 32 32 4. Change permissions of the launch daemon plists for wotaskd and monitor to **exactly** what is written in the wiki 33 33 644 system/wheel/everyone 34 34 35 +{{code}} 36 + 37 +// cd to the LaunchDaemons directory and execute the following commands 38 +$ chmod 644 com.apple.webobjects.womonitor.plist 39 +$ chmod 644 com.apple.webobjects.wotaskd.plist 40 +$ sudo chown root:wheel com.apple.webobjects.womonitor.plist 41 +$ sudo chown root:wheel com.apple.webobjects.wotaskd.plist 42 + 43 +{{/code}} 44 + 35 35 5. Set your launch parameters in your application: 36 36 37 - --WODirectConnectEnabled false38 - --WOHost localhost39 - --WOAdaptorURL http:~/~/localhost/cgi-bin/WebObjects40 - --WOPort 555547 +WODirectConnectEnabled false 48 +WOHost localhost 49 +WOAdaptorURL [[http://localhost/cgi-bin/WebObjects]] 50 +WOPort 5555 41 41 42 42 6. Update mod//WO 43 43 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.//