Skip to end of metadata
Go to start of metadata

Introduction

When FileCloud server is restarted, a password protected storage encryption system is not activated automatically. This design is for additional security, such that the encryption password is not stored on the same physical server. 

Starting from V14, when FileCloud server needs storage activation, it can be also done from command line. 

Prerequisites

 

Enable PHP CLI Mode

To run the following commands, PHP CLI mode needs to be enabled.

In Linux, edit the file /etc/php5/cli/php.ini and make sure the module mongo.so is enabled. Without this the reset password command will fail.
To enable mongo.so, add the following line at the end of file /etc/php5/cli/php.ini (if this line doesn't exist in the file)
extension=mongo.so

In Windows, the PHP cli mode is already enabled in FileCloud installer.

 

Activating Storage Using Password On Linux 

In a linux command shell, type the following commands. After the commands are executed, the site will be re-enabled.

Activating Site From Command Line
user@li111-150:~$ cd /var/www/resources/backup
user@li111-150:/var/www/resources/backup$ php ./activatesite.php -h site1.filecloud.com -proot01 #command will activate site site1.filecloud.com using password 'root01'

Activating Storage Using Recovery Key On Linux 

In a linux command shell, type the following commands. After the commands are executed, the site will be re-enabled.

Activating Site From Command Line
user@li111-150:~$ cd /var/www/resources/backup
user@li111-150:/var/www/resources/backup$ php ./activatesite.php -h site1.filecloud.com -r"/tmp/recovery.ppk" #command will activate site site1.filecloud.com using recovery key

Activating Storage Using Password On Windows

In a windows command shell, type the following commands. After the commands are executed, the site will be re-enabled.

Resetting password in Windows
C:\WINDOWS\system32>cd c:\xampp\htdocs\resources\backup
c:\xampp\htdocs\resources\backup>c:\xampp\php\php.exe activatesite.php -h site1.filecloud.com -proot01 #command will activate site site1.filecloud.com using password 'root01'

Activating Storage Using Recovery Key On Windows

In a windows command shell, type the following commands. After the commands are executed, the site will be re-enabled.

Resetting password in Windows
C:\WINDOWS\system32>cd c:\xampp\htdocs\resources\backup
c:\xampp\htdocs\resources\backup>c:\xampp\php\php.exe activatesite.php -h site1.filecloud.com -r"/tmp/recovery.ppk" #command will activate site site1.filecloud.com using recovery key



Note

  • To activate default site, use -h default
  • Note there is not space between -p or -r and the values for those options

 


  • No labels