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

Difference between revisions of "Command Line Interface"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
(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...")
(No difference)

Revision as of 14:24, 4 March 2013

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.