This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Command Line Interface

From Group-Office Groupware and CRM Documentation
Revision as of 15:24, 4 March 2013 by Admin (Talk | contribs) (Created page with "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 apac...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 paramters: -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.