[Mono-list] Running CGI

Steven Balthazor stevenbalthazor@hotmail.com
Sun, 19 Jan 2003 19:58:17 -0700


I solved this problem by creating the directory 
#cd /var/www
#mkdir .wapi
#chown apache:apache .wapi
#chmod 700 .wapi

Permissions of 700 seem to be acceptable for the .wapi directory.

For others having issues with this; if you are getting a different directory
other than /var/www specified; this is caused by the home directory for the
"User" parameter specified in the httpd.conf file  (on my machine the
"apache" user has a home directory of /var/www).  

Cheers,
Steven Balthazor

-----Original Message-----
From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com] On
Behalf Of Alan Tam
Sent: Sunday, January 19, 2003 11:14 AM
To: mono-list@ximian.com
Subject: [Mono-list] Running CGI


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