There is no way to change portal install directory.
One of our analyst made a typo during portal install a couple of years ago. He installed portal PROD in a different path than DEV, TEST and QA. So we have to live with this mistake until ESRI provides the ability to change directory.
Why is this a problem?
We waste many hours troubleshooting and testing during extended outages when going to PROD because PROD is different than all other environments. So nothing can be properly tested. Any automation that utilizes portal tools (exe, batch files, etc) will break for us when going to production.
For example WebGISDR backups, will work on DEV, TEST, QA and will break on PROD because the path is different and we have to update paths and retest in PROD.
Same thing happens every time we do enterprise upgrades or server OS upgrades. It makes having these other dev and test environments seem pointless because we're inevitably having to TEST everything in a PRODUCTION environment causing more down time than really necessary.
What we tried:
- It's not possible to use WebGISDR tool to migrate to a new server in a new install path.
- And it's also not possible to setup a high availability cluster to install portal in a different directory on the second node.
- Contacting premium support: They say it's not possible.