Difference between revisions of "Mod fcgid installation"
From Kolmisoft Wiki
Jump to navigationJump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Execute following commands: | Execute the following commands: | ||
cd /usr/src/ | cd /usr/src/ | ||
Line 80: | Line 80: | ||
locate libtool | locate libtool | ||
As example we see: | As an example, we see: | ||
/usr/lib64/apr-1/build/libtool | /usr/lib64/apr-1/build/libtool | ||
So we need to edit file ''/usr/src/mod_fcgid.1.09/Makefile'' | So we need to edit file ''/usr/src/mod_fcgid.1.09/Makefile''. Change the line: | ||
top_dir = /usr/lib/httpd | top_dir = /usr/lib/httpd | ||
Line 92: | Line 92: | ||
top_dir = /usr/lib64/httpd | top_dir = /usr/lib64/httpd | ||
... and compile again. |
Latest revision as of 11:08, 29 April 2010
Execute the following commands:
cd /usr/src/ wget http://www.kolmisoft.com/files/packages/mod_fcgid.1.09.tar.gz tar -xzf mod_fcgid.1.09.tar.gz cd mod_fcgid.1.09 rm -fr Makefile touch Makefile
For Debian:
echo "# # Makefile for Apache2 # builddir = . top_dir = /usr/share/apache2 top_srcdir = \${top_dir} top_builddir = \${top_dir} VPATH = arch/unix/ include \${top_builddir}/build/special.mk APXS = apxs APACHECTL = apachectl EXTRA_CFLAGS = -I\$(builddir) #DEFS=-Dmy_define=my_value #INCLUDES=-Imy/include/dir INCLUDES=-I /usr/include/apache2 -I /usr/include/apr-0 #LIBS=-Lmy/lib/dir -lmylib all: local-shared-build clean:" >> /usr/src/mod_fcgid.1.09/Makefile
echo -e "\t-rm -f *.o *.lo *.slo *.la" >> /usr/src/mod_fcgid.1.09/Makefile make install
cp /usr/src/mor/apache2-conf/fcgid.conf /etc/apache2/mods-available a2enmod fcgid
For Centos/Fedora:
echo "# # Makefile for Apache2 # builddir = . top_dir = /usr/lib/httpd top_srcdir = \${top_dir} top_builddir = \${top_dir} VPATH = arch/unix/ include \${top_builddir}/build/special.mk APXS = apxs APACHECTL = apachectl EXTRA_CFLAGS = -I\$(builddir) #DEFS=-Dmy_define=my_value #INCLUDES=-Imy/include/dir INCLUDES=-I /usr/include/httpd -I /usr/include/apr-0 #LIBS=-Lmy/lib/dir -lmylib all: local-shared-build clean:" >> /usr/src/mod_fcgid.1.09/Makefile
echo -e "\t-rm -f *.o *.lo *.slo *.la" >> /usr/src/mod_fcgid.1.09/Makefile make install
touch /etc/httpd/conf.d/mod_fcgid_include.conf
echo " LoadModule fcgid_module modules/mod_fcgid.so <IfModule mod_fcgid.c> IPCCommTimeout 600 </IfModule> " >> /etc/httpd/conf.d/mod_fcgid_include.conf
Restart Apache.
Errors
/bin/sh: /usr/lib/apr-1/build/libtool: No such file or directory
Execute:
locate libtool
As an example, we see:
/usr/lib64/apr-1/build/libtool
So we need to edit file /usr/src/mod_fcgid.1.09/Makefile. Change the line:
top_dir = /usr/lib/httpd
to:
top_dir = /usr/lib64/httpd
... and compile again.