cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Anonymous
Not applicable
5,560 Views

web server on embedded linux for microblaze

hi everybody

I have brought up mainline linux on microblaze on my spartan3e board. now I want to install some web server and then php on it. can you help me to choose which web server and how to compile and run it?

thanks

0 Kudos
4 Replies
Highlighted
Explorer
Explorer
5,536 Views
Registered: ‎08-12-2007

I'd like to hear from experienced people too.

 

There is a list on wikipedia for the comparision between some light weight webservers.

http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_servers

 

First, as I know, apache is not light weight. It takes a lot of memory and resources.

For the web servers on PC, lighttpd and nginx is more and more popular now because of their performance.

Comparing to boa, lighttpd and nginx still have large footprint.

I think this is why boa is chosen in the post "cross-compile"

 

-Ricky

0 Kudos
Highlighted
Anonymous
Not applicable
5,530 Views

You can use the webserver included with busybox, but I'm not sure about compiling/integrating PHP.. I tried compiling Perl to use with it but I remember it being a big headache..

 

Terry

 

0 Kudos
Highlighted
Anonymous
Not applicable
5,526 Views

actually I need to compile PHP on my web server too.

 

I try to cross compile boa but it fails! I try this :

$ ac_cv_func_setvbuf_reversed=no CC=mb-gcc ./configure --host=i686-pc-linux-gnu

$make

 and I get this:

 


mb-gcc  -g -O2 -pipe -Wall -I.   -c -o alias.o alias.c
In file included from alias.c:26:
boa.h:41:19: error: netdb.h: No such file or directory
boa.h:42:24: error: netinet/in.h: No such file or directory
boa.h:44:22: error: sys/mman.h: No such file or directory
boa.h:45:24: error: sys/select.h: No such file or directory
boa.h:47:72: error: sys/socket.h: No such file or directory
In file included from boa.h:50,
                 from alias.c:26:
compat.h:104: warning: ‘struct direct’ declared inside parameter list
compat.h:104: warning: its scope is only this definition or declaration, which is probably not what you want
compat.h:108: warning: ‘struct direct’ declared inside parameter list
In file included from boa.h:52,
                 from alias.c:26:
globals.h:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘env’
In file included from alias.c:26:
boa.h:189: warning: ‘struct sockaddr_in’ declared inside parameter list
boa.h:190: warning: ‘struct sockaddr_in’ declared inside parameter list
make: *** [alias.o] Error 1

 

I also try to make boa for powerpc and it works fine.

 

what's the problem? what should i do?

 

0 Kudos
Highlighted
Adventurer
Adventurer
4,176 Views
Registered: ‎10-21-2013

IMHO you should specify include directories path for gcc (-I<include files dir path>)

0 Kudos