Project

General

Profile

mod_fastcgi.so

Added by R D over 12 years ago

Hi,
I'm trying to use fastcgi with the lighttpd web server. I have successfully create a simple example and changed lighttpd.conf file to include mod_fastcgi.
When booting I get the error "..mod-fastcgi.co: cannot open shared object file: No such file or directory"
I verified the file is missing in /usr/lib (I see other module's shared object files like mod_cgi.so).
How do I build this share object file for the arm (not sure what version of lighttpd is in the kernel)?
Assuming if I know the right lighttpd verison I can download it and cross-compile and just copy shared object file to arm, right? (I don't have to rebuild the kernel???).
Not sure what configure options, if any, are needed to compile the fastcgi module.
Please help.
Thanks,
Randy


Replies (8)

RE: mod_fastcgi.so - Added by Michael Williamson over 12 years ago

What filesystem are you using? You might be able to get it installed using opkg.

-Mike

RE: mod_fastcgi.so - Added by Michael Williamson over 12 years ago

So anyway, the mod-fastcgi.so should not require you to rebuild the kernel. You should be able to download it, "configure" it, and install it on your platform filesystem.

-Mike

RE: mod_fastcgi.so - Added by R D over 12 years ago

Hi Mike,
Should have mentioned Linux and Lighttpd are very new for me.
I had assumed I could just compile the lighttpd included in the ti-sdk-am335x-evm-05.03.02.00 and transfer it to the AM3359 module.
However, I do no know how to do that and cannot find out which version of lighttpd is already included.

So what your saying is I should:
Remove the lighttpd on my current AM3359 module
download the latest version of lighttpd (Debian: http://packages.debian.org/source/lighttpd ???)
cross compile it
and download to AM3359 board

Thanks,
Randy

RE: mod_fastcgi.so - Added by R D over 12 years ago

Hi Mike,

I found out the version of the lighttpd based on one of the included shared libraries.
I have downloaded that version and successfully cross compiled it using arm-arago-linux-gnueabi-gcc
However, when compiling only the static library files have been created.
Even after using --enable-shared and disabled-static I get:
./configure
...
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to built static libraries... yes

I thinking soon as I compile the shared library I can just transfer it to the host device.
Any help would be appreciated.
Thanks,
Randy

RE: mod_fastcgi.so - Added by Scott Gerenser over 12 years ago

Randy,

Could you give me a link to where you downloaded the lighttpd source? Also once you downloaded it, can you give me the exact steps you took to build it? It sounds like you're on the right track but there's just something simple missing.

-Scott

RE: mod_fastcgi.so - Added by R D over 12 years ago

Scott,

Downloaded from:
http://download.lighttpd.net/lighttpd/releases-1.4.x/
lighttpd-1.4.26.tar.gz 2010-Feb-07 21:13:38 762.0K application/octet-stream

after extracting here is what I did:
sudo apt-get install libtool
export CC=/usr/local/ti-sdk-am335x-evm-05.03.02.00/linux-devkit/bin/arm-arago-linux-gnueabi-gcc
./configure --host=arm-linux --enable-shared --disable-static --without-pcre
make
sudo make install

Only end up with static library files.
Thanks,
Randy

RE: mod_fastcgi.so - Added by Michael Williamson over 12 years ago

Try "--host=arm-angstrom-linux-gnueabi" instead....

-Mike

RE: mod_fastcgi.so - Added by R D over 12 years ago

Hi Scott,

Tried that with no luck...
however I was looking through the lighttpd documentation and saw I forgot to build the dependencies.
I added "apt-get build-dep lighttpd" and then tried to build and it generated the shared library.

Hopefully if works when I download it to the AM3359.
Thanks for your help.
Randy

    (1-8/8)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)