Apache --wirsing

schibumi

Back to the root's
Apache und mod_php5 --wirsing

Hi

und frohes neues erstmal.
ne gescheite FAMPP zusammenstellung aus den Ports kann einen die letzten nerven kosten. Mein erstes Problem war: In welcher Reihenfolge sollen die unterschiedlichen sachen installiert werden. Zuerst der Apache dann Mysql und dann mod_perl und mod_php? Oder zuerst die Mod's und dann Apache? Wird ja nirgendwo beschrieben.

Also war mein erster Ansatz apache21 und dann PHP. Was auch funktioniert. Leider gabs Probleme mit mod_perl. Und da ich das dringen brauche für twiki, hab ich mir gedacht, ok steigste auf den 1.3 um und nimmst gleich den mit mod_perl. Was auch hingehauen hat (jedoch hab ich noch keine Möglichkeit herausgefunden, wie man schnell und einfach testet ob mod_perl funktionert --> perlskript in cgi-bin?) Jedenfalls wollte ich noch schnell mod_php5 installieren und da beiss ich mir gerade die Zähne aus. bei der ersten installation (also bei apache21) musst ich die apacheversion angeben für die das installiert werden soll. Aber genau dieser aufruf kommt jetzt bei der neuen installation nicht mehr und es wird dauernd versucht mod_php für apache2 zu installieren, obwohl apache 1.3 installiert ist. Deshalb bricht die installation immer wieder ab.
Errorcode schrieb:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
apxs:Error: Invalid query string `MPM_NAME':Error: Invalid query string `APU_BINDIR'
apxs:Error: Invalid query string `APR_BINDIR'
./configure: /apr-config: not found
./configure: /apu-config: not found
configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/www/mod_php5/work/php-5.0.3/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/mod_php5.
Nun hab ich schon die Ports lang/php5 und www/mod_php5 komplet gelöscht, mir aus dem port.tar.gz die ursrümgliche version geholt., cvsup dafür durchgeführt und nen portupgrade gemacht, jedoch kommt beim make install clean immer noch die gleiche haarstreubende fehlermeldung wie oben. Ich bin dann nochmals das configure durchgegangen, sowohl in php5 als auch in mod_php5 aber ich find die Einstellung nicht, wo ich das --with--apxs2 zu --with--apxs umstellen kann.

Inzwischen denke ich schon an die guten alte tar-ball installation noch... was eigentlich schade ist, da die Ports einem das geraffel ja abnehmen sollten.

Also wenn einer einen Tipp hat, dann raus damit

Gruss schibumi
 
Zuletzt bearbeitet:
Mach mal in www/mod_php5 ein make distclean.
Ich vermute es ist noch ne Konfigurationsdatei vorhanden von der vorherigen Installation.
 
Ich habs jetzt gepackt zu installieren. Die Lösung war:
Code:
/usr/ports/www/mod_php5/work/php-5.0.3/configure --with-apxs=/usr/local/sbin/apxs

Neues Problem:
Code:
<?php
echo "Hallo";
?>
liefert komischerweise diese fehlermeldung:
http://server/test.php schrieb:
Parse error: parse error, unexpected T_ECHO in /usr/local/www/data-dist/test.php on line 2
ist mir total unverständlich. Und dazu kommt noch, das auf dem ganzen System keine php.ini existiert (bis auf den ports....)

Irgendeiner eine Idee?

Gruss schibumi
 
Zuletzt bearbeitet:
gibt auch eine Fehlermeldung:
http://server/test.php schrieb:
Parse error: parse error, unexpected T_STRING in /usr/local/www/data-dist/test.php on line 2

Nachfolgend meine /usr/local/etc/apache/httpd.conf einstellungen:
Code:
LoadModule php5_module        libexec/apache/libphp5.so
AddModule mod_php5.c
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    <IfModule mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.php index.php3 index.html
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.php3 index.html
        </IfModule>
    </IfModule>
    <IfModule !mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.php index.html
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.html
        </IfModule>
    </IfModule>
</IfModule>
    <IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .php3s
    </IfModule>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    </IfModule>

    #
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    AddType application/x-tar .tgz
    # schibumi:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
Misskonfiguriert?
 
hej jetzt finde ich schon mein Posting bei google....
Mir ist das alles auf den Sack gegangen und ich hab den Server nochmal neu installiert. (war so und so eine neuinstallation) - Jetzt werde ich nicht mehr den Fehler machen und Apache2 installiernen...

Hab trotzdem nochmal eine Frage. Ist die Reihenfolge der Portinstalltion relevant?
Muss ich zuerst apache und dannd die mod_'s einspielen oder ist es egal?

Gruss schibumi
 
schibumi schrieb:
Jetzt werde ich nicht mehr den Fehler machen und Apache2 installiernen...

Also ich persoenlich habe keine Probleme mit Apache2+php4....

schibumi schrieb:
Hab trotzdem nochmal eine Frage. Ist die Reihenfolge der Portinstalltion relevant?
Muss ich zuerst apache und dannd die mod_'s einspielen oder ist es egal?

Gruss schibumi

An sich nicht, aber wenn du Apache1 haben willst, ist es wohl am einfachsten mod_php4 installieren, dann wird der Rest als Abhaengigkeit mit installiert.
 
Tomonage schrieb:
An sich nicht, aber wenn du Apache1 haben willst, ist es wohl am einfachsten mod_php4 installieren, dann wird der Rest als Abhaengigkeit mit installiert.
Hab zuerst Apache und dann mod_php4 installiert. Beim cleaning hab ich dann gesehen, das apache13 in der abhängigkeit ist. Dank dir trotzdem

Gruss schibumi
 
Also die Reihnfolge bei mir war apache21 und die mods hinterher.

mod_php5 ..
make WITH_APACHE2=yes APACHE2_PORT=www/apache21 install clean

dann noch httpd.conf konfen und alles lief wie geschmiert.
 
Zurück
Oben