Loading ...
Sorry, an error occurred while loading the content.

2984Re: [nslu2-general] Re: php-cgi?

Expand Messages
  • Mike Winter
    Nov 3, 2005
    • 0 Attachment
      Good luck! I'm tryingn nanoweb and apache now.

      pmankuzh wrote:

      >--- In nslu2-general@yahoogroups.com, Mike Winter <jm@t...> wrote:
      >--- message continues below ---
      >
      >Mike,
      >
      >Thanks for your info and help.
      >
      >- I have PHP package installed, I will try your binary when I get
      >home.
      >- I am using tRIO 1.5 for the RIO. Though I got Ampache working on
      >the SLUG working, I did not try to to connect RIO to it yet. I will
      >be trying it later. May be my lack of technical skills, I could not
      >get Ampache working on any port other than 80; main page will work,
      >but follow up links will not include the port in the URL and would
      >break. (So I moved the SLUG admin interface pages to another port)
      >- As regards Telnet breaking, you are absolutely right. I did not
      >have OpenSSH and the SLUG is on 192.168.0.10. I will fix it based
      >on your suggestions.
      >- I will try NANOWEB since the PHP includes CLI support.
      >
      >Thanks.
      >
      >
      > > pmankuzh wrote:
      > >
      > > >Mike,
      > > >
      > > >Would you mind sending me the binary you have compiled for using
      > > >Cherokee.
      > > >
      > > Sure, the file is availible at:
      > >
      > > http://www.thewinters.org/php-fcgi.tar.gz
      > >
      > >
      > > You'll probably need the whole PHP package installed as well.
      > > Just a note, cherokee idiotically hardcodes the path to PHP. The
      > > executable must be in:
      > > /usr/lib/cgi-bin
      > >
      > >
      > >
      > > Good luck!
      > > --Mike
      > >
      > > >I wanted to set up NSLU2 mainly for serving to my
      > > >ShowCenter and also as a music server for a RIO Audio Server,
      >using
      > > >Ampache. I had limited success to get all these working together
      > > >and also poor performance. Part of the issue is that I am not
      >very
      > > >technical. Apache appears to be resource heavy for my needs.
      > > >
      > > >
      > > Heh, I have a Rio Receiver conected to Ampache as well. I tried
      >to get
      > > Ampache running on the NSLU2, but I couldn't get it to work. I
      >have
      > > been running this setup on an old 200Mhz laptop, and I always had
      >some
      > > trouble getting the perl scripts to run fast enough to have a
      >responsive
      > > user interface. Which Rio firmware do you use?
      > >
      > >
      > > >I tried php-thttpd and AppWeb also, could not get them to work
      >with
      > > >PHP (specifically some issues with my set up for SwissCenter app
      >and
      > > >Ampache).
      > > >
      > > >I also would like the PHP web server (NANO WEB) but will require
      >it
      > > >to be re-compiled for NSLU2 to have the CLI support. HTTPI is
      > > >another web server (PERL based) for which some RIO Server apps are
      > > >available. I ran into some problem when I installed xinetd, I am
      >no
      > > >longer able to access using Telnet. Looks like I need to reflash
      > > >the firmware and start all over again.
      > > >
      > > >
      > > >
      > >
      > > You should probably install OPENSSH if you can get back in. As I
      > > remember, xinet.d by default limits connections to 192.168.1.0/24
      >(see
      > > /opt/etc/xinet.conf), which would disable telnet if your network
      >setup
      > > is other that 192.168.1.*. If it is, you might be able to change
      >the
      > > IP address of another machine on your network to 192.16.1.XXX,
      >and you
      > > might be able to telnet back in.
      > >
      > >
      > > >Does the php ipkg for NSLU2 include CLI support?
      > > >
      > > >
      > >
      > > I believe that the php ipkg includes CLI support only. I don't
      >know why
      > > they didn't include CGI/FCGI since it compiles automatically in
      >the build.
      > >
      > >
      > >
      > > Good luck!
      > > --Mike
      > >
      > > Note: please send any further e-mails to winter@h... This
      > > is a junkmail account.
      > >
      > >
      > > >Thanks.
      > > >
      > > >
      > > >--- In nslu2-general@yahoogroups.com, "Michael" <jm@t...> wrote:
      > > > >
      > > > > Thanks, I have tried this. My prefork section has
      > > > >
      > > > >
      > > > > <IfModule prefork.c>
      > > > > StartServers 1
      > > > > MinSpareServers 1
      > > > > MaxSpareServers 1
      > > > > MaxClients 6
      > > > > MaxRequestsPerChild 0
      > > > > </IfModule>
      > > > >
      > > > > To be honest tho, I thought this section wasn't used on the
      >slug,
      > > >and
      > > > > instead it used the "worker MPM". Changing these values will
      > > >reduce
      > > > > the number of processes, but there seems to be hard coded
      > > >minimums.
      > > > > Here is my "Worker MPM" section:
      > > > >
      > > > > <IfModule worker.c>
      > > > > StartServers 1
      > > > > MaxClients 3
      > > > > MinSpareThreads 1
      > > > > MaxSpareThreads 1
      > > > > ThreadsPerChild 1
      > > > > MaxRequestsPerChild 2
      > > > > </IfModule>
      > > > >
      > > > > I ended up giving up on Apache and using Cherokee with a self
      > > >compiled
      > > > > PHP-CGI (actually fast-cgi enabled; if anyone is interested I
      >can
      > > >send
      > > > > the binary). This seems to have all of the bells and whistles
      >as
      > > > > apache, but runs in much less memory. PHP is substantially
      >slower,
      > > > > however it is good enough for what I am doing (see the SLUG
      >enabled
      > > > > http://www.thewinters.org) FWIW that page loads in .15
      >seconds on
      > > > > apache, and 1.1 seconds on cherokee / cgi-php. It used to
      >take 1.7
      > > > > seconds until I did the "scrath off the resistor" speed
      >improvement
      > > > > (great hack!).
      > > > >
      > > > > I am using Simple PHP weblog as a frond end, and Kplaylist as a
      > > > > lightweight music server. Everything seems to run fine with
      > > >cherokee!
      > > > > Three virtual hosts, proftp, SSH, telnet, web/php, streaming
      >music!
      > > > > This is great.
      > > > > I have proftpd going as well for a business virtual host.
      > > > >
      > > > > Thanks for the help!
      > > > >
      > > > >
      > > > > --- In nslu2-general@yahoogroups.com, "Frenchy" <nbm_clan@y...>
      > > >wrote:
      > > > > >
      > > > > > --- In nslu2-general@yahoogroups.com, "Michael" <jm@t...>
      >wrote:
      > > > > >
      > > > > > > I'm trying to stream my MP3 libraries using one of the many
      > > >catalog
      > > > > > > applications availible. I have had a lot of trouble getting
      > > >php-apache
      > > > > > > to run without hogging a ton of memory. I always seem to
      >end
      > > >up with
      > > > > > > something like 14 processes running despite what is
      >specify in
      > > >the
      > > > > > > "worker" section of httpd.conf.
      > > > > >
      > > > > > Can you show your httpd.conf? There's some other sections in
      > > >there
      > > > > > that affect that... mine has something that looks like this:
      > > > > >
      > > > > > <IfModule prefork.c>
      > > > > > StartServers 8 <------------- 8 processes
      > > > > > MinSpareServers 5
      > > > > > MaxSpareServers 20
      > > > > > MaxClients 150
      > > > > > MaxRequestsPerChild 1000
      > > > > > </IfModule>
      > > > > >
      > > > > > $ ps -u apache
      > > > > > PID TTY TIME CMD
      > > > > > 6570 ? 00:00:00 httpd <----- surprise!
      > > > > > 6571 ? 00:00:00 httpd <
      > > > > > 6572 ? 00:00:00 httpd <
      > > > > > 6573 ? 00:00:00 httpd <
      > > > > > 6574 ? 00:00:00 httpd <
      > > > > > 6575 ? 00:00:00 httpd <
      > > > > > 6576 ? 00:00:00 httpd <
      > > > > > 6577 ? 00:00:00 httpd <
      > > > > >
      > > > > > Check that guy out, there's some other stuff in there too
      >though.
      >
      >
      >
      >
      >SPONSORED LINKS
      >Computer internet security
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=V04yaONvhRiZX9V-9vaMcA>
      > Computer internet business
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+business&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=QEM5QXY5E4yokvfp8I9OxA>
      > Computer internet access
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+access&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=GvFjo1UJpzPMTQeQeWH-9Q>
      >
      >Computer internet privacy securities
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+privacy+securities&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=2cAxh4C_HeZYnGK5pWGQjg>
      > Computer internet help
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+help&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=XyuTAshDdmCMqHSTUW6r1Q>
      > Computer internet connection
      ><http://groups.yahoo.com/gads?t=ms&k=Computer+internet+connection&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Computer+internet+connection&c=6&s=198&.sig=PWZ1Hrcj8Yl7bPjnNBOESg>
      >
      >
      >
      >--------------------------------------------------------------------------------
      >YAHOO! GROUPS LINKS
      >
      > * Visit your group "nslu2-general
      > <http://groups.yahoo.com/group/nslu2-general>" on the web.
      >
      > * To unsubscribe from this group, send an email to:
      > nslu2-general-unsubscribe@yahoogroups.com
      > <mailto:nslu2-general-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
      > <http://docs.yahoo.com/info/terms/>.
      >
      >
      >--------------------------------------------------------------------------------
      >
      >
      >
    • Show all 15 messages in this topic