Command Line Interface
You can run any controller route on the command line too with the groupofficecli.php script. It's wise to run it as the user www-data so it will have the same permissions as apache. The -r parameter is required and is the same route as the browser would use.
So URL http://domain.com/groupoffice/index.php?r=maintenance/buildSearchCache can be executed like this:
sudo -u www-data /usr/share/groupoffice/groupofficecli.php -r=maintenance/buildSearchCache
Optionally you can supply these parameters:
- -c=/etc/groupoffice/config.php to point it to the correct config.php on servermanager installations
- -u=admin to login as admin. It will prompt for the password.