[Mono-list] Running CGI
Daniel Lopez
daniel@rawbyte.com
Sun, 19 Jan 2003 10:42:23 -0800
Mono is trying to create a directory for shared memory access. It does so by
default in the home directory of the user it is running as, in this case
the user apache is running as.
Try setting the HOME variable to something else or creating and giving write
permissions to /var/www/.wapi/ (bad idea security wise, but it will work)
Cheers
Daniel
On Mon, Jan 20, 2003 at 02:14:17AM +0800, Alan Tam wrote:
> Dear all,
>
> I am new to this mailing list. Please tell me if you have discussed this
> earlier.
>
> I have compiled a C# program with mcs and run it without problem in shell.
> However, when I tried to put it into apache 2.0 and run it, the following
> error is found in the error log. May I know how I can fix it? Thank you.
>
> [Mon Jan 20 02:18:04 2003] [error] [client 127.0.0.1] **
> (/var/www2/helloworld.exe:13206): CRITICAL **: _wapi_shm_attach: shared file
> [/var/www/.wapi/shared_data-0] open error: No such file or directory,
> referer: http://localhost:8200/
>
> Source:
> using System;
> using System.Collections;
>
> class HttpContext {
> public static void Main() {
> Console.WriteLine("Content-type: text/html");
> Console.WriteLine();
> foreach (DictionaryEntry entry in
> Environment.GetEnvironmentVariables()) {
> Console.WriteLine(entry.Key + "=" + entry.Value);
> }
> }
> }
>
> Regards,
> Alan
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list