apache2/DOC/README.fcgi
2017-02-19 12:33:53 +01:00

69 lines
1.2 KiB
Bash

## - 1.) Installiere fcgi
## -
mkdir -p /usr/local/src/fcgi
cd /usr/local/src/fcgi
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
gunzip < fcgi-2.4.0.tar.gz | tar -xf -
cd fcgi-2.4.0
## - !! Bemerkung !!
## -
## - Die Datei include/fcgio.h muss angepasst werden.
## -
## - Ergänze hinter der Zeile die "#include <iostream>" enthält:
## -
## - #include <cstdio>
## -
## -----------------------
diff -Naur fcgi-2.4.0-ORIG/include/fcgio.h fcgi-2.4.0/include/fcgio.h
--- fcgi-2.4.0-ORIG/include/fcgio.h 2002-02-25 14:16:11.000000000 +0100
+++ fcgi-2.4.0/include/fcgio.h 2011-02-24 13:19:35.000000000 +0100
@@ -31,6 +31,7 @@
#define FCGIO_H
#include <iostream>
+#include <cstdio>
#include "fcgiapp.h"
## -----------------------
./configure
make
make install
## - 2.) Installiere mod_fcgi
## -
cd /usr/local/src/apache2
wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
gunzip < mod_fastcgi-2.4.6.tar.gz | tar -xf -
cd mod_fastcgi-2.4.6
cp Makefile.AP2 Makefile
make
make install
## - Add to httpd.conf
## -
## - #
## - # mod_fastcgi
## - #
## - LoadModule fastcgi_module modules/mod_fastcgi.so
## -
vim /usr/local/apache2/conf/httpd.conf