====== Friendica ====== ===== CLient ===== ===== Server ===== Installation de Friendica sur Debian 10 avec Nginx ==== Packages ==== sudo apt update sudo apt install nginx curl git composer sudo apt install php-fpm php-common php-gmp php-curl php-intl php-mbstring php-xmlrpc php-mysql php-gd php-imagick php-xml php-cli php-zip ==== Database SQL ==== sudo apt install mariadb-server mariadb-client sudo mysql_secure_installation Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y sudo mysql -u root -p CREATE DATABASE friendica; CREATE USER 'friendica_user'@'localhost' IDENTIFIED BY 'mon_mot_de_passe'; GRANT ALL ON friendica.* TO 'friendica_user'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT; ==== PHP ==== sudo nano /etc/php/7.3/fpm/php.ini file_uploads = On allow_url_fopen = On short_open_tag = On memory_limit = 256M cgi.fix_pathinfo = 0 upload_max_filesize = 100M max_execution_time = 360 max_input_vars = 1500 date.timezone = Europe/Paris sudo service php7.3-fpm restart ===== Friendica et addon ====== cd /var/www sudo git clone https://github.com/friendica/friendica.git -b master friendica cd /var/www/friendica sudo composer install --no-dev sudo git clone https://github.com/friendica/friendica-addons.git -b master addon sudo chown -R www-data:www-data /var/www/friendica/ sudo chmod -R 755 /var/www/friendica/ ==== nginx ==== server { listen 80; server_name friendica.khaganat.net; rewrite ^ https://friendica.khaganat.net$request_uri? permanent; } server { listen 443 ssl http2; server_name friendica.khaganat.net; ssl_certificate /etc/letsencrypt/live/friendica.khaganat.net/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/friendica.khaganat.net/privkey.pem; root /var/www/friendica; index index.php; access_log /var/log/nginx/friendica.access.log; error_log /var/log/nginx/friendica.error.log; client_max_body_size 100M; autoindex off; location / { try_files $uri /index.php?pagename=$uri&$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; include fastcgi_params; fastcgi_intercept_errors on; fastcgi_param HTTPS on; } } sudo ln -s /etc/nginx/sites-available/friendica /etc/nginx/sites-enabled/ sudo service nginx restart ==== installation web ==== A venir, screen à faire ==== Cron ou Daemon ==== A venir ==== Admin ==== A venir Un seul Admin possible par server ......( c'est nullll, je trouve) {{tag>friendica, web, server, brouillon}}