|
Your comment on
|
||
![]() |
||
FarbflashMultimedia Production |
|
||
|
home :: Dokumente :: MacOSX :: Leopard :: ApacheModules :: fcgid.html Montag, 21 April 2008mod_fcgid on Leopard's Apache server (64-bit)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
apache,
apache
Category
RSS Feed
Links
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
|
||