How To Move Your SharePoint IIS Sites From Systemdrive(C:)
The following article briefs one on how to avoid the messed up situation most SharePoint installations are in, with everything on the systemdrive, or C:
Now over time people have been better and better at one thing, we understand that the log files should not be located on the systemdrive, so we have learned over time to move the ULS log and the Usage and Health log from C: some have even been clever enough to move even the SharePoint IIS log from C:
But, what do we still always find installed on C: yes, C:\inetpub!
It not very strange that the developers of Windows Server have made a point of not giving an option to install inetpub on a different path, not unless you do an unattended installation or otherwise script or Control your installation. The ‘Add/Remove roles’ wizards in Server 2008, 2008R2 and 2012 all lack this option (for a reason).
So, why would we want to do this anyway?
Why move the inetpub and all of its content, or at least the separate site catalogs to a different drive?
The answer is:
– Separation (Performance and Security)
– Compartmentalization (Performance and Security)
Having everything on the same drive is bad for a few reasons, primarily performance and security. Performance since the OS is on the C drive and security because if an attacker by some means gets access to a different less secure applications sitecatalog, they also get access to the systemdrive and possible also all other webapplication sitecatalogs. Moving them to other drives, same or different, helps mitigate both possible issues.
Therefore it is recommended to follow these steps:
- Do your regular installation, add the Web Server role and let the inetpub folder end up on C:, like I said, no worries. What’s important for us will not be located there anyway.
- Next, edit the registry to make the default location of inetpub be for example D: (unless this is where you will be putting all of your logfiles, then select a third or fourth drive)
- Install the SharePoint as you would normally do, Central administration will now end up were you pointed the default location.
- Create your Web Applications using the GUI or PowerShell and leave out the path, the SharePoint IIS sites will be were you wanted them.
So, how do we do this in more detail? The answer is configuring the Web Server(s).
- Configure the default location
On all of your web servers in the farm, and on your Central Administration server(s), edit the registry key that Controls the default location:
Start regedit by, Right clicking in the very lower left corner and you will get a list of actions, click on Run. Type Regedit and click Ok. Click Yes in the UAC dialog. In Registry Editor, we locate the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
Under ‘InetStp’ we have a number of keys. Locate and Edit the key PathWWWRoot from the default: (%systemdrive%) to: (D: or where you prefer to locate it, E: F: G: H:…)
There it is all set and no IIS reset or restarts of any kind required.
Like said before, go on and do this on all servers that will host a webserver (WFE or CA). If you don’t, then you will have an inconsistent setup making Everything very hard to setup and t-shoot.
- Add SharePoint
After this has been changed on all of you r web servers, you can go ahead and install the SharePoint binaries and configure your farm, The Central Administration site will now be located on the drive you have specified, it will be in the exact same path as it normally would but on a different drive.
For example: ‘D:\inetpub\wwwroot\wss\VirtualDirectories\20000\’
Note that the Central Administration UI will now be default suggest a different path:
If you create a new site using PowerShell, it will also by default put it in D: even if you don’t specify any path.
- QuickBooks2016.07.01QuickBooks 2016 : How to Select the Industry Type and Accounts
- Microsoft Sharepoint2016.06.30Microsoft’s SharePoint 2016: Awesome New Features Added For It’s Users
- QuickBooks2016.06.27How To Search and Edit Customers Records In QuickBooks 2016
- Microsoft Sharepoint2016.06.22Microsoft Announces Release Of iOS App For SharePoint