apache 2.0 with DSO ----- php 4.3.10 problems....
I want to setup up a phpgroup. The closet thing i found was
To get this to work the pre-requsites are as follow:
working MySql, Apache, PHP with at least mysql and imap support, and IMAP.
First things first.
Since the most flexible way Apache with PHP can be installed is as an Apache module …
I installed apache 2.0 with DSO …
everything fine … did well
Next i want ahead to install php 4.3.10 as a modukle and here is what i get :
> ./configure –with-mysql \
--with-apxs=/usr/local/apache/bin/apxs
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 re2c… exit 0;
checking for ranlib… ranlib
checking whether ln -s works… yes
checking for mawk… no
checking for gawk… gawk
checking for bison… no
checking for byacc… no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
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… configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch –with-apxs2
[root@li10-60 php-4.3.10]#
does anyone how to go ahead and fix it…..
i looked around could not find answers…
2 Replies
./configure --with-apxs2=/path/to/your/apxs --with-mysql
i.e. use '–with-apxs2=', not '--with-apxs=', and check that the path you specify after the = is the correct one.
Works now …