Navigation Content
Apache 2 + Leopard + Coldfusion 8
March 8, 2009
Here are instructions for using ColdFusion 8 with Apache 2.2 under Leopard 10.5.4+. This may work on earlier versions, but I won't make any promises. It took me quite a bit of effort to get this going correctly. These directions are a combination of helpful bits from Scott Pinkston and Mark Drew, so thanks to them for their work and any other sources that may have been involved.
  1. Start the ColdFusion 8 installer.
  2. Select the option for multiple servers.
  3. Select an installation directory. This should be the root for your sites.
  4. Add a web server, select apache. For the first option replace /etc/httpd with /etc/apache2.
  5. Complete the installation.
  6. The service will be unable to start and you will get a message saying so.
Perform the following Terminal commands to correct the connector issue and restart when all is complete: *
  • cd /Applications/JRun4/lib
  • unzip -d src wsconfig.jar
  • cd src/connectors/src
  • apxs -c -Wc,-arch -Wc,i386 -Wl,-arch -Wl,i386 -n jrun22 \
    mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c \
    platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c
  • apxs -i -n jrun22 -S LIBEXECDIR=/Applications/JRun4/lib/src/connectors/src/ mod_jrun22.la
  • strip mod_jrun22.so
  • sudo java -jar /Applications/JRun4/lib/wsconfig.jar
  • sudo cp /Applications/JRun4/lib/src/connectors/src/mod_jrun22.so \
    /Applications/JRun4/lib/wsconfig/1/mod_jrun22.so
  • sudo apachectl restart
* Replace the corresponding segment in the compile step with the one that matches your architecture:
  • ppc7400: -Wc,-arch -Wc,ppc7400 -Wl,-arch -Wl,ppc7400
  • ppc64: -Wc,-arch -Wc,ppc64 -Wl,-arch -Wl,ppc64
  • i386: -Wc,-arch -Wc,i386 -Wl,-arch -Wl,i386
  • x86-64: -Wc,-arch -Wc,x86_64 -Wl,-arch -Wl,x86_64
If you get any heartburn about Apache being a 64-bit binary, there are a few commands that will allow you to run it in 32-bit mode so CF8/Jrun get along with it. This is reversible and if ppc7400 is not your architecture, it must be changed to the appropriate one (32-bit mode will either use ppc7400 or i386). Run the following commands in Terminal:
  • sudo mv /usr/sbin/httpd /usr/sbin/httpd.ub
  • sudo lipo -thin ppc7400 /usr/sbin/httpd.ub -output /usr/sbin/httpd.ppc7400
  • sudo ln -s /usr/sbin/httpd.ppc7400 /usr/sbin/httpd
Wall
Leave me a comment! Blog commenting will be available soon, but hit my wall until then!
Hey Baby! Haven't seen the site in awhile so I thought I would check it out!!! I think it looks great!!!
Woo! I like this site layout a lot
Nice layout. Good Job Mate :)
I think the website looks awesome!!! I am so very proud of you!! ~ M