logo       

RE: WO app deployment on Linux no static image showing up [Permission issue: msg#00045

webobjects-deploy

Subject: RE: WO app deployment on Linux no static image showing up [Permission issue SOLVED]

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@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise