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

You are correct on the following:
I think the reason maybe appserver and www-data are the same group in www-data. is that right?
-- Correct.  That is because you created an "appserver" user and added the user to the "www-data" group and the assets you have at least have "read" ability for the "www-data" group.  This would solve the permissions issue with httpd/Apache2 being able to access your assets.
I created new user appserver and add it to www-data group. I am running wotaskd and Monitor as appserver.
-- Also your question here:
What is  "WebObjectsDocumentRoot" for in webobjects.conf? because we use 'Alias /WebObjects" in apache2.conf? do we need "WebObjectsDocumentRoot"?
-- The "WebObjectsDocumentRoot" is used by the WO Apache HTTP Adaptor to know where your WO application lives on the system.  Normally in Apache, you'd set the CGI_DOCUMENT_ROOT, but this directive handles it for you, at least according to the documentation I've read over.  Both the "WebObjectsDocumentRoot" and applicable "Alias" directives are required for WO 5.4 to operate correctly with Apache2.

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, Xiaowen wrote:
Hi, Daniel,
 
I created new user appserver and add it to www-data group. I am running wotaskd and Monitor as appserver.
 
Apache2 is installed by Ubuntu as root:root by default, wouldn't change that.
After root start apache, the real APACHE_RUN_USER is setup in envvars file as
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
 
 
1. in webobjects.conf, leave
 
WebObjectsDocumentRoot /Apple/Local/Library/WebServer/Documents
2. apache2.conf
 
Alias /WebObjects "/Apple/Local/Library/WebServer/Documents/WebObjects"
<Directory "/Apple/Local/Library/WebServer/Documents/WebObjects">

      AllowOverride All
      Order allow,deny
      Allow from all
</Directory>
3. sudo chown appserver:www-data "/Apple/Local/Library/WebServer/Documents/WebObjects/MySchool.woa/Contents"
 
NOW it's working, I can get image from
 
 
further intersting question coming out
my first throught was www-data:www-data for "/Apple/Local/Library/WebServer/Documents/WebObjects/MySchool.woa/Contents", so I changed it.
 
still working, get image from link above.
 
I think the reason maybe appserver and www-data are the same group in www-data. is that right?
 
[Question]
What is  "WebObjectsDocumentRoot" for in webobjects.conf? because we use 'Alias /WebObjects" in apache2.conf? do we need "WebObjectsDocumentRoot"?
 
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/archive%40mail-archive.com

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

Reply via email to