From: Przemysław \eRIZ\ P. <er...@pc...> - 2009-07-18 15:57:32
|
Hi! [2009-07-18] I'm trying to configure YAWS with PHP on Windows XP SP2. Unfortunately, something is going wrong because after configuration I receive blank page. I've configured YAWS as in the sample (http://yaws.hyber.org/cgi.yaws), with correct php_exe_path (when I changed file to non-existend path, YAWS report error, so that's ok), allowed scripts seems to be ok: allowed_scripts = yaws php cgi Of course, I use php-cgi executable. But I have no idea what's wrong - when I point browser to 127.0.0.1 - YAWS returns a blank page. I've runned with --debug parameter, there's nothing interesting what's associated with neither PHP nor CGI. For test, I tried something like that #!C:\server\php5\php-cgi.exe phpinfo() and saved as .cgi file. YAWS reports a crash: ###### =CRASH REPORT==== 18-Jul-2009::17:05:02 === crasher: initial call: yaws_cgi:cgi_worker/7 pid: <0.61.0> registered_name: [] exception error: enoent in function open_port/2 called as open_port({spawn,"./test.cgi"}, [{env,[{"SERVER_SOFTWARE","Yaws/1.84"}, {"SERVER_NAME","127.0.0.1"}, {"HTTP_HOST","127.0.0.1"}, {"GATEWAY_INTERFACE","CGI/1.1"}, {"SERVER_PROTOCOL","HTTP/1.1"}, {"SERVER_PORT","81"}, {"REQUEST_METHOD","GET"}, {"REQUEST_URI","/test.cgi"}, {"DOCUMENT_ROOT","d:/tmp/yaws"}, {"DOCUMENT_ROOT_MOUNT","/"}, {"SCRIPT_FILENAME","d:/tmp/yaws/test.cgi"}, {"PATH_INFO",[]}, {"PATH_TRANSLATED",[]}, {"SCRIPT_NAME","/test.cgi"}, {"REMOTE_ADDR","127.0.0.1"}, {"REMOTE_HOST","127.0.0.1"}, {"SERVER_ADDR","127.0.0.1"}, {"LOCAL_ADDR","127.0.0.1"}, {"QUERY_STRING",[]}, {"HTTP_ACCEPT", "text/html, application/xml;q=0.9, application/xhtml+xml, image /png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1"}, {"HTTP_USER_AGENT", "Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1"}, {"HTTP_TE", "deflate, gzip, chunked, identity, trailers"}, {"HTTP_ACCEPT_ENCODING", "deflate, gzip, x-gzip, identity, *;q=0"}, {"HTTP_ACCEPT_CHARSET", "iso-8859-1, utf-8, utf-16, *;q=0.1"}, {"HTTP_ACCEPT_LANGUAGE", "pl-PL,pl;q=0.9,en;q=0.8"}]}, {cd,"d:/tmp/yaws"}, exit_status,binary]) in call from yaws_cgi:cgi_worker/7 ancestors: [<0.54.0>,<0.53.0>,yaws_server,yaws_sup,<0.41.0>] messages: [{<0.54.0>,end_of_clidata}] links: [] dictionary: [] trap_exit: false status: running heap_size: 2584 stack_size: 24 reductions: 592 neighbours: ###### Erlang process is white-listed in my firewall. I don't know whether that matters but every YAWS start it returns an error "system cannot find specified path" but nothing happens (server works correctly except PHP what I mentioned above). I've tried to examine this error but it happens even with default conf supplied with installer. MIME types changing doesn't work too. I have no idea what should I do now. Any suggestions? YAWS version - 1.84 Logs are clean - nothing unusual. Regards, Przemysław "eRIZ" Pawliczuk -- WWW: http://eriz.pcinside.pl |