Moving Storage Locations
When moving WHMCS, especially to a new server, it is very likely that your current storage locations will no longer be valid. It is important to update these immediately after moving WHMCS to ensure that your file storage and retrieval continues to function normally. Performing the following steps will allow you to update your locations to new, valid locations.
Create New Storage Locations
First, you must create new storage locations:
- Create the attachments and downloads directories on the new server in the desired location.
- Log in to the WHMCS Admin Area.
- Go to Configuration () > System Settings > Storage Settings or, prior to WHMCS 8.0, Setup > Storage Settings.
- Perform the steps for the desired location type:
- For local storage locations:
- Select the Configuration tab.
- Under Add New Configuration, choose Local Storage.
- Click Add.
- Enter path to the new storage location. The directory must exist and be writable.
- Click "Save".
- For AWS S3 locations:
- You should not need to move storage locations because their location has not changed.
- Make certain that you update your S3 bucket security policy with your new server IP address if you have IP address restrictions.
- For local storage locations:
- Repeat these steps as many times as required until all locations have been created.
Migrate to new Storage Locations
- Click the "Settings" tab
- Using the dropdown provided, select your new storage location. 3 buttons will appear next to the dropdown.
- Select "Switch"
- Manually copy all files from the previous location to your newly selected location.
Why can't I select "Migrate"?
The previous storage location does not exist on the server to which WHMCS has been moved, so the files cannot be migrated automatically. For this reason, you must manually copy all files to the new location. By selecting "Switch", you are instructing WHMCS to switch the location without performing any automatic attempts to transfer files.