[mapserver-users] Re: I need help with mapserver and windows 2003

Richard Greenwood richard.greenwood at gmail.com
Tue Jul 12 08:35:24 EDT 2011


On Tue, Jul 12, 2011 at 4:48 AM,  <dmoralesnet at gmail.com> wrote:
> I have a problem.
> Calling the mapserv.exe cgi I get an error message from memory.
> The application failed to start properly error (0xc0150002).
>
> The server operating system is 2003 and service pack 2
> What other requirements necessary to run the CGI mapserver on this server Windows 2003?
>
> thank you very much
>

dmoralesnet -

It's best to post your question to the MapServer Users mailing list.
You can join the list here:
http://www.mapserver.org/community/lists.html and I have included the
list in my reply.

If you can use Apache instead of IIS I recommend that based on
personal preference, but if that is not an option, here are my notes
on setting up mapserver on Windows 2003. I had particular difficulty
where the Windows 2003 server was also a domain server, so there are
steps in the notes below that you may omit.

Short version:

Create a Web Service Extension "mapserver"
   Add mapserv.exe and all .dll
Create Virtual Directory
   Assign Application Name: "mapserver"

Domain Security Policy
  <or???>
Domain Controller Security Policy
   Local Policies
      User Rights Assignment
         Adjust Memory Quotas for a process
         Replace a process level token

Reboot!

http://www.derkeiler.com/Newsgroups/microsoft.public.inetserver.iis.security/2003-10/0178.html

Longer version:

Configuring User Rights for Nondefault Identities to Run CGI Processes (IIS 6.0)

IIS 6.0 worker processes use the CreateProcessAsUser API to start CGI
processes. The CreateProcessAsUser API must have the
SE_ASSIGNPRIMARYTOKEN_NAME and SE_INCREASE_QUOTA_NAME user rights to
succeed. The Network Service, Local Service, and LocalSystem user
accounts have these user rights. If you change the identity of a
worker process and want to run CGI processes, ensure that the new
identity has these two user rights.
To assign user rights to an account on the local computer

1.
	

>From the Start menu, point to Administrative Tools, and then click
Local Security Policy.

2.
	

In the Local Security Settings dialog box, double-click Local
Policies, and then double-click User Rights Assignment.

3.
	

In the details pane, double-click Adjust memory quotas for a process.
This is the SE_INCREASE_QUOTA_NAME user right.

4.
	

Click Add User or Group, and, in the Enter the object names to select
box, type the user or group name to which you want to assign the user
right, and then click OK.

5.
	

Click OK again, and then, in the details pane, double-click Replace a
process level token. This is the SE_ASSIGNPRIMARYTOKEN_NAME user
right.

6.
	

Click Add User or Group, and, in the Enter the object names to select
box, type the user or group name to which you want to assign the user
right, and then click OK.


http://www.beamartyr.net/articles/iisperl.html

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true



-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com


More information about the mapserver-users mailing list