How to migrate CA SAM installation to a different drive or location.

Document ID : KB000009624
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

We have installed CA SAM in the C: drive. We have been asked to move the CA SAM installation to the D: drive. How can this task be achieved?

Environment:
CA SAM 4.x
Instructions:

The following tasks need to be performed to move CA SAM files and folders to a new location:

  1. Make sure that there are no import or cron job task running 
  2. Disable the CA SAM Scheduled Task for the cron job
  3. Lock everyone out of the system by stopping IIS services
  4. Move all the contents of the CA SAM folder to the new location 
  5. Edit the file <sam root>\include\<tag>\st\config.ini to reflect the new path for all relevant sections
  6. Edit the CA SAM website in IIS to point to the new location 
  7. Edit the CA SAM cron job Scheduled Task to call cron_master.php from the new location
  8. Start IIS
  9. Enable the CA SAM Scheduled Task for the cron job
Additional Information:

IMPORTANT

If you are also moving the PHP folder to a new location you will need to perform the below additional tasks:

  1. Edit the CA SAM cron job Scheduled Task to call php-cgi.exe from the new location
  2. Update IIS to reference the new PHP location. This should be under IIS Manager > click <server name> > Handler Mappings > find FastCgiModule and update the path to php-cgi.exe
  3. Update the environment variables PHPRC and OPENSSL_CONF with the new location
  4. Update php.ini file, make sure that all paths within this file are pointing to the correct new location