Results 1 to 15 of 56

Thread: running php on wl500g

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sorry, I supposed that it was question related to thttpd+php behavior.
    Next time I'll better keep quiet.

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by Nabla
    Sorry, I supposed that it was question related to thttpd+php behavior.
    Next time I'll better keep quiet.
    I was not responding directly to you, but just posted a general 'warning'.

  3. #3
    Join Date
    Jan 2005
    Location
    Holland
    Posts
    9

    Compiling Thttp+PHP4 with mmap_fixed option enabled

    Yesterday I installed the thttp+PHP4 (thttpd-php4f_2[1].21b-2_mipsel.zip) on my Asus. It works really great! I want to thank Erik_Bies for the effort.

    There is only a small issue with this version of thttp . It loads the complete webpage/file into memory before sending abroad. Serving huge files (like zip files of > 50MB in size) from the Asus becomes a problem this way because of lack of memory (even with 32 Mb swap space ) .

    According to YATO there is solution for this (as decribed below):

    -------------------------
    Yato
    --> mmap v thttpd <--
    FYI
    By default thttpd is trying to load whole page to memory before sending it to client. This means that kernel will kill it, when somebody wants to download any huge file from your web.
    But it can be changed! Look for following lines in configure script:
    > if test "$cross_compiling" = yes; then
    > ac_cv_func_mmap_fixed_mapped=no
    WL500g CAN do mmap, so you can set ac_cv_func_mmap_fixed_mapped to yes.
    Then thttpd only memory-maps file and big files are served without impact on free memory.
    Friend compiled it for me, but without PHP.
    ---------------------

    Who is able to recompile the project with this flag/setting enabled. I would really appreciate it. It will make the thttpd more versatile.

    I am using Busybox_httpd at this moment. It can serve huge pages, but it does not support PHP4. Thttpd would be the ideal solution.

    Thanx in advance for effort ;-)

  4. #4
    Can you send me ipk package, i want too php in my Asus.

    thx

Similar Threads

  1. Running Giftd on wl500g
    By DeF in forum WL-500g/WL-500gx Tutorials
    Replies: 77
    Last Post: 17-04-2006, 12:57
  2. samba, ftp, I can`t get it running. PL Help!
    By atomilein in forum WL-500g Q&A
    Replies: 0
    Last Post: 23-04-2005, 08:51
  3. Samba running
    By erik_bies in forum WL-500g Custom Development
    Replies: 48
    Last Post: 23-01-2005, 20:16
  4. running a second webserver
    By ronin in forum WL-500g Q&A
    Replies: 25
    Last Post: 23-08-2004, 04:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •