Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Apache, Lighttpd, nginx, Cherokee
Post Reply
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by randar »

Hi

ich wollte php instalieren, aber er instaliert dieses immer als cgi, was kann ich tun damit er es als mod_php instalier? ( hab php 4.3.3 )
root
Posts: 42
Joined: 2002-12-10 18:24
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by root »

dafür musst du uns schonmal deine configure anweisung preisgeben und sagen nach welchen howto du es gemacht hast!
darkspirit
Posts: 553
Joined: 2002-10-05 16:39
Location: D'dorf
Contact:
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by darkspirit »

Ich würde dir den Config-Parameter --with-apxs bzw. --with-apxs2 empfehlen.. siehe PHP-Manual.
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by randar »

Ich habs nach dem Tutorial hier in der faw gemacht. Name des Tutorials steht im topic.

Ihr mein code
./configure --enable-track-vars --enable-versioning --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --disable-ipv6 --disable-debug --with-apxs2=/usr/local/bin/apxs --with-config-file-path=/usr/local/conf --prefix=/usr/local --sysconfdir=/usr/local/conf --silent

edit:

Jetzt bekomme ich folgendes ausgegeben:
loading cache ./config.cache
Setuid/gid script is writable by world.
configure: error: Aborting
Dann habe ich mal ohne das --silent gemacht und da kam folgendes raus.
linux:/home/js-mueller/Webserver/php-4.3.3 # ./configure --enable-track-vars --enable-versioning --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --disable-ipv6 --disable-debug --with-apxs2=/usr/local/bin/apxs --with-config-file-path=/usr/local/conf --prefix=/usr/local --sysconfdir=/usr/local/conf --disable-cgi
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.75 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

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...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/bin/apxs follows:
Setuid/gid script is writable by world.
configure: error: Aborting
Ich habs aber alles genau nach dem tut hier im Forum gemacht, der apache läuft auch :-/
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by Joe User »

Du wirst wohl Apache (re)kompilieren müssen... (Fehlerquelle Nr. 3)
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by randar »

Hmm aber ich bin mrir sicher das ich ihn wie im tut kompiliert habe. Naja ich versuch es einfach nochma
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: Webserver tutorials ( Webserver: Apache2, PHP4.3 und MySQL 4

Post by randar »

So jetzt funktioniert alles einwandfrei, hab das --enable-so rangehängt und alles geht nun *froi* :-D

DANKE
Post Reply