[Erlyaws-list] YAWS with PHP on Windows XP problem

Carl McDade carlmcdade@REDACTED
Wed Jul 29 06:19:29 CEST 2009


Hi,

Confirming: I just tried this on Vista,PHP-CGI.exe and got the same
result, which is a blank page and no error outside of the path error
in the interactive window.

/Carl



On Tue, Jul 21, 2009 at 3:14 AM, andrew mmc<andrewmmc@REDACTED> wrote:
> Forgive me if I'm stating the obvious now, but I think the first problem was
> because the file extension was cgi, it tried to execute the file, which it
> couldn't do because it is on windows.  When you changed the extension to
> php, yaws knew to pass through the file as a parameter to the php executable
> - the correct behaviour.
>
> I think the problem is now with php.  PHP has some default behaviour set for
> security reasons.  e.g. on *nix you have to explicitly compile it with the
> option to run as cgi.  It also by default will not allow itself to execute
> anything outside of its docroot, so perhaps the test file isn't in or below
> the docroot set in php.ini?
>
> Otherwise, perhaps some of the other cgi specific options there could have
> an effect?
>
>
> 2009/7/21 Claes Wikstrom <klacke@REDACTED>
>>
>> > Yes, this path exists. And it's correct - YAWS throws an error with
>> > incorrect path.
>> >
>> > ("serwer" it's a Polish pronounceation of server, sorry for that - I've
>> >  to change it but later ;))
>> >
>>
>> Nice :-)
>>
>> > Still, problem is unresolved...
>>
>> I'll take a look at it - but not now. As I said before, this just
>> needs to be debugged. I.e yaws_cgi.erl needs to be debug modified
>> so that we
>>
>> 1. see what get's open_ported() ed
>> 2. figure out why that doesn't work.
>>
>>
>>
>> /klacke
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Erlyaws-list mailing list
>> Erlyaws-list@REDACTED
>> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@REDACTED
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
>



-- 
Carl McDade
Lead Developer
____________________

FireOrb CMS
www.fireorb.info


More information about the erlang-questions mailing list