Your comment on

Name: 

Notify email: 

Comment:

  
       

 | Page 1 of 2 total pages | Next

Montag, 21 April 2008


mod_fcgid on Leopard's Apache server (64-bit)

Tagged as: , ,

here's what I did to make fcgid run in my leopard apache 64-bit environment:


Download and unstuff fcgid 2.2:


wget http://belnet.dl.sourceforge.net/sourceforge/mod-fcgid/mod_fcgid.2.2.tgz
tar -xzf mod_fcgid.2.2.tgz
cd mod_fcgid.2.2


now patch Makefile.

basically it is changing the path of top_dir from /usr/local/apache2 to /usr/share/httpd

and then add:

CFLAGS = -arch ppc -arch i386 -arch x86_64

and

CPPFLAGS = -arch ppc -arch i386 -arch x86_64

and

LDFLAGS = -arch ppc -arch i386 -arch x86_64


for the different architectures, so it compiles for 64-bit architecture.


you may also use the patch file and apply it like so:

wget http://www.farbflash.de/nix/fcgidpatch/Makefile_Leo.patch
patch -p0 Makefile < Makefile_Leo.patch



Now make and install the module:

make && sudo make install



If all went well you can check the architecture of the new module with:

file /usr/libexec/apache2/mod_fcgid.so


which should output something like:

/usr/libexec/apache2/mod_fcgid.so: Mach-O universal binary with 3 architectures
/usr/libexec/apache2/mod_fcgid.so (for architecture ppc7400):	Mach-O bundle ppc
/usr/libexec/apache2/mod_fcgid.so (for architecture i386):	Mach-O bundle i386
/usr/libexec/apache2/mod_fcgid.so (for architecture x86_64):	Mach-O 64-bit bundle x86_64



Now in order to use our new fcgid module we need to change the apache config and restart the server.

add the line to load the module to your httpd config file located at:

/etc/apache2/httpd.conf


LoadModule fcgid_module libexec/apache2/mod_fcgid.so
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .fcgi
  SocketPath /usr/lib/apache2/fcgid/sock
  SharememPath /usr/lib/apache2/fcgid/fcgid_shm
  IPCConnectTimeout 20
</IfModule>


And create the directory /usr/lib/apache2/fcgid/sock and make it writable to apache by chown it to _www

sudo mkdir -p /usr/lib/apache2/fcgid/sock
sudo chown -R _www /usr/lib/apache2/


That's it, now down't forget to restart the server:

sudo apachectl graceful

Add comment | /Dokumente/MacOSX/Leopard/ApacheModules | permanent link



Farbflash trac projects

Search

Tag cloud

Category
Show articles per page

RSS Feed

Links
  • 3DPI
    - Property Inspector to edit and explore all properties of a director #shockwave3d member. Without the 3DPI the whole 3-D stuff would be nearly undoable!
  • ULLALA
    Excellent examples and tutorials
  • DOUG
    Director online -- First place to look for Director related info
  • JAMES NEWTON
    another bunch of excellent demos and source code
  • MEKKA MEDIALIGHT LINGOWORKSHOP
    lots of excellent demos and source code from Luke Wigley
  • VALENTIN SCHMIDT
    lots of excellent xtras and source code. Home of the indispensable Shell Xtra!
  • XONKO
    Mark Hills site. Very good tutorials and other director and 3-D related stuff
  • INLUDO
    Barry Swans director demos and tutorials
  • Deans Director resources
    Dean Utians huge collection of resources and tutorials related to everything Director
  • THE HENDRIK DORGATHEN SITE
    not at all related to director, but one of my favorite graphic design art sites
  • SALINAS
    the site, of our local resistance against nuclear garbage (german)
  • TIMKID
    furniture for children (with some shockwave3d pieces)

Contact

Disclaimer

Donate
If one of the open source examples on this page helped you to get a paid job delivered, you might want to contribute and support my work by donating via PayPal...

Private
Login:
Passwort:

  
design and code by Alex da Franca