Kang-Ling Weng wrote: > Hello everyone, > > I am new in PHP and I am trying to configure php with > apache 2.0.35 and postgresql with this command: > > ./configure --with-pgsql=/usr/include/postgresql/ > --with-apache=/root/httpd-2.0.35 (look at the end of the mail for the > output) >
your problem is "-with-apache=...", with apache2 you must install php in DSO DSO mode, and your configure must be: ./configure --with-pgsql=/usr/include/postgresql/ --with-apxs2=/usr/local/apache2/bin/apxs (the right path depend to your apache installation) regards Franco > php 4.2.0 seem not to work with apache 2: > --- > 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... configure: error: > --with-apache does not work with Apache 2.x! --- > > Can somebody help me? > > --- SOME INFORMATION --- > I am using: Debian woody 2.2 Kernel > Apache 2.0 already running > Postgresql already running > --- END OF INFORMATION --- > > --- BEGIN OF OUTPUT --- > checking build system type... i586-pc-linux-gnu > checking host system type... i586-pc-linux-gnu > checking for a BSD compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... mawk > checking whether make sets ${MAKE}... yes > checking whether to enable maintainer-specific portions of Makefiles... no > checking for style of include used by make... GNU > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for executable suffix... > checking for object suffix... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking dependency style of gcc... none > checking how to run the C preprocessor... gcc -E > checking for AIX... no > checking for gcc... (cached) gcc > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking dependency style of gcc... (cached) none > checking whether gcc and cc understand -c and -o together... yes > checking for gcc option to accept ANSI C... none needed > checking how to run the C preprocessor... gcc -E > checking whether compiler supports -R... no > checking whether compiler supports -Wl,-rpath,... yes > checking for ranlib... ranlib > checking whether ln -s works... yes > checking for gawk... (cached) mawk > checking for bison... bison -y > checking bison version... 1.35 (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 gcc option to accept ANSI C... none needed > checking for an ANSI C-conforming const... yes > 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... configure: error: --with-apache > does not work with Apache 2.x! > > --- END OF OUTPUT --- > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php