Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an application pool with appcmd?

Tags:

I have figured out I could associate an existing application pool with an existing site like this:

APPCMD.exe set app "sitename/" /applicationPool:"appPoolName" 

But how do I create my own application pool with the name appPoolName, .NET version 4 and Integrated pipeline prior to this command?

like image 952
Houman Avatar asked Nov 26 '11 12:11

Houman


People also ask

How to change application pool of any website using appcmd?

You can also change the Application Pool of any website using appcmd command. Use following command to change application pool of site example.com and set App Pool to myAppPool appcmd set site /site.name:example.com / [path='/'].applicationPool:myAppPool To change the Application Pool for a subdirectory URL use the following command.

What tasks can appcmd be used for?

Some tasks you can use AppCmd for are: Create and configure websites, applications, application pools and IIS virtual directories. Starting and stopping of sites, and recycling application pools. List currently running worker processes and examine currently executing requests

What is the use of IIS app pool?

IIS App Pool used for grouping of sites to use similar configuration settings or prevent other applications to use resources of one application by other applications. Use one of below option as per your requirements Use the following command to create Application Pool named “myAppPool” with default settings of IIS.

How do I start and stop a website with appcmd?

Starting and stopping a website with AppCmd is as easy as that. Stop, start and recycle application pools. Besides stopping and starting a website, you can use AppCmd to stop an application pool, start an application pool or recycle an application pool (recycling gracefully stops and restarts the applications pool).


1 Answers

This:

https://docs.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-appcmdexe

should give you everything you need. In particular

appcmd add apppool /name:appPoolName /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated"

should do the job.

like image 177
Jeremy McGee Avatar answered Oct 22 '22 01:10

Jeremy McGee