Installing Root and Intermediate Certificate installation via MMC

Installing Root and Intermediate Certificate installation via MMC
1. Open up the Microsoft Management Console (MMC)



Start -> Run -> Type "mmc" (without quotes) and Click 'OK' or hit Enter on your keyboard.

2. Open 'Add/Remove Snap-in' Window



File -> Add/Remove Snap-in

3. Add the Certificates Snap-in






Click 'Add' then double-click 'Certificates'

4. Select 'Computer Account' and click 'Next'



Note: This step is very important. It must be the 'Computer Account' and no other account

5. Select 'Local Computer' and click 'Finish'



6. Close the 'Add Standalone Snap-in' window and click 'OK' in the 'Add/Remove Snap-in' Window.

7. Will now be returned to the MMC.

Install/Import the Root and Intermediates Certificate

* Root

1. Expand the Certificates section by clicking on the plus (+) sign and turn it to a minus (-) sign to expose the 'Certificates' tree.

2. Import the Root Certificate



Right-click on 'Trusted Root Certification Authorities', select 'All Tasks', then select 'Import'. 



Click 'Next'. 



Locate the Root Certificate and click Next. 
When the wizard is completed, click Finish. 

* Intermediate(s)

3. Import Intermediate(s)



The process is the exact same except the area of interest is 'Intermediate Certification Authorities' instead of 'Trust Root Certificate Authorities' and the file(s) that are to be imported are the remaining files outside of your domain certificate.

4. Restart Website through IIS.

Note: If you're page is still showing certificate errors, one may have to stop and start the website or even the IIS Service itself. If this fails one may have to restart the server itself. Do keep in mind that rebooting the server is to be used as a last resort. Please contact support if you require further assistance.

How To Install SSL Certificate On IIS 7| Installing SSL Certificate On Windows IIS 7

How To Install SSL Certificate On IIS 7| Installing SSL Certificate On Windows IIS 7
You will have received your certificate file from us, usually named 'your_domain_com.cer'. Alternatively, you may have received it as several files: 'your_domain_com.crt' and intermediate certificates UTNAddTrustServer_CA.crt and NetworkSolutions_CA.crt.  The root certificate AddTrustExternalCARoot.crt may also be provided.
Copy the file(s) you received to the server.
  1. Click the 'Start' menu. Select 'Administrative Tools', then 'Internet Information Services (IIS) Manager'.
  2. Click the server name.
  3. In the menu, click the 'Server Certificates' button in the 'Security' section.
 
  1. On the right-hand-side, click the Complete Certificate Request...' Action. This will begin the Request Certificate Wizard.
 
  1. The wizard will prompt for the certificate. Enter the certificate path and filename (this can have a .cer or .crt extension), and enter a 'Friendly Name'. This is simply a name for the certificate for your own reference. We advise you to use the domain name of the certificate.
    Click 'OK', and the certificate will be installed.

    Note: Due to a bug in IIS 7, you may receive an error message at this point: 
    "Cannot find the certificate request associated with this certificate file. A certificate request must be completed on the computer where it was created.", or an error referring to a "Bad ASN1 tag.".
    As long as you generated the CSR on this server, you can simply click 'OK' to the error message, and refresh the certificate list in IIS 7. In most cases, the certificate will actually be correctly installed.
 
  1. Now the certificate is installed, IIS 7 requires that bindings be added to the site requiring the certificate.
    Select the website from the left-hand side, and on the right-hand menu, click 'Bindings...'.
 
  1. In the 'Site Bindings' pop-up, click the 'Add' button.
 
  1. Change the 'Type' setting to 'https'. Select the site's IP address (or leave to 'All Unassigned' if this is the only site with an SSL certificate on this server). Leave the 'Port' at 443 unless you know you can change it. From the 'SSL certificate' drop-down menu, choose the name of the certificate you just installed. The 'View' button can be used to confirm which certificate you have chosen.
    Finally click 'OK' to add the binding, and click 'Close' in the 'Site Bindings' window.
 
  1. The certificate is now installed on the site. 

How To Install Windows IIS On Windows 7/ Windows8

How To Install Windows IIS On Windows 7/ Windows8
 Install IIS on Windows 7:
 1. Place the Windows 7 DVD into your DVD Rom Drive.
2. Go to ‘start’ and then control panel.
3. Click on ‘Programs’ .
4. Click ‘Turn Windows features on or off’.
5. Place a tick in the check box for ‘Internet Information Services (IIS)’ leaving all the default installation settings intact. Expand the tree and tick World Wide Web Services”.
6. Then click ‘Ok’ and IIS will start to install on system.
Congratulations…..!!! .. :) You have learnt how to install IIS on Windows XP / install IIS on Windows 7 andHost a local web-site on your Window XP/ Windows 7 System. 

How To Install Windows IIS 6 On Windows XP

How To Install Windows IIS 6 On Windows XP

Windows XP Pro and above comes with IIS pre-packed in your CD/DVD. But you have to install it manually as it’s not default installed program of Windows. You may use any other freely available web-server to host your web-site but I’m going to show installation of IIS on Windows XP Pro/ Windows 7 as it also provides other utilities as well. You will require your Windows XP Pro CD / Windows 7 DVD to proceed further.
Follow these step to install IIS on Windows XP Pro:
1. Place the Windows XP Professional CD-Rom into your CD-Rom Drive.
2. Go to ‘start’ and then control panel.
3. Click on ‘Add/Remove Programs’ .
4. Open ‘Add/Remove Windows Components’.
5. Place a tick in the check box for ‘Internet Information Services (IIS)’ leaving all the default installation settings intact. And click on “Details”.
6. Place a tick on “world wide web service” , if not already ticked. Then click ‘Next’ and IIS will start to install on system.
7. Once IIS is installed on your machine, you will find a directory Inetpub in your C:\ drive.
8. In this directory you will see another directory named as ‘wwwroot’, download attached files here and put them into this directory, but if you don’t want to over write the IIS documentation found in this directory you can set up your own virtual directory through the ‘Internet Information Services’ console.
9. After completing above steps, open your internet browser and type

How To Install Windows 8 Easy Step By Step Guide

How To Install Windows 8 Easy Step By Step Guide



Step by Step process of what is discussed in the Video.

In this I am going to explain you how to install windows 8 from scratch.
It is always good excersice to backup your data on D drive before proceeding with installation.
1. Turn on your PC and place your Windows 8 DVD into your DVD drive.
2. If your first boot device is set to DVD Rom Drive. The installation process will begin automatically
3. However if you are set to boot from your Hard drive. By Selecting boot menu at the start up and go to your BIOS settings and change the first boot device to DVD Rom drive.

4. As the installation process begins you will see the new Windows Logo and rotating progress bar at the bottom.

5. And eventually you end up at the Windows Setup Screen.
6.  In this setup screen you need to select the Language to install, Time and currency format, Keyboard or input method.

I select as English (United states) for Language and Time settings. And keyboard as US

Select appropraite and click Next.

7. In the next screen you will see 2 options.
1. Install Now
2. Repair your computer.
As we are doing clean fressh installation select as Install Now.

8. After clicking Next you will see setup is started.
9. In the next screen it will ask you for the product key. Enter the product key which came with your Windows 8. After entering the correct product key press Next.
10. In the next window you will get the licence terms. Check I accept the licence terms and click Next.
11.  In the next window you will get the option to choose which type of installation you want.
Upgrade: Install Windows and keep files, settings, and applications
Custom: Install Windows Only (Advanced)
I select Custom as we are doing the clean Install. Upgrade is for upgrading the existing Operating system.
12. In the next window Select the drive where you want to install the Windows.
You can select the Drive Options (advanced) for creating partitions.
After selecting Drive Options select New to Creat a new partition and allocate the size for that drive and click Apply that will create a new partition.
click Ok on the pop-up. And select the new drive which is created and select format to format the new drive.
13. Now select the drive where you want to Install Windows 8 and select Next.
14. Installation will start copying files to the Harddrive. And you can see the progress in  window.
15. Basically it will takes time to copy the files to your system. Depending upon your system configuration it will take time between 15mins to 30 mins.
16. Once Windows has finished the copying of files it will automatically restart.
17. This time Windows 8 Reboots again rather than rebooting it from DVD it will reboot from Hard drive.
18. Finally it will boot up and it will ask for PC name : Choose your PC Name and click Next.
19. In the next screen you will see two options Use express settings and Customize. Select Express Settings.
20. In the next screen you will Sign in to you PC. In this you can sign in using Microsoft account if you have one. or you can sign in without Microsoft account. As I am not using Microsoft account. Select Sign In without a Microsoft account.
21. In the next screen you have two options. Microsoft account and Local Account.
Create a Local account by clicking local account.
In the next screen you can choose your UserName, Password and Password Hint. and click finish.
22. Windows 8 finalizes the setup and you will get Welcome screen. It will give the quick demonstration about how to use the features of Windows 8
23. Finally you get the message We're getting Your PC ready. This will take a few minutes.
24. And eventually you will see Un Familiar screen. This is Metro use interface. It basically replaces Windows Desktop and familiar Start Menu. You see no Icons they are replaced by the tiles. You can click any tile to launch application.
25. As the installation process is completed. We just need to make sure all the drivers are installed properly. If not we need to install the neccessary device drivers.

Now your Windows 8 is ready to Use.




IIS Interview Questions And Answers Part - 2

IIS Interview Questions And Answers Part - 2

1. Can we have multiple web sites on IIS ?


Yes. IIS Can have multiple web sites and Each and every web sites can have multiple virtual Directory.

Note : Here web sites means the Root Node.

Where is the default location for IIS Log files ?


Its
C:\WINDOWS\system32\LogFiles\W3SVC1

2. What is ISAPI Filter ?


This is one of the more important question for experienced guys.

Please read this in details.
http://msdn.microsoft.com/en-us/library/ms524610.aspx

3. What are the major innovation in IIS 7.0 ?


Below are the Major Innovation in IIS 7.0
Components are designed as module and there are major change in administration settings.
FYI : You can find out many of them, just go thorugh Microsoft IIS web site.

4. What is the Role of Windows Activation Process in IIS ?


WAP is the Controller of Worker process under a Application Pool. Windows Activation Process which is managed by the worker process by starting, stopping and recycling the application pool. When to start, stop and Recycle should be defined on Application Pool Settings. Activation Process is also responsible for Health Monitor of Application Pool during runtime.

FYI : Health monitoring setting can be easily found in Properties of Application Pool.

5. What are the different type of application pool available in IIS 7.0 ?


IIS 7.0 having two types of application pool.

1. DefaultAppPool (Integrated)
2. ClassicAppPool

6.What is name of default application pool in IIS ?

DefaultAppPool

7. What are the worker process for IIS 5.1 and IIS 6.0 ?

For IIS 5.1 > aspnet_wp.exe
For IIS 6.0 > w3wp.exe

8. Name of the tool which is used for remote debugging of IIS

NOTE: This is objective type question, Please click question title for correct answer.

9. What is Web Farm ?


This is one of the most question in IIS. And along with that interviewer can as what is the different between Web farm and Web Garden ?

When we hosted our web Application on multiple web server under a load balancer call the Web Farm. This is generally used for heavy load web application where there are many user request at a time. So When Web Application is hosted on Different IIS Server over a load balancer, Load balancer is responsible for distribute the load on different server.

10. What is the default Identity of an Application Pool ?


NetworkServices

11. How can we set the default page for any web application ?


We can set the default page for a web site from the Virtual Directory Setting.
How To :
IIS Manager > Virtual Directory > Right Click > Properties > GoTo Document Tab.

12. How we can set the Idle Time out of an worker process ?

We can set the Idle time out for an worker process from Application Pool Properties.

In Performance Tab of Application pool, we can set the Idle Time out of the worker process. This means worker process will shut down after that given time period if it stay idle. And will again wake up again if a new request comes.

13. Is there any alternative way to host site on IIS rather than opening IIS Manager ?

Yes, We can directly host any site from the physical location of directory itself.

Right Click on Physical Folder > Properties > Web Sharing

There you need to select > "Share This Folder" Option Button. Then it will ask for alias name and other setting. Then Click on OK.

To Validate : Run > Inetmgr > Check there should an virtual directory with the same "Alias" name that you have given.

If there are already one Virtual directory exist it will showing you the error message while you providing the "Alias" name.

14. Can we create one Application Pool From Another Application Pool ?

Yes. We can.
While creating Application Application Pool From IIS, there should have two option available first one is for Default Setting and Another is for Existing Setting as template.
We can select the second one and from the drop down listed below we can select any on the Application Pool as Template,.

15. What are the main components of SVCHost.exe ?

Main components for SVCHost.exe are WWW Publishing Service (W3SVC) and Windows Activation Porcess (WAP) .

W3SVC is the mediator of HTTP.SYS and Windows Activation Process. Windows Activation Process maintain the worker processes.

16. What are the different way that we can hosted site on IIS ?

We can hosted site on IIS either creating Virtual Directory through IIS manager or Using Folder Web Sharing .
Apart from that Visual studio provide some inbuilt features to host the site on IIS like using Publishing the web site , Using Copy web Tool or Creating Virtual directory during the creating the project by choosing Location as HTTP

17. How does IIS process an ASP.net request ?

When client request for an aspx pages, request comes to kernel level off IIS means to HTTP.SYS . HTTP.SYS receives the request and based on the application pool name [ Which is already registred with the HTTP.SYS ] it send the request to worker process. Windows Activation process works as mediator of them. w3wp.exe loads "aspnet_isapi.dll" files to start the HTTPRuntime . HTTPRuntime creates HTTPApplication objects and all request are passed through HTTPModule and finally reached to HttpHandler . This is the request pipeline. After end of Request pipeline ASP.NET Page lifecycle starts.

18. From where we can set the Session Time Out in IIS ?


We can set the Session time out settings from the Virtual Directory for that site.

Right Click on Virtual Directory > Properties > Click on "Configuration" Button
Goto the "Option" Tab. There in Enable Session State Section you can configure the Session Timeout .

19. What are the different "Execution Permission" available for IIS for an virtual directory ?


There are three Execution Permission available.
1. None
2. Scripts Only
3. Scripts and Executable


20. From where you can change the ASP.NET Version in IIS ?


This can be change from Virtual Directory properties. First open Properties of Virtual Directory > GoTo ASP.NET Version Tab.

There we can have change the ASP.NET Version.

21. What is the latest version of IIS released with Windows 7

Posted by: Nishithraj
IIS 7.5

22. What is the default user name of an anonymous login in IIS?

Posted by: Peermohamedmydeen
In IIS, an anonymous user will be given with a user name of "IUSR_MachineName "

23. How can we take back-ups in IIS Server?

Posted by: Peermohamedmydeen
Step 1 : In the IIS (inetmgr), right click on the "Computer" icon under "Internet Information Services" . Click "All Tasks" and select "Backup/Restore Configuration".

Step 2 : Click on button "Create backup". Give Name for your backup file. If you want encryption enable encryption option and give UserName and Password and then click OK.

24. What is IIS metabase? And In which format IIS stors configurations?

Posted by: Peermohamedmydeen
IIS metabase is a special databse which is used to maintain the settings and configurations data for IIS. In simple term, it is a configuration base for IIS (Metabase.xml).

IIS 5.0 --> Metabse is in Binary.
IIS 6.0 & 7.5 --> Metabase is in XML.

List of Error & Status codes in IIS 6.0?

Posted by: Peermohamedmydeen
Status Code Type of Code
100 Series - Informational
200 Series - Success
300 Series - Redirection
400 Series - Client Error
500 Series - Server Error

25. How to recycle application pool from the command prompt in IIS7?

1. Use appcmd.exe to recycle the application pool from the command prompt.

2. appcmd.exe is the command line tool for IIS7, you will find this tool at following location :

%systemroot%\system32\inetsrv\appcmd

3. To recycle your application pool use the following command:
appcmd recycle apppool /apppool.name:

26. What are the Different steps to be followed to get SSL(Secure Sockets Layer) for our Web Application ?

. Intially we have to Generate a certificate request from our IIS

. Now we have to request a certificate from the certificate authority(CA)

. This CA is an entity which issues Digital Certificates.

. After receiving the certificate we have to install that particular certificate on our Web Server using IIS

. We have to use Secure Hyper Text Transfer Protocol(HTTPS) when accessing secure pages in our application.

By this way we could make our web page as SSL protected. !!!

27. Which DLL is used to translate XML to SQL in Internet Information Services (IIS) ?

NOTE: This is objective type question, Please click question title for correct answer.

28. What is the purpose of IIS application pools?

We use applicaiton pools for isolation purpose. Every application within an application pool used the same worker process. Each worker process operates as a separate instance of the worker process executable, W3wp.exe, the worker process that services one application pool is separated from the worker process that services another.

In simplest words we use applicaiton pools for ISOLATION purpose.

29. What is Windows Process Activation Service ?


The Windows Process Activation Service (WAS) provides process activation, resource management and health management services for message-activated applications. It manages application pool configuration and the creation and lifetime of worker processes for HTTP and other protocols (net.tcp,net.pipe,net.msmq)

Details : http://techprudent.com/the-windows-process-activation-service/
and
MSDN : http://technet.microsoft.com/en-us/library/cc735229%28WS.10%29.aspx

30. What are the Different Authentication Methods(Using Windows Authentication) which are provided by IIS ?

Generally IIS provides four different kinds of Authentication Methods they are :

Anonymous Method

If we select this authentication, IIS doesn't perform any authentication so that any one can access the application.

Basic Method

If we select this method, the user who access the application should provide windows username and password to access the application. Although this is sent through a network by transmitting direct text so it it very insecure.

Digest Method

This method is almost equal to Basic method but the difference is the password is hashed before it is transmitted through out a network.

Windows Integrated Method

In this the application uses the Kerberos protocol to validate(Authenticate) the user. This uses a Secret key cryptography which provides strign authentication for Client/Server applications.

31. How can we check whether IIS is being installed in my system or not?

To verify if IIS is installed or not we need to go to ’Add or Remove Programs’ utility in the Control panel and click on the ’Add/Remove Windows Components’ in the side menu.

There we must locate an item called "Internet Information Services (IIS)". If this is checked, IIS should be installed.

So that you can have your IIS installed in your system if it is not installed

32. How will you call a Website from another computer connected in LAN?

In order to call a website from another computer in LAN.We will have to Host the Website in one Machines in the LAN and provide it a Static Private IP.

Once we are done with, we can treat it as a dummy server.

Once the website is hosted then we can call the website from the Private static IP of the machine in which the web app is hosted.

Eg :- if the web app is named as abc and the private IP is 192.168.1.2

then from another machine we can call the app as

http://192.168.1.2/abc

Complete IIS Interview Questions And Answers Part -1

Complete IIS Interview Questions And Answers Part -1
1. How we can open IIS Configuration manager ?

Just simply Run >inetmgr
Or we can open it from control panel > Administrative tools.

2. How we can create a Virtual Directory on IIS ?

Open IIS Configuration Manager
First of all Right Click on Default web sites > New > Virtual Directory .
Browse the Physical Path. Set the properites. Click on OK

3. What are the permission settings are available for Virtual Directory ?

Below are the list of permission that can be set during virtaul directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse

4. What is the folder location for Virtual Directory ?


:\inetpub\wwwroot

5. What is the use of Enable Pinging Properties for Application Pool ?

IIS should periodically monitor the health of a worker process [ Idle or not , Time for recycle or not, All Worker process are running properly or not ] .
Pining means, Activation Process monitor Worker process performance, health, idle time etc.
By default it sets to 30s .

6. Does One Web Application can have multiple Application Pool ?


No. Every Web Application should have one Application Pool. Bydefault it is "DefaultAppPool ".

7. Which version of IIS is available in Windows Server 2008 ?

IIS 7.0 .

Even Vista Home Premium and Ultimate edition is also having IIS 7.0


8. How we can save an Application Pool Settings?

Application Pool Settings can be save as "XML" Format.

Right Click on Application Pool > All Task > Save Configuration to a File .

This will save all the settings of Application Pool as an XML file.We can make it password protected also.

9. Which Tool is used for Remote IIS Debugging ?

Tools is : msvsmon.exe

This is located at : Install path\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86

10. What are the different authentication mode available for IIS Remote Debugging ?

For IIS Remote Debugging msvsmon supported two authentication mode

1. Windows Authentication
2. No-Authentication

11. How can we get the list of worker process running in IIS along with the Application pool name ?

By running iisapp.vbs script from command Prompt.

Below are the steps :
1. Start > Run > Cmd
2. Go To Windows > System32
3. Run cscript iisapp.vbs

12. If there are multiple worker process running on IIS, then how can you attach a particular worker process for application ?

Well, If there are multiple worker process running in IIS, it means I have to know the name of my application pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the process Id for particular application I have to attache the process from Visual studio IDE.

13. Why do we need to IIS Remote Debugging ?

There are following reasons where we can use remote debugging
1. Your development server does not have IIS installed.
2. Development server and Build/Released/Hosting Server is different
3. Multiple user want to debug simultaneously.

14. Does IIS allows multiple user to Remote debug simultaneously ?

Yes. This is one of the great features of msvsmon.exe . Each instance of the remote debugger has a unique server name.we can give an instance of the remote debugger any server name. Now multiple user can able to access the server instance.

15. What is the use of aspnet_regiis -i command ?

This is used automatically register the .NET Framework with your IIS.

16. What is the Role of IIS ?

Visual studio having It own ASP.NET Engine which is capable enough to run Asp.net web application from visual studio. So we just click on Run button to start the application.
Now this is the scenarios of local environment. But If we want to host it on server from where all user can access the sites then IIS comes into the picture.

IIS provides a redesigned WWW architecture that can help you achieve better performance, reliability, scalability, and security for our Web sites. IIS can support following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself.
Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself.
There are different version of IIS available like 5.1, 6.0, 7.0 etc

16. What are the different version on IIS that you have worked on ?

Before answering this question you need to know what are the different IIS version is available in different OS. Below is the list of IIS version with different Operating system.
Windows Server 2008 - Windows Vista - Home Premium/ Ultimate - IIS 7.0
Windows Server 2003 - IIS 6.0
Windows XP Professional - IIS 5.1
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc.
Now, the next question that can asked after answering this question is “what is the difference between them ? ” – Well I will come with this later.

17. What is Application Pool in IIS ?

Before Giving the Definition : you can say like this, Concept of Application pool has from IIS 6.0 .
Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running with out impacting each other . The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected.
One Application Pool can have multiple worker process Also.

Main Point to Remember:
1. Isolation of Different Web Application
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance

18. What is the Name of Default Application Pool in IIS ?


Though we can create new application pool IIS with different settings, but IIS having its own default application pool named : DefaultAppPool

19. What are the different types of Identity available in IIS 6.0 ?

IIS having three different Identity.
1. Local System
2. Local Services
3. NetworkServices

Name of default Identity of IIS6.0


Default Identity of IIS 6.0 is NetworkServices .
Which is having very minimum rights on your system. The user can only have the read access of the site.

20. What is Recycling of Application Pool ?

Recycling Application pool means recycle the Worker process (w3wp.exe ) and the memory used for the web application.
There are two types of recycling related with Application pool

1. Recycling Worker Process - Predefined Settings
2. Recycling Worker Process - Based on Memory


21. What are the main layers of IIS Architecture ?

IIS having mainly two layer Kernel Mode and User Mode

Below are the subsection of both of them.
1. Kernel Mode
o HTTP.SYS
2. User Mode
o Web Admin Service
o Virtual Directory
o Application Pool

22. What is the Role of Http.Sys in IIS ?

HTTP.SYS is the kernel level components of IIS. All client request comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request.
Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.

23. What are the different security settings available in IIS ?

Below are the commonly used IIS Security settings

1 Anonymous
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication

For Set security permission you need to go to Virtul Directory > Right Click > Properties > Directory Security
Click on Edit Button .

24. What is the default authentication settings for IIS ?


Anonymous authentication is the default authentication mode for any site that is hosted on IIS, and it runs under the "IUSR_[ServerName]" account.

25. What is web garden ?


By default Each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Process With a Single Application Pool. An Application Poll with multiple Worker process called Web Gardens. Each Worker Process Should have there own Thread and Own Memory space.

Generally its not recommended to use InProc Session mode while we are using Web Garden.

Where session data stores in case of "In-Proc" Session mode ?


Session data store inside process memory of worker process [ w3wp.exe ] .

26. How we can create an web garden ?


For creating web graden we need to go to Application Pool, then Right Click on Application Pool > Properties > Goto Performance Tab

In Web Garden Section, increase the number of worker process. By default it is 1.

How we can debug a web application which is hosted on IIS ?


We can easily debug any web application that are hosted on IIS by using Attaching of Worker Process.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.


Managing Weblogic Server Life Cycle

Managing Weblogic Server Life Cycle
In this post I am going to discuss about WebLogic Server Life Cycle. Before you dive into the deeper you must know each Java option that you can use, and also argument you can pass to the weblogic.Server class, which is a member of weblogic package given by Oracle WebLogic installation. 
Usage: java [options] weblogic.Server [args...]
Where WebLogic options include:
-Djava.security.policy= the location of the security policyfile
-Dweblogic.Domain= WebLogic domain name
-Dweblogic.Name= WebLogic server name
-Dweblogic.ext.dirs=':' separated list of directories to pick up jars fromand add to the end of the server classpath.The list can also contain individual jars.
-Dweblogic.management.server=WebLogic Admin Server URL for starting a Managed Server, the value can be: host:port or http://host:port or https://host:port
-Dweblogic.home= The location of the WebLogic Server product install. By default, this will be derived from the classpath.
-Dweblogic.RootDirectory=The root directory of your domain, where your configuration is housed.
default is the current working directory
-Dweblogic.management.username= user name
-Dweblogic.management.password= user password
-Dweblogic.management.pkpassword= private key password
-Dweblogic.security.unixrealm.authProgram= the name of the program used to authenticate users in the unix
security realm
-Dweblogic.= specify a server attribute, it will override the attribute value set in config.xml for this server
-Dweblogic.admin.host= same as weblogic.management.server, an old property
-javaagent:$WL_HOME/server/lib/diagnostics-agent.jar enable diagnostics hot code-swap for application classes And WebLogic args include:
-? -help print this help message

1. Starting the AdminServer by 'weblogic.Server'

Here is the basic command how the WebLogic Server will be started in the script. Actually, inside story you can understand how it goes by executing this command at your command line. To Start a admin Server we need to go to domains directory and use the following command:

java weblogic.Server 

The JVM parameters will be considered default as 256 MB minimum and 512MB maximum heap size. If you wish to change you can specify as follows:

java -Xms512m -Xmx1024m -XX:MaxPermSize=512m weblogic.Server

while starting the admin server by using the weblogic.Server command Line references, uses minmum capability to start the Server instances. When we open the WebLogic Console in a browser it requires the load the console portal which cannot run on the default heap size like -Xms512m -Xmx1024m , need to increase the heap size and Permanent Size for the JVM also need to increase with -XX:MaxPermSize=512m. following command also works for running Admin server.

java -XX:MaxPermSize=512m weblogic.Server

If we don't use the JVM parameter of XX:MaxPermSize=512m , we will face the issue of "Out of Memor Error(perm gen error)" when accessing the console of admin 

2) Starting the Managed Server by weblogic.Server command

Syntax :

java -Dweblogic.Name=managed-server-name -Dweblogic.management.server=adminURL weblogic.Server


java -Dweblogic.Name=app02 -Dweblogic.management.server=http://WLHOST:7913 -Dweblogic.management.username='weblogic' -Dweblogic.management.password='weblogic' weblogic.Server


2.1 Starting a Managed Server in ADMIN Mode 

You might feel very thril here, To run the command line for the managed server for our regular example:
(Here WLHost replace with your own)

Starting a WebLogic instance in ADMIN mode

 nohup java -Dweblogic.Name=app02 \
-Dweblogic.management.server=http://WLHOST:7913 \
-Dweblogic.management.username='weblogic' \
-Dweblogic.management.password='weblogic' \
-Dweblogic.management.startupMode=ADMIN weblogic.Server >app02.out 2>&1 &



To check the status of the Server into the logs are as follows:

$tail -100f app02.out 

2.2 Starting a Managed Server STANDBY Mode

Here one more wonder you can see here, To run the command line for the managed server for our regular example: (Here WLHost replace with your own)

Starting a WebLogic instance in STANDBY mode

nohup java -Dweblogic.Name=app02 \
-Dweblogic.management.server=http://WLHOST:7913 \
-Dweblogic.management.username='weblogic' \
-Dweblogic.management.password='weblogic' \
-Dweblogic.management.startupMode=STANDBY weblogic.Server >app02.out 2>&1 &


To check the status of the Server you need to look into the logs are as follows:

tail -100f app02.out

Normally we can start the managed server which is in remotely in command line by using the below :(starting managed server in remotely)

startManagedWebLogic.sh "app02" "http://wladminhost:7913"
app02 #remote managed server
http://wladminhost:7913 #admin url