Thanks for your answer; some very helpful tips under the link you provided. However, the install procedure is only a little bit different from what I did and I rather doubt if the difference could be responsible for the error. I now think it is not an issue of WordPress but of PHP, as the simplest ‘hello world’ PHP script gave me the same error. What I’d like to know is whether php-cgi.exe, when executed directly, is supposed to give the error ‘not a valid win32 application’, but I guess that this forum is not the best place to ask this ??