We are not using the "Portal" web application to host Project server instances.
The out of the box script creates the project server web instances on the web application using the "Portal" type.
I modified the Config XML file and Installerfunction powershell file as follows to install on another web app:
Config.XML - added two new keys: WebAPP and WebAppPort
```
<ProjectServer Install="true" ConfigFile="config-ProjectServer2013.xml" PIDKeyProjectServer="TBD">
<ServiceApp Provision="ServerName" Name="Project Server Service Application" ProxyName="Project Server Service Application" ManagedPath="PWA" ServiceAccount="Domain\account" ServiceAccountPassword="TBD
WebApp="https://foo.com" WebAppPort="" >
```
Modified the InstallerFucntion file
```
# Create a Project Server Web Instance around line 5803
$projectManagedPath = $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath
$projectWebApp = $xmlinput.Configuration.ProjectServer.ServiceApp.WebApp #this is new
$projectWebAppPort = $xmlinput.Configuration.ProjectServer.ServiceApp.WebAppPort #this is new
New-SPManagedPath -RelativeURL $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath -WebApplication $projectWebApp -Explicit:$true -ErrorAction SilentlyContinue | Out-Null #this is modified
Write-Host -ForegroundColor White " - Creating Project Server site collection at `"$projectManagedPath`"..." -NoNewline
$projectSiteUrl = $projectWebApp+":"+$projectWebAppPort+"/"+$projectManagedPath #this is modified
```
Comments: ** Comment from web user: BarryIT99 **
The out of the box script creates the project server web instances on the web application using the "Portal" type.
I modified the Config XML file and Installerfunction powershell file as follows to install on another web app:
Config.XML - added two new keys: WebAPP and WebAppPort
```
<ProjectServer Install="true" ConfigFile="config-ProjectServer2013.xml" PIDKeyProjectServer="TBD">
<ServiceApp Provision="ServerName" Name="Project Server Service Application" ProxyName="Project Server Service Application" ManagedPath="PWA" ServiceAccount="Domain\account" ServiceAccountPassword="TBD
WebApp="https://foo.com" WebAppPort="" >
```
Modified the InstallerFucntion file
```
# Create a Project Server Web Instance around line 5803
$projectManagedPath = $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath
$projectWebApp = $xmlinput.Configuration.ProjectServer.ServiceApp.WebApp #this is new
$projectWebAppPort = $xmlinput.Configuration.ProjectServer.ServiceApp.WebAppPort #this is new
New-SPManagedPath -RelativeURL $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath -WebApplication $projectWebApp -Explicit:$true -ErrorAction SilentlyContinue | Out-Null #this is modified
Write-Host -ForegroundColor White " - Creating Project Server site collection at `"$projectManagedPath`"..." -NoNewline
$projectSiteUrl = $projectWebApp+":"+$projectWebAppPort+"/"+$projectManagedPath #this is modified
```
Comments: ** Comment from web user: BarryIT99 **
fixed typi