[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache, PHP and Mysql on NSLU2



On Thu, 2007-06-21 at 22:07 -0400, Aaron Klein wrote:
> Has anyone gotten the treo of web apps installed and working on the
> NSLU2?  Maybe its not possible to get Mysql working due to the limited
> memory.  I have gotten apache running but its verion 1.3.X  I seem to

Sure! But as you say, memory is at a premium. So... take the 'small'
example from /usr/share/doc/mysql-server-5.0/examples (or something like
that...) and disable the innodb engine, you don't need that.
Furthermore, apache uses a lot of memory compared to, for example,
lighttpd. PHP5 uses less memory than PHP4 (according to php.net, read it
somewhere in the changelogs, new features, or ...).

I'm running wordpress + gallery2 (embedded) on my slug. It uses mysql
and lighttpd as backend servers. It is NOT fast. However, if you leave
it at that, swapping will occur, but not too frequently. If you also use
your slug for imap, samba, or other things, php will be swapped out when
checking your mail, and swapped in when accessing your site which is a
real pain in the ass (really, I know).

Furthermore: use caching wherever you can! Install eaccelerator from
source. You want it. Really. For wordpress you can download a caching
module, gallery2 has a caching module and I suspect most other cms
thingy's have too. You can also try something like varnish.

Good luck,

David



Reply to: