i compiled mod_rewrite using gcc, coz' i was having trouble compiling it
using apxs.
gcc -fpic -o mod_rewrite.so -DSHARED_MODULE -I /usr/include/gdbm/ -I
/usr/local/apache/include/ -c mod_rewrite.c
i get mod_rewrite.so
i copy it to apache libexec and add the load module directive to httpd.conf
and i get the following error.
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_rewrite.so into server: ELF file's
phentsize not the expected size
any one can give a clue on what can be wrong ?
when i do
/usr/local/apache/bin/apxs -i -a -c mod_rewrite.c
i get the following error.
apxs:Break: Command failed with rc=16777215
any clues on this ?
regards,
saurabh