Title: WO app deployment on Linux no static image showing up
Hi Ren,

You're close.  You basically need to do the following:

1. In webobjects.conf, leave the following, if it's working correctly:
WebObjectsDocumentRoot /Library/WebServer/Documents
2. You are correct in putting your static assets here:
/Library/WebServer/Documents/WebObjects/MySchool.woa/Contents/WebServerResources
3. In apache2.conf, use this:
Alias /WebObjects "/Library/WebServer/Documents/WebObjects"
<Directory "/Library/WebServer/Documents/WebObjects">
      AllowOverride All
      Order allow,deny
      Allow from all
</Directory>
4. As a test, do the following from console/shell under Ubuntu:

a. sudo chown www-data:www-data "/Library/WebServer/Documents/WebObjects/MySchool.woa/Contents/WebServerResources/basicbrain.gif"
b. Test http://156.13.128.145/WebObjects/MySchool.woa/Contents/WebServerResources/basicbrain.gif from browser.

If the test works:

c. sudo chown -R www-data:www-data "/Library/WebServer/Documents/WebObjects/"

If it doesn't work, you've got permission issues within /Library you need to fix so that Apache2 user/group that it's running under can read the files.

Note:  I don't have a "default" instance of Apache2 running under Ubuntu so I'm not sure if it's running as user "www-data" or "apache".  If it's "apache", change the chown user from "www-data" to "apache".  Also, if you're deploying as "appserver", and Apache2 is running under "www-data", you can change the system's umask to 002 and add the "appserver" group to the www-data/apache user.  That way you're not using different users for the static and WO part of the deployment.  This is the preferred way.

Let me know how it goes.  You're almost there.

Cheers,
Daniel
-- 
Daniel Kao - Seattle, WA, U.S.A.
Übermind, Inc. * http://ubermind.com/ * "Your Vision, Our Experience"
WOlastic * http://wolastic.com/ * "WebObjects in the Cloud"


Ren, Kevin wrote:

Hi,

I managed starting wo app from Monitor and I can get it from link like:
http://156.13.128.145/Apps/WebObjects/MySchool.woa

That's mean request go through HTTP adaptor, but the image not showing up from /WebObjects/MySchool.woa/Contents/WebServerResources/basicbrain.gif"

1. In webobjects.conf I set up
WebObjectsDocumentRoot /Library/WebServer/Documents
I put image source under /Library/WebServer/Documents/WebObjects/MySchool.woa/Contents/WebServerResources

But nothing come out.

Is this right place for WebServerResources?
Because I found something in apache error log
[Fri Jul 03 16:21:35 2009] [error] [client 166.6.25.81] File does not exist: /htdocs, referer: http://156.13.128.145/Apps/WebObjects/MySchool.woa

I don't know where is setup this /htdocs. Maybe it's default setup somewhere, but not for Ubuntu.

2. I tried setup something in apache2.conf
Alias /WebObjects "/Local/Library/WebServer/Documents/WebObjects"
<Directory "/Local/Library/WebServer/Documents/WebObjects">
      AllowOverride All
      Order allow,deny
      Allow from all
</Directory>
 
I copy all WebServerResources under "/Local/Library/WebServer/Documents/WebObjects/MySchool.woa/Contents/WebServerResources"

Then in error log I got
[Fri Jul 03 16:22:23 2009] [error] [client 166.6.25.81] (13)Permission denied: access to /WebObjects/MySchool.woa/Contents/WebServerResources/basicbrain.gif denied, referer: http://156.13.128.145/Apps/WebObjects/MySchool.woa

So question is who should be the owner for this WebServerResources in Ubuntu( not Mac, appserver), www-data?

Thanks

kevin

 

"This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/dkao%40ubermind.com

This email sent to d...@ubermind.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to