PDA

Bekijk de volledige versie : php-thttpd working for anyone



d3viant
05-01-2007, 23:53
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?

PillzburyDoofus
06-01-2007, 01:38
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.

d3viant
06-01-2007, 10:52
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

sollie
10-01-2007, 09:35
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.

sollie
10-01-2007, 10:07
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.

n00ben
11-01-2007, 00:16
I have php working with lighttpd and php-fcgi

just enable fcgi in lighttpd.conf and fix the paths

georgij
10-03-2007, 17:10
Hi
I want to execute script from PHP using exec command. I just do this

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 ?