On Thu, Jun 28, 2012 at 2:12 PM, Gordan Bobic <[email protected]> wrote:

> On 06/28/2012 01:52 PM, Adrian Hardy wrote:
>
>  The first thing I wanted to do when I got redsleeve on my Raspberry Pi
>> was see how it coped with a web dev stack, or however close I could get
>> to it. I've recompiled a few lightweight alternatives to Apache, php and
>> mysql
>>
>
> Cool stuff. Do you have a basic benchmark comparison between the standard
> Apache/PHP and NginX/PHP-FPM?
>

My main motivation is memory. The footprint for a single NginX worker is
about 4MB, and then you've got each PHP-FPM worker rolling in anywhere
between 2MB and 5MB depending on which PHP modules you enable. The problem
with apache is that mod_php (+ all extensions) must be loaded in for every
single request, even if you're only requesting a .css file. This is not
very memory efficient.  All that said, NginX is documented to be faster
than apache for serving static files, but about the same for PHP.


>
> > and put them on rpms.adrianhardy.co.uk
> > <http://rpms.adrianhardy.co.uk**>, which works as a YUM repo.
>
> Could you roll up something like adrianhardy-release rpm that brings the
> yum .repo config file and keys (if you are signing the packages) for your
> repository?
>

There's a lot that needs to be done to the packages before I sign them -
php-fpm RPM is still trying to chown directories using "apache" and I
should also mark the RPMs with .ah. somewhere to show they're not stock.
I'll read up on making an RPM from scratch to make the .repo file (I
normally butcher other people's SPECS, rather than make them).

What I'd *really* like to do is figure out how to make it so that the php
5.4 SPEC file I've used doesn't compile apache, apache-zts, etc etc which
could trim the compile time down to about 4 hours. The problem is I don't
know what I'm doing ^H^H^H I'm not an expert.

Thank you for the interest. I'll keep the list posted of any updates.

Adrian
_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

Reply via email to