Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 56

Thread: running php on wl500g

  1. #16
    Join Date
    Feb 2004
    Posts
    103
    Ok, here is a working minimal build of the PHP4 enabled thhtpd
    The extensions are mostly disabled now, I'll see if I can build one that is more 'feature enabled'
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #17
    Yummy. Going to test this... Thanks Erik

  3. #18
    Join Date
    Dec 2004
    Location
    Hungary
    Posts
    22
    THTTPD works fine... :-)

    Which PHP commands are implemented? (The PHP echo is correct! ;-))

    SC
    Soundrel Days

  4. #19
    Most command are working.
    Funnily, preg_replace() doesn't, even if other text replace command do

  5. #20
    Join Date
    Feb 2004
    Posts
    103
    Ok and here is the (almost)full version.
    For me to sucessfully run it I have to add some swap space

    With this one I sucessfully run some of the nice scripts like Gallery & phpsysinfo

    Good luck
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by erik_bies; 11-01-2005 at 21:36.

  6. #21
    It is working fully for me. Even without swap space... Thanks for this Erik

    I can run guppy PHP server as frontend on the WL-hhd. Thats cool for testing and debugging.

  7. #22
    Join Date
    Dec 2004
    Location
    Hungary
    Posts
    22
    It works me too. Thanks for creators...
    Soundrel Days

  8. #23
    Here is a modified script to get HD info under phpsysinfo. You must replace the corresponding file in /include/os in your phpsysinfo root
    Attached Files Attached Files

  9. #24
    Join Date
    Dec 2004
    Location
    Hungary
    Posts
    22
    I tried the modified script. Correct!!!
    Soundrel Days

  10. #25
    It seems the more we have, the more we want. I Would like to add some libs. Did you have to modify your source? or was it a makefile optimisation story?

    Would you mind giving here your make info to add our own libs to the process?

  11. #26
    Quote Originally Posted by erik_bies
    I gave it a try and compiled these.

    Here is PHP3 & thttpd (without PHP4). I'll give the thttpd+php4 combi another try later, but sofar that resulted in a long list of errors

    For me it is working on 1.9.2.7-2 software.

    Good luck
    How do I install this?

    I use Firmware v.1.9.2.7 CR3

  12. #27
    copy it to router using ftp, run it using telnet
    something like ./thttpd-php4f_2.21b-2_mipsel -p 81 -d yoursourcefolder

    put some php files in the source folder, give them enough rights (get up stand up!) and learn how to use php.

  13. #28
    Join Date
    Feb 2004
    Posts
    103
    take the config file out of the PHP3 package
    than take the thhtpd+PHP4 file.
    edit the script with your desired directories. dump some files in the www directory (from config file)

    run
    thttpd -C thttp.conf
    make sure ur running it on a port different from port 80

    It seems the more we have, the more we want. I Would like to add some libs. Did you have to modify your source? or was it a makefile optimisation story?

    Would you mind giving here your make info to add our own libs to the process?
    there is a small change in the dns.c, and fiddeling with makefiles for the remaining. I'll try to dig up and make a wiki page
    BTW. thanks for the patch of the Linux.inc.php file. Do you maybe know why it does not want to see the 2nd file system?
    Last edited by erik_bies; 12-01-2005 at 23:44.

  14. #29
    It it shown using a mount command?

  15. #30
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Hmm, I'm giving phpsysinfo (2.3) a try and I get the following error:
    Code:
    Error: Linux is not currently supported
    Any ideas?

Page 2 of 4 FirstFirst 1234 LastLast

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
  •