OpenWrt Forum Archive

Topic: full server with WL-500G Deluxe + USB Harddrive

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

first of all sorry for my bad english. I am not a native english speaker (german).
Now my Problem.
I currently use a old 166 Mhz AMD maschine under Debian as router,web-server,file-server,dhcp,dns,mysql,...
Now i wanted to replace this with a Asus WL-500G.
For storage i planed to use a external USB 2.0 harddrive.
Because of this there is no need to shrink the size of executables.
This is important because e.g. Apache and mysql need a lot of space.
Now my question ist.
Is it possible to use the debian Mispel distribution ( http://www.debian.org/ports/mips/ ) on this Hardware or do i Need to compile my everything myself.
If I do need to compile everything by hand I think i need clibc and GCC on the ASUS
Is it possible to cross-compile it for Mipsel and what pros and cons do i have (exept from bigger exes) from using clibc and not uclibc?

Thanks in advance

Angel

Be aware that mysql needs lot of RAM and CPU, so the asus may be not a good choice.

Gunni

MySQL and Apache webserver on an WL-500g Deluxe ????

Thanks for your Answers.
But would it be possible?
And if yes How?

1st-angel wrote:

But would it be possible?

If you build ipkg package for Apache and MySQL server you could try it. As said, the performance would be bad.

Might I recommend something a little more sane such as perhaps a combination of:

tinyhttpd as your webserver and
sqlite as your SQL backend

both are very tiny and are designed specifically for embedded applications.  also if you use SQLite girls will like you more.

does tinyhttpd support php?

For PHP, you should have a look at lighttpd. I have build newer packages with version 1.3.14, and FastCGI module enabled.
Then, I managed to compile PHP 5.0.4 as CGI/FastCGI (with GD, FTP, OpenSSL), and this seems to be working, at least for the phpinfo() page. ( the binary is quite big, around 1.8Mb)
However, I have disabled the database extensions, but I think this sould be feasible to compile with them.

I'll try to post the package sources tonight for both these applications, as well as binary packages if you want to have a try.

thanks

aorlinsk,

do you have a patch against recent CVS for your FastCGI module ?
if so can you submit it for integration ?

what's the size of your php5 binary ?

Hello,

Here is the package source for lighttpd 1.3.14 with FastCGI module. It's just slightly modified from CVS, but I didn't try to build the packages within the source tree (only with the SDK). However, I have modified the Config.in file, so everything should work if you replace the old package/lighttpd directory with the contents of this one.

http://aorlinsk2.free.fr/openwrt/ipkg-src/

Btw, there is also a nano package that builds correctly. (I hate vi wink )

Concerning php, there  is a prerequisite if you want to have openssl functions enabled : a very minor patch on openssl Makefile, to re-enable disabled algorithms.
Then, the base php 4.3.11 executable is 1.5mb, a bit more for php 5.0.4 (around 1.8Mb). I have successfully
built some modules (ftp,gd).
My configure script is still not perfect, since some shared libs cannot be used (libpcre gets wrong object format errors, then php built-in pcre is used), but I doubt having a php executable smaller than 1Mb is possible. Using a squashfs filesystem can help a lot in this case.

Stay tuned, I'll try to post the pkg sources tonight.

Anael

aorlinsk,

any chance that you could publish the PHP 5.0.4 package ?

Many thanks,

  Oliver

The discussion might have continued from here.