In case you get the error “wrong architecture i386” you have to execute the following command lines as an administrator:

dpkg --add-architecture i386

apt-get update

apt-get upgrade

dpkg -i teamviewer_12.0.xxxxx_i386.deb

In case dpkg indicates missing dependencies, complete the installation by executing the following command:

apt-get install -f

Cron

crontab -u www-data -e
/15 * /usr/bin/php -f /path/to/your/owncloud/cron.php

apt-get install memcached php5-memcached

apt-get install redis-server php5-redis

apt-get install php-apcu

配制config.php

'memcache.local' => 'OCMemcacheAPCu',

'memcache.locking' => 'OCMemcacheRedis',

'redis' => [

'host' => 'localhost',

'port' => 6379,

],

apt-get install apache2-mpm-prefork libapache2-mod-php5

apt-get install php5-cli php5-curl php5-gd php5-gmp php5-imap php5-json php5-ldap php5-mcrypt php5-mysql php5-tidy php5-xmlrpc php5-xsl

a2enmod actions

a2dismod mpm_event

a2enmod mpm_prefork

nano /etc/apache2/mods-available/mpm_prefork.conf

<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 2
MaxSpareServers 4
MaxClients 75
MaxRequestWorkers 75
MaxConnectionsPerChild 2000
</IfModule>

/etc/init.d/apache2 restart