Re: Deploying on Amazon EC
Re: Deploying on Amazon EC
- Subject: Re: Deploying on Amazon EC
- From: Alberto Hung <email@hidden>
- Date: Tue, 31 Mar 2015 13:44:20 -0430
Thank you, Pascal!
I changed the following lines in /etc/httpd/conf.d/webobjects.conf
WebObjectsDocumentRoot /opt/Local/Library/WebObjects/Applications
WebObjectsAlias /Apps/WebObjects
and now it is working… Sort of.
I thought the scripts also changed the conf files. The page
<https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat,+CentOS+or+Amazon+Linux>
should include the modifications above.
Thank you, everybody, for your help.
Alberto
On Mar 29, 2015, at 7:29 PM, Pascal Robert <email@hidden> wrote:
>
>> Le 2015-03-29 à 14:03, Alberto Hung <email@hidden> a écrit :
>>
>> Hi Paul,
>>
>> Thank you for your response.
>>
>> Yes, I can run the app directly. I can also create an instance using JavaMonitor. The problem seems to be WOAdaptor. When I omit “cgi-bin” from the URL I can access the contents of the woa file. You can see it here
>>
>> <http://www.cutlerme.com/WebObjects/Cutlerme.woa/>
>>
>> I assume when WOAdaptor is properly working I should not get this response.
>
> It is not, because you are getting a directory listing from Apache. For cgi-bin, did you disable the Script-Alias directive?
>
> https://wiki.wocommunity.org/display/documentation/Deploying+on+Linux?src=search
>
> « If you want to keep /cgi-bin/WebObjects as the base URL, you will need to remove a line in httpd.conf. Find the line that starts with ScriptAlias /cgi-bin and comment it out, or else Apache will try to find a WebObjects CGI in /cgi-bin instead of loading the adaptor from the Apache module. »
>
>> Issuing the command “httpd -M” the module “WebObjects_module” is listed. I guess this is WOAdaptor.
>>
>> What else should I check?
>>
>>
>> Alberto
>>
>>
>> On Mar 27, 2015, at 6:35 PM, Paul Hoadley <email@hidden> wrote:
>>
>>> Hi Alberto,
>>>
>>> On 28 Mar 2015, at 5:59 am, Alberto Hung <email@hidden> wrote:
>>>
>>>> Newbie here. I am trying to install a WO app on an Amazon EC. I followed the steps listed on this page
>>>>
>>>> <https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat,+CentOS+or+Amazon+Linux>
>>>>
>>>> to install wotaskd, JavaMonitor and the woadaptor. I uploaded the Application and WebServerResources files, decompressed, put them at /opt/Local/Library/WebObjects/Applications and /var/www/html/WebObjects respectively and changed the ownerships. No modifications were made to the conf files.
>>>>
>>>> Using JavaMonitor I started an instance of my app. But when I click on the link or type the URL directly in Safari I get a ‘was not found on this server’ message (404 Not Found).
>>>>
>>>> When I try ‘View site statistics and WOAdaptor information’ it just times out.
>>>>
>>>> What am I missing? Where should I start to fix this?
>>>
>>> Are you able to launch the application from the command line? Try running:
>>>
>>> $ /opt/Local/Library/WebObjects/Applications/YourApp.woa/YourApp
>>>
>>> directly and make sure it will start. We don't use the approach you've linked to above, so I'm not certain of the specifics, but you'll probably need to 'su' to some other user to try this, possibly 'appserver'—see who JavaMonitor is running as.
>>>
>>>
>>> --
>>> Paul Hoadley
>>> http://logicsquad.net/
>>>
>>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-deploy mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden