• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compiling Apache adaptor on Mac OS X 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Apache adaptor on Mac OS X 10.8


  • Subject: Re: Compiling Apache adaptor on Mac OS X 10.8
  • From: Samuel Pelletier <email@hidden>
  • Date: Thu, 18 Jul 2013 12:58:41 -0400

Thanks Bastien, it worked.

Has I use a apache2.4 in a custom location, I adjusted your command with my apxs to:

make ADAPTORS=Apache2.4 LTFLAGS='--tag CC' APXS2.2=/Kaviju/Web/apache2/bin/apxs

After spending too much time with the default Apache 2.4 configuration to get rid of the "Forbidden" error without allowing access to /, I think my solution may help others.

In the httpd.conf file:

 - Change the ScriptAlias directive to the Apple default one:

ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"

- Add the web object config include (adjust to the location of the file, mine is in the apache conf directory):

Include conf/webobjects.conf

In the webobjects.conf file:

Adjust the WebObjects module configurations:

WebObjectsDocumentRoot /Kaviju/Web/websites/web.kaviju.com
WebObjectsAlias /apps/WebObjects

Add these lines to allow access to the apps in all virtual hosts:

<Location /apps/ >
   Require all granted
</Location>

Samuel

Le 2013-07-15 à 17:33, Bastian Triller <email@hidden> a écrit :

$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/{XcodeDefault,OSX10.8}.xctoolchain
$ cd ~/git/wonder/Utilities/Adaptors
$ make ADAPTORS=Apache2.2 LTFLAGS='--tag CC'


On Mon, Jul 15, 2013 at 9:36 PM, Chuck Hill <email@hidden> wrote:
No help from me, but I ran into this recently.  I did not really need it, so I just ran away.


On 2013-07-15, at 12:14 PM, Samuel Pelletier wrote:

> If I specify only CGI, it build. Any other fail with the errors I quoted.
>
> The build script probably broke with the xCode release that removed gcc many months ago. It just seems people are not compiling adaptor often.
>
> Samuel
>
> Le 2013-07-15 à 13:00, John Huss <email@hidden> a écrit :
>
>> Try this  - from BuildingInstructions.html:
>>      • Select the adaptor that you want to build by editing the ADAPTORS variable in make.config. You can build multiple adaptors for different web servers at the same time.
>>
>>
>> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier <email@hidden> wrote:
>> Hi,
>>
>> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6 command line tools installed.
>>
>> The default make stop at FastCGI with an error:
>> lipo: can't figure out the architecture type of: /var/folders/jz/k0w8zpfd7w7b04zt077cs1140000gn/T//ccc2vy1M.out
>>
>> If I go to the Apache2.2 directory and make, another error:
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>>
>> In Apache 2.4, same error.
>>
>> I tried to add this --tag=CC thing that seems missing somewhere but I cannot figure where it should be added. Adding it to a gcc line produce another error:
>> cc1: error: unrecognized command line option "-ftag=CC"
>>
>> Is there someone who understand all these makefile and flags to help me fix this?
>>
>> Samuel
>>
>>
>>
>>  _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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

--
Chuck Hill
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!













 _______________________________________________
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


 _______________________________________________
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

References: 
 >Compiling Apache adaptor on Mac OS X 10.8 (From: Samuel Pelletier <email@hidden>)
 >Re: Compiling Apache adaptor on Mac OS X 10.8 (From: John Huss <email@hidden>)
 >Re: Compiling Apache adaptor on Mac OS X 10.8 (From: Samuel Pelletier <email@hidden>)
 >Re: Compiling Apache adaptor on Mac OS X 10.8 (From: Chuck Hill <email@hidden>)
 >Re: Compiling Apache adaptor on Mac OS X 10.8 (From: Bastian Triller <email@hidden>)

  • Prev by Date: Re: create new to-many objects in d2w
  • Next by Date: Re: WOWODC 2013 presentations
  • Previous by thread: Re: Compiling Apache adaptor on Mac OS X 10.8
  • Next by thread: Your slides from WOCommunity : Deployment of WebObjects applications on CentOS Linux
  • Index(es):
    • Date
    • Thread