Changes

Jump to navigation Jump to search
2,540 bytes added ,  15:18, 29 September 2015
Added information on cron tasks and memory caching
Line 225: Line 225:  
and add
 
and add
 
  'check_for_working_webdav' => false,
 
  'check_for_working_webdav' => false,
 +
 +
===Maintenance tasks===
 +
Owncloud requires periodic maintenance tasks to run, and offers three different methods to execute them: AJAX, webcron, or through the system's cron process.  They may be chosen on the Admin page, under the Cron heading.  AJAX checks for tasks each time an owncloud page is loaded.  It is simple to use and requires no configuration, but not very reliable since it depends on users logging into the web interface.  Webcron relies on using an outside service like [http://www.easycron.com easycron.com] to load http://yourserver.tld/owncloud/cron.php on a schedule, roughly every 15 minutes.  This is simple to configure, but can incur additional cost for the webcron service.  Finally, the system's cron process runs commands on a specified schedule.  It requires the most complex configuration, but does not rely on any external user or service to operate.
 +
 +
To set up regular maintenance using the system cron process, first select the Cron option under the Cron heading on the Admin page.  Then, from the system shell, run the following commands:
 +
# export EDITOR=nano
 +
# crontab -u apache -e
 +
 +
This will open the nano editor with a blank file.  Enter the following:
 +
*/15  *  *  *  * scl enable php56 'php -f /home/e-smith/files/ibays/owncloud/html/cron.php > /dev/null 2>&1'
 +
 +
Then press Ctrl-X to exit, and Y to save.  This command assumes you've installed the PHP software collections as described above, and that you've chosen to run your ownCloud installation with PHP 5.6.  If you'd chosen PHP 5.5, it would read "scl enable php55" instead.
 +
 +
===Memory Caching===
 +
For improved performance, use of a memory cache for compiled PHP code and data is recommended.  As of version 8.1, ownCloud will complain on the Admin page if you don't have this configured.  ownCloud supports a number of cache backends, but the easiest to configure is said to be APCu.  To configure this, you'll need to install the PHP extension, and activate it in your config.php file.  To install the extension, run the following commands:
 +
# yum --enablerepo=remi install php54-php-pecl-apcu php55-php-pecl-apcu php56-php-pecl-apcu
 +
# /etc/init.d/httpd-e-smith restart
 +
 +
This will install the extension for all PHP Software Collection versions.  Then, to activate it, add this line to the ownCloud config.php file:
 +
'memcache.local' => '\OC\Memcache\APCu',
 +
 +
Further information about caching can be found in the [https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#caching ownCloud documentation].
    
===Mozilla Sync===
 
===Mozilla Sync===
147

edits

Navigation menu