I am running Fedora 3 with Apache 2.0.48 and MySQL4.0.16 installed and running properly. I am trying to get PHP installed and I am following a turtoial on
THIS website but I am getting an error. When I get to the part of the tutorial which syas:
______________________________________________________________
Compiling PHP
Change into the PHP source directory as follows;
#cd php-4.3.4
Follow this command by typing;
#./configure �prefix=/usr/local/php �with-apxs2=/usr/local/apache2/bin/apxs �with-mysql=/usr/local/mysql
Once the prompt comes back to you issue the following command;
_______________________________________________________________
I get the following:
_______________________________________________________________
[root@linux php-4.3.4]# ./configure -prefix=usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql
creating 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 gawk... gawk
checking for bison... bison -y
checking bison version... 1.875 (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/apache2/bin/apxs follows:
sh: line 1: 29325 Segmentation fault /usr/local/apache2/bin/httpd -l
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/local/apache2/bin/httpd'..
configure: error: Aborting
___________________________________________________________
I am very new to this and I tried to follow the suggestions but I don't know if Peral is installed. I have tried passing the path using "--with-apxs2=/path/to/apxs. I am not sure what they mean my suggestion #3, when I installed apache I followed the tutorial and used "#./configure �prefix=/usr/local/apache2 �enable-mods-shared=most (enter)" Any help would be greatly appreciated.
Thanks!