1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NGINX web server and PHP pages

Discussion in 'Tomato Firmware' started by diamuxin, Jan 1, 2014.

  1. diamuxin

    diamuxin Reformed Router Member

    Hello Victek

    As I set NGINX web server to run PHP pages. I have it configured in
    Code:
    /tmp/mnt/sda1/www 
    and my HTML page is OK but does not work PHP pages. I tried "phpinfo.php" with the code:

    Code:
    <? php
    phpinfo ();
    >
    
    And I get no response.

    Can you help?

    Thanks in advance.

    Sorry my bad English.
    Diamuxin

    My router: ASUS RT-N16 and my pendrive is formatted to FAT32
     
    Last edited: Jan 2, 2014
  2. koitsu

    koitsu Network Guru Member

    I can't help you directly, but this is incorrect/wrong/bad PHP code and will likely not parse/work:

    Code:
    <? php
    phpinfo ();
    >
    
    This would be correct PHP code:

    Code:
    <?php
    phpinfo();
    ?>
    
    Note the 3 changes: 1) no space between "<?" and "php", 2) no space between function name phpinfo and the parenthesis for argument passing, 3) closing parsing block is "?>" not ">".
     
    Last edited: Jan 4, 2014
    diamuxin likes this.
  3. Victek

    Victek Network Guru Member

    Bug:
    root@unknown:/tmp/home/root# php-cli -v
    php-cli: can't load library 'libz.so.1'
    root@unknown:/tmp/home/root# php-cgi -v
    php-cgi: can't load library 'libz.so.1'

    ln -s libz.so.1 libz.so.1.2.5 is missed when included aria2 ... (wip)...

    upload_2014-1-2_22-29-9.png

    Try version 1.2v for RT-N16U ... should work.

    upload_2014-1-2_23-14-44.png
     
    Last edited: Jan 2, 2014
    diamuxin likes this.
  4. MercuryV

    MercuryV Networkin' Nut Member

    diamuxin likes this.
  5. diamuxin

    diamuxin Reformed Router Member


    Hi Victek,

    Currently I have installed the stable version for RT-N16:
    Tomato RAF Firmware v1.28.9013 MIPSR2-RAF-K26 USB V1.2v

    But missing files you comment

    The RT-N16U is a different version? where is it?
     
  6. Victek

    Victek Network Guru Member

  7. Victek

    Victek Network Guru Member

    Solved .. followed in this post
     

Share This Page