Outils pour utilisateurs

Outils du site


elgg:elgg

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
elgg:elgg [2018/09/03 09:35] ronanelgg:elgg [2019/01/10 15:55] (Version actuelle) rguyader
Ligne 6: Ligne 6:
  
 __Elgg incompatible avec Postgresql__ __Elgg incompatible avec Postgresql__
- +<code bash> 
-  # apt install mariadb-server php7.0 php7.0-gd php7.0-json php7.0-xml php7.0-mysql php7.0-mbstring apache2 +apt install mariadb-server php7.0 php7.0-gd php7.0-json php7.0-xml php7.0-mysql php7.0-mbstring apache2 
-  # cd /var/www/ +cd /var/www/ 
-  # wget https://elgg.org/about/getelgg?forward=elgg-2.3.8.zip +wget https://elgg.org/about/getelgg?forward=elgg-2.3.8.zip 
-  # unzip getelgg\?forward\=elgg-2.3.8.zip +unzip getelgg\?forward\=elgg-2.3.8.zip 
-  # rm getelgg\?forward\=elgg-2.3.8.zip +rm getelgg\?forward\=elgg-2.3.8.zip 
-  # rm -r html +rm -r html 
-  # mv elgg-2.3.8 html +mv elgg-2.3.8 html 
-  # mkdir /usr/share/elgg-data +mkdir /usr/share/elgg-data 
-  # chown www-data: /usr/share/elgg-data /var/www/html/elgg-config +chown www-data: /usr/share/elgg-data /var/www/html/elgg-config 
-  # chmod 750 /usr/share/elgg-data +chmod 750 /usr/share/elgg-data 
 +</code>
 ==== Apache ==== ==== Apache ====
- +<code bash> 
-  # a2enmod rewrite ssl +a2enmod rewrite ssl 
-  # vim /etc/apache2/elgg.conf +vim /etc/apache2/elgg.conf 
- +</code> 
-  <VirtualHost *:80>+<code apache> 
 +<VirtualHost *:80
 +  ServerName mon-url.com 
 +  Redirect permanent / https://mon-url.com 
 +</VirtualHost> 
 +   
 +<IfModule mod_ssl.c> 
 +  <VirtualHost *:443>
     ServerName mon-url.com     ServerName mon-url.com
-    Redirect permanent https://mon-url.com +    DocumentRoot /var/www/html 
-  </VirtualHost>+    ErrorLog ${APACHE_LOG_DIR}/elgg-error.log 
 +    CustomLog ${APACHE_LOG_DIR}/elgg-access.log combined 
 +    SSLEngine on
      
-  <IfModule mod_ssl.c> +    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem 
-    <VirtualHost *:443> +    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
-      ServerName mon-url.com +
-      DocumentRoot /var/www/html +
-      ErrorLog ${APACHE_LOG_DIR}/elgg-error.log +
-      CustomLog ${APACHE_LOG_DIR}/elgg-access.log combined +
-      SSLEngine on+
      
-      SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem +    <Directory /var/www/html/> 
-      SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key +      Options FollowSymLinks 
-   +      AllowedOverride All 
-      <Directory /var/www/html/> +    </Directory> 
-        Options FollowSymLinks +  </VirtualHost> 
-        AllowedOverride All +</IfModule> 
-      </Directory> +</code> 
-    </VirtualHost> +<code bash> 
-  </IfModule> +a2dissite 000-default 
- +a2ensite elgg 
-  # a2dissite 000-default +systemctl restart apache2 
-  # a2ensite elgg +</code>
-  # systemctl restart apache2 +
 ==== MariaDB ==== ==== MariaDB ====
- +<code bash> 
-  # mariadb +mariadb 
-  # CREATE USER elgg IDENTIFIED BY 'elgg'; +CREATE USER elgg IDENTIFIED BY 'elgg'; 
-  # CREATE DATABASE elgg; +CREATE DATABASE elgg; 
-  # GRANT ALL PRIVILEGES ON elgg.* TO elgg; +GRANT ALL PRIVILEGES ON elgg.* TO elgg; 
-  # exit +exit 
 +</code>
 ==== post install ==== ==== post install ====
  
 === Longueur minimale de la phrase de passe === === Longueur minimale de la phrase de passe ===
- +<code bash> 
-  # cd /var/www/html/elgg-config +cd /var/www/html/elgg-config 
-  # vim settings.php+vim settings.php 
 +</code>
  
   $CONFIG->min_password_length = 8;   $CONFIG->min_password_length = 8;
  
 === memcached === === memcached ===
- +<code bash> 
-  # apt install memcached +apt install memcached 
-  # vim /var/www/html/elgg-config/settings.php +vim /var/www/html/elgg-config/settings.php 
 +</code>
   $CONFIG->memcache = true;   $CONFIG->memcache = true;
   $CONFIG->memcache_servers = array (   $CONFIG->memcache_servers = array (
elgg/elgg.1535967353.txt.gz · Dernière modification : 2018/09/03 09:35 de ronan