I need to start playing with the PHP/CGI stuff in Yaws (Yuk!)
What I did is simply add php to allowed_scripts in the server directive:
port = 8080
listen = 0.0.0.0
docroot = www
allowed_scripts = [yaws,php]
But the script is not interpreted but simply return to the browser.
Do I need to add something more ?
Thank you for your help,
Mickael Remond schrieb:
> I need to start playing with the PHP/CGI stuff in Yaws (Yuk!)
> What I did is simply add php to allowed_scripts in the server directive:
> <server localhost>
> port = 8080
> listen = 0.0.0.0
> docroot = www
> allowed_scripts = [yaws,php]
allowed_scripts = yaws php
Sorry, the documentation sucks at that point.
> But the script is not interpreted but simply return to the browser.
BTW, since the behaviour used to be to return 404: Klacke has changed
that and noted, as he uses to, that the new behaviour is the only
sensible one. This time I am bound to agree :-) However I had aked
here before deciding on the behaviour, I just had not worded the
question in such a way that I would have gotten the answer I liked :-)
Carsten Schultz (2:38, 33:47)
PGP/GPG key on the pgp.net key servers,
fingerprint on my home page.
Carsten Schultz wrote:
> Sorry, the documentation sucks at that point.
No problem. I was too tired to look into the code yesterday, so I choose
the easy way :-)
Now, PHP seems enabled, but nothing happens. The browser is indefinitely
working for getting data.
I have compiled yaws_cgi with debug on and here is what I get from the
DEBUG <nonode@...> yaws_cgi.erl:309, pid <0.60.0>:
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511
DEBUG <nonode@...> yaws_cgi.erl:328, pid <0.60.0>:
End of clidata
The script is a simple PHP test script. It returns a result when run
from the command line: php test.php print out the correct HTML result.
PHP is executed. When I launch ps, I see that a php process is running.
Any idea ?
Bruce Fitzsimons wrote:
> Mickael Remond wrote:
>>PHP is executed. When I launch ps, I see that a php process is running.
> Try php-cgi. I forget how its different, but it "worked for me"(tm).
I recompiled PHP with CGI support instead of using the binary provided
with my distribution and it works,
Thank you !