• 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: Precompiled WOAdaptor for apache 2.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Precompiled WOAdaptor for apache 2.4


  • Subject: Re: Precompiled WOAdaptor for apache 2.4
  • From: Benjamin Chew <email@hidden>
  • Date: Thu, 06 Nov 2014 10:58:28 -0700

No problem, John. Glad someone tested my instructions out. ;) 

Yeah, setting up SSL is always a pain. I might have missed out some steps that I did for that...

Ben

On Thu, Nov 6, 2014 at 5:21 AM, John Pollard <email@hidden> wrote:
Ben,
Thanks for your notes which helped me to get the config up and running, so I am back using apache in dev.
Also good of you to make the binary available.
I gave up with: Include /private/etc/apache2/extra/httpd-ssl.conf
because it demanded a string of other modules be enabled and then a missing server.crt file, but I don’t need ssl in development for now.
I also use mod_rewrite which has changed a bit in config, but easy to google for those changes.
I deploy to apache2.2 still, so that switch will be saved for another day.
John

On 4 Nov 2014, at 20:40, Benjamin Chew <email@hidden> wrote:

Sorry for the confusion, the mailing list didn't like attachments over 300k and did not distribute my email below.

Here is a link to the binary:
https://www.dropbox.com/s/zxdbp1wbfx4uyuc/mod_WebObjects.so?dl=0

If you want to see how I got things to work, read on...

---------

Okay, I figured it out. Turns out that I needed to update my Xcode command line tools. 

These are the steps that you need to perform:

- Install Xcode (6.1)

- If you already had Xcode 6.1 installed, run this to reinstall the command line tools:
/usr/bin/xcode-select --install

- Add link to Xcode toolchain:
cd /Applications/Xcode.app/Contents/Developer/Toolchains
sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain

- Download Wonder adaptors
cd /tmp
svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors

- Edit makefile
vi /tmp/Adaptors/Apache2.4/Makefile
and remove the argument "-macosx_version_min 10.5"

- Build adaptor
cd /tmp/Adaptors
gnumake (some bits fail, but carry on)
gnumake Apache2.4

This creates mod_WebObjects.so
in /tmp/Adaptors/Apache2.4 

Other things that I had to do after I built the adaptor: 

- I then created the directory /System/Library/WebObjects/Adaptors/Apache2.4/ and moved the adaptor there

- Copied the apache.conf file from 
/System/Library/WebObjects/Adaptors/Apache2.2 
to 
/System/Library/WebObjects/Adaptors/Apache2.4

- Change the path in the 2nd line of apache.conf to:
LoadModule WebObjects_module            /System/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so 

- Make sure all the file permissions in the Apache2.4 directory were identical to the ones in the Apache2.2 directory

=== Steps below detail how I edited the stock Yosemite httpd.conf in /etc/apache2 ===

- Add line in httpd.conf:
Include /System/Library/WebObjects/Adaptors/Apache2.4/apache.conf

- Uncomment line:
Include /private/etc/apache2/extra/httpd-ssl.conf

- Change the "Directory /" section to allow access:
<Directory />
    AllowOverride none
    Require all granted <--- THIS IS A NEW APACHE 2.4 DIRECTIVE TO "ALLOW FROM ALL"
</Directory>

- I did find it a little weird that this was already in my httpd.conf (maybe it wasn't stock after all?), but if you don't have it, you need to add it:
<IfModule alias_module>
  ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1" <--- ADD THIS LINE
</IfModule>

Ben

Ben

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: 
 >Re: Precompiled WOAdaptor for apache 2.4 (From: Ken Anderson <email@hidden>)
 >Re: Precompiled WOAdaptor for apache 2.4 (From: Michael Kondratov <email@hidden>)
 >Re: Precompiled WOAdaptor for apache 2.4 (From: Benjamin Chew <email@hidden>)
 >Re: Precompiled WOAdaptor for apache 2.4 (From: Benjamin Chew <email@hidden>)
 >Re: Precompiled WOAdaptor for apache 2.4 (From: John Pollard <email@hidden>)

  • Prev by Date: Re: Precompiled WOAdaptor for apache 2.4
  • Next by Date: D2W Tiered Navigation
  • Previous by thread: Re: Precompiled WOAdaptor for apache 2.4
  • Next by thread: Re: Precompiled WOAdaptor for apache 2.4
  • Index(es):
    • Date
    • Thread