Changes

From SME Server
Jump to navigationJump to search
485 bytes added ,  15:48, 29 September 2015
→‎Memory Caching: - enable APCu from CLI so cron jobs will work
Line 239: Line 239:     
===Memory Caching===
 
===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:
+
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 command:
 
  # yum --enablerepo=remi install php54-php-pecl-apcu php55-php-pecl-apcu php56-php-pecl-apcu
 
  # yum --enablerepo=remi install php54-php-pecl-apcu php55-php-pecl-apcu php56-php-pecl-apcu
 +
 +
If you've set up a system cron job for the ownCloud maintenance operations, you'll need to tell the cache to operate from the CLI as well as from the web.  To do this, assuming you're using PHP 5.6 for ownCloud (change the version below as appropriate):
 +
# nano -w /opt/remi/php56/root/etc/php.d/40-apcu.ini
 +
 +
Find the line with "apc.enable_cli", uncomment it (remove the semicolon), and change the value to 1.  It should look like this:
 +
apc.enable_cli=1
 +
 +
Then restart the web server:
 
  # /etc/init.d/httpd-e-smith restart
 
  # /etc/init.d/httpd-e-smith restart
  
147

edits

Navigation menu