Results 1 to 7 of 7

Thread: php-thttpd working for anyone

  1. #1

    php-thttpd working for anyone

    Hi

    I am trying to get php-thttpd running on my wl-700ge. It serves webpages fine, but instead of executing php files, it gives me a prompt to download them instead. Does anyone know of a way round this?

  2. #2
    Have you tried setting the permissions? First of all, make sure the permissions are set correctly on the php files, and then make sure the php interpreter is set properly.

  3. #3
    All of the php files have execute bits set on them correctly.

    I am not sure where the php interpreter gets put for thttpd, and what the settings should be for it

  4. #4
    I run php-info right now. I added the following line at the top of /opt/etc/php.ini:

    cgi.assign = ( ".php" => "/bin/php" )


    Sollie.

  5. #5
    I run php-info right now. I added the following line at the top of /opt/etc/php.ini:

    cgi.assign = ( ".php" => "/opt/bin/php" )


    Sollie.
    Last edited by sollie; 10-01-2007 at 15:03.

  6. #6
    I have php working with lighttpd and php-fcgi

    just enable fcgi in lighttpd.conf and fix the paths
    Last edited by n00ben; 12-02-2007 at 22:22.
    /regards
    Henrik

  7. #7
    Join Date
    Jun 2006
    Location
    Slovenia
    Posts
    26
    Hi
    I want to execute script from PHP using exec command. I just do this
    Code:
    	exec("/tmp/harddisk/kamera/arhiv.sh > /tmp/harddisk/kamera/arhiv.htm  &');
    But script is obviously not executed.
    I use php-thttpd. Maby I have to modyfy thttpd.conf ?
    Last edited by georgij; 11-03-2007 at 00:36.

Posting Permissions

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