Automating IIS Web tasks using AppCmd command

Posted on

Requirement: You need to automate the management like create, start, stop, etc., of IIS Resources including Web Site, App, AppPool, etc. Solution: Microsoft provides a command line tool named Appcmd.exe which ships/installs along with IIS.  It’s usually located at C:\WINDOWS\system32\inetsrv\appcmd.exe path. Automation Examples: Create an APPPOOL, with specified name, .Net Framework version, Managed pipeline mode, etc., C:\>C:\WINDOWS\system32\inetsrv\appcmd.exe ADD APPPOOL /name:TestAppPool /managedRuntimeVersion:v4.0 /managedPipelineMode:”Integrated” APPPOOL object “TestAppPool” added C:\> Stop an APPPOOL PS C:\> C:\WINDOWS\system32\inetsrv\appcmd.exe STOP APPPOOL TestAppPool “TestAppPool” successfully stopped PS C:\> Start an APPPOOL PS C:\> C:\WINDOWS\system32\inetsrv\appcmd.exe START APPPOOL TestAppPool “TestAppPool” successfully started. PS C:\> Create a web Application under […]


Configuring Php and ASP.Net web pages on single IIS Web site

Posted on

Requirement:  You have an IIS web server.  You want to host all Php as well as ASP.Net developed web pages from the same web server and further with the same site name.  Thus you end up need to configure both Php as well ASP.Net pages from the same IIS site.   Options: This can be setup by ensuring below configuration for both of the technologies: A Proper Handler Mapping for *.aspx the respective handler will be auto configured for *.php you need to ensure a proper handler is setup if you are installing it manually Then you can set the […]


Fixing integration issues of manually installed WordPress, MySQL, Php using IIS on Windows Servers

Posted on

Error#1: Your PHP installation appears to be missing the MySQL extension which is required by WordPress. Fix: Enable MySQL Extension for Php via php.ini as shown below: ;;;;;;;;;;;;;;;;;;;;;;; Dynamic Extensions ;;;;;;;;;;;;;;;;;;;;;;; ; If you wish to have an extension loaded automatically, use the following; syntax:;;   extension=modulename.extension;; For example, on Windows:;;   extension=msql.dll;; … or under UNIX:;;;; … or with a path:;;   extension=/path/to/extension/;; If you only provide the name of the extension, PHP will look for it in its; default extension directory.;; Windows Extensions; Note that ODBC support is built in, so no dll is needed for it.; Note that many […]