Ottimizzazione di Owncloud: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
* Installare APC
* Installare APC
  sudo apt-get install php-apc  
  sudo apt-get install php-apc  
* Dichiarare l'utilizzo in owncloud
  sudoedit /var/www/owncloud/config/config.php
  'memcache.local' => '\OC\Memcache\APC',


* Riavviare Apache:
* Riavviare Apache:
   
   
  sudo /etc/init.d/apache2 restart
  sudo /etc/init.d/apache2 restart
==Debian 8==
* Installare APC
sudo apt-get install php5-apcu


* Dichiarare l'utilizzo in owncloud
* Dichiarare l'utilizzo in owncloud
   sudoedit /var/www/owncloud/config/config.php  
   sudoedit /var/www/owncloud/config/config.php  


   'memcache.local' => '\OC\Memcache\APC',
   'memcache.local' => '\OC\Memcache\APCu',
 
 
* Riavviare Apache:
sudo systemctl restart apache2.service


=Impostare il KeepAlive in Apache=
=Impostare il KeepAlive in Apache=
Line 35: Line 50:
* Riavviare Apache:
* Riavviare Apache:
   
   
  sudo /etc/init.d/apache2 restart
  sudo systemctl restart apache2.service
 
=Impostare ulteriore sicurezza SSL=
* Inserire nella dichiarazione del VirtualHost
 
    <IfModule mod_headers.c>
      Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
    </IfModule>
 
* Abilitare il modulo headers:
sudo a2enmod headers
 
* Riavviare Apache:
sudo systemctl restart apache2.service


=Riferimenti=
=Riferimenti=

Latest revision as of 15:31, 24 April 2016

Abilitare il caching di css e javascript

  • Assicurarsi che esista la directory scrivibile per www-data:
ls -d /var/www/owncloud/assets/
drwxr-xr-x 2 www-data www-data 4096 Apr 10 14:32 /var/www/owncloud/assets/
  • Abilitare il caching:
sudoedit /var/www/owncloud/config/config.php 
'asset-pipeline.enabled' => true,

Abilitare un gestore di cache php

Debian 7

  • Installare APC
sudo apt-get install php-apc 
  • Dichiarare l'utilizzo in owncloud
 sudoedit /var/www/owncloud/config/config.php 
 'memcache.local' => '\OC\Memcache\APC',
  • Riavviare Apache:
sudo /etc/init.d/apache2 restart


Debian 8

  • Installare APC
sudo apt-get install php5-apcu
  • Dichiarare l'utilizzo in owncloud
 sudoedit /var/www/owncloud/config/config.php 
 'memcache.local' => '\OC\Memcache\APCu',


  • Riavviare Apache:
sudo systemctl restart apache2.service

Impostare il KeepAlive in Apache

  • Inserire nella dichiarazione del VirtualHost
   # OWNCLOUD OPTIMIZITAZION
   KeepAlive On
   KeepAliveTimeout 100
   MaxKeepAliveRequests 200
  • Riavviare Apache:
sudo systemctl restart apache2.service

Impostare ulteriore sicurezza SSL

  • Inserire nella dichiarazione del VirtualHost
   <IfModule mod_headers.c>
     Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
   </IfModule>
  • Abilitare il modulo headers:
sudo a2enmod headers 
  • Riavviare Apache:
sudo systemctl restart apache2.service

Riferimenti