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