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...")
 
 
Line 1: Line 1:
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:
+
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:
 +
 
 +
<pre>
 
sudo -u www-data /usr/share/groupoffice/groupofficecli.php -r=maintenance/buildSearchCache
 
sudo -u www-data /usr/share/groupoffice/groupofficecli.php -r=maintenance/buildSearchCache
Optionally you can supply these paramters:
+
</pre>
-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.
+
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.

Latest revision as of 14:25, 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 parameters:

  1. -c=/etc/groupoffice/config.php to point it to the correct config.php on servermanager installations
  2. -u=admin to login as admin. It will prompt for the password.