Set FileCloud URL via CMD - Linux
Original Question or Issue:
I'm not able to set the FileCloud URL in the FileCloud Admin Portal > Settings > Server.
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Linux
Steps to Reproduce:
SSL certificate termination at the Load Balancer level.
SSL online tools don't recognize the SSL certificate for the URL.
Error or Log Message:
Can't save the FileCloud URL with the HTTPS protocol in the Admin Portal > Server.
Defect or Enhancement Number:
Cause:
Configuration.
Resolution or Workaround:
Please follow the steps below to set the server URL via the command line:
-
Download PHP script settingutil.php file from the link below:
-
Connect via SSH and create the folder below in your FileCloud server:
mkdir /var/www/html/resources/tools/misc -
Upload the PHP script to the above directory.
- Change ownership:
chown -R www-data:www-data /var/www/html/resources/tools/misc -
Open the Windows command line interface and run the commands below:
cd /var/www/html/resources/tools/miscphp settingutil.php --set=TONIDOCLOUD_SERVER_URL --value="https://myFileCloudUrl.domain"
-
Verify that the URL was updated in the FileCloud Admin Portal > Settings > Server.
Notes:
For Multi-tenancy:
php settingutil.php --set=TONIDOCLOUD_SERVER_URL --value="https://myFileCloudUrl.domain" -h myFileCloudUrl.domain