Supportnet Computer
Planet of Tech

Supportnet / Forum / Linux

Apache 1.3.33 & fastcgi





Frage

Hallo, Ich versuche gerade meinem Apache 1.3.33 beizubringen, dass er mittels fastcgi php laden soll. Leider komme ich aber mit dem kompilieren von fastcgi nicht zurecht. In der Anleitung steht folgendes: 1. Copy or move the mod_fastcgi distribution directory to <apache_dir>/src/modules/fastcgi. 2. Add the FastCGI module to <apache_dir>/src/Configuration. Note that modules are listed in reverse priority order --- the ones that come later can override the behavior of those that come earlier. I put mine just after the mod_cgi entry. AddModule modules/fastcgi/libfastcgi.a 3. From the <apache_dir>/src directory, reconfigure and rebuild Apache. <apache_dir>/src$ ./Configure <apache_dir>/src$ make Install the new httpd. 4. Edit the httpd configuration files to enable your FastCGI application(s). See docs/mod_fastcgi.html for details. 5. Stop and start the server. $ kill -TERM `cat <run_dir>/logs/httpd.pid` $ <run_dir>/bin/httpd -f <run_dir>/conf/httpd.conf Nun verstehe ich aber nicht ganz, was ich in Schritt 2 tun soll. Ich habe das Verzeichnis in das src/modules/ des Apaches kopiert. Wie kann ich aber nun das fastcgi-Module in /src/Configuration hinzufügen? Was soll ich mit: AddModule modules/fastcgi/libfastcgi.a tun? Gruß Tobias

Antwort 1 von Aprophis

ins httpd.conf / apache.conf (abhängig von Distri) soll diese Zeile hinein (es stehen auskommentierte AddModule zeilen.

Antwort 2 von TobiasSänger

Hallo,
Ich habe nun die Zeile in der httpd.conf (da Suse) eingefügt.
Nun bekomme ich beim Starten foglende Meldung:

Syntax error on line 280 of /usr/local/src/apache_1.3.33/conf/httpd.conf:
Cannot add module via name ´../src/modules/fastcgi/libfastcgi.a´: not in list of loaded modules

Was stimmt da noch nicht?

Gruß

Tobias

Antwort 3 von Aprophis

Hast du aus den Source kompiliert?

Antwort 4 von TobiasSänger

Hallo,
Ja habe ich.
Also ich habe nun folgendes getan:
Zuerst habe ich meinen Apache und auch das fastcgi von meinem Rechner entfernt.
Den Apache mit

./configure 
"--with-layout=Apache" 
"--prefix=/usr/local/src/apache_1.3.33" 
"--datadir=/srv/www" 
"--enable-module=most" 
"--enable-shared=max" 
"--enable-module=ssl" 
"--enable-module=ssl" 
"--enable-suexec" 
"--suexec-caller=wwwrun" 
"--suexec-docroot=/srv/www/htdocs/" 
"--suexec-gidmin=100" 
"--suexec-uidmin=100" 
"--suexec-logfile=/var/log/httpd/suexec.log" 
 

kompiliert.
Anschließend den fastcgi entpackt und in den Apache/src/modules/fastcgi reinkopiert.

Mit
 
./config.status  
                  --activate-module=src/modules/fastcgi/libfastcgi.a

habe ich dann den apache neu kompiliert und mit
 make && make install 

installiert.
So nun muss ich ja die httpd.conf noch so abändern, dass Fastcgi genutzt werden kann.
Also habe ich dann in die httpd.conf folgendes reingeschrieben:

FastCgiWrapper On
AddHandler php-fastcgi .php
<Location /cgi-bin/php-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
</Location>
Action php-fastcgi /cgi-bin/php-fcgi-starter
AddType application/x-httpd-php .php
 

Beim Starten bekomme ich dann aber immer folgende Fehlermeldung:

linux:/usr/local/src/apache_1.3.33/bin # ./apachectl configtest
Syntax error on line 682 of /usr/local/src/apache_1.3.33/conf/httpd.conf:
Invalid command ´FastCgiWrapper´, perhaps mis-spelled or defined by a module not included in the server configuration

Woran kann das liegen?

Gruß und Danke

Tobias

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: