User Tools

Site Tools


servers:nginx:friendica

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
servers:nginx:friendica [2019/10/24 13:57] – Switch back to Ubuntu Server (completely) Sean Rhoneservers:nginx:friendica [2020/10/28 11:11] – master to develop branch Sean Rhone
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[distros:ubuntu_server|Ubuntu Server]]+  * [[distros:ubuntu_server|Ubuntu Server]] ((Last tested on 20.04))
   * [[servers:mariadb|MariaDB]]   * [[servers:mariadb|MariaDB]]
   * [[servers:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]   * [[servers:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]
Line 14: Line 14:
 ====== Download Source ====== ====== Download Source ======
  
-  :!: ''develop'' branch was broken on 2019/06/28+****
  
-  sudo rm -Rf '/var/www/social' && sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/var/www/social' && sudo rm -Rf '/var/www/social/addon' && sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/var/www/social/addon' && sudo chown -R 'www-data':'www-data' '/var/www/social' && sync+  sudo rm -Rf '/var/www/social' && sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/var/www/social' && sudo rm -Rf '/var/www/social/addon' && sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/var/www/social/addon' && sudo chown -R 'www-data':'www-data' '/var/www/social' && sync
  
 ====== PHP Dependencies ====== ====== PHP Dependencies ======
Line 40: Line 40:
 ===== PHP-FPM Socket ===== ===== PHP-FPM Socket =====
  
-  sudo -e '/etc/php/7.2/fpm/pool.d/social.conf' && sudo systemctl restart 'php7.2-fpm'+  sudo -e '/etc/php/7.4/fpm/pool.d/social.conf' && sudo systemctl restart 'php7.4-fpm'
  
 <code> <code>
Line 68: Line 68:
  
 php_value[session.save_handler] = "files" php_value[session.save_handler] = "files"
-php_value[session.save_path] = "/var/lib/php/session"+php_value[session.save_path] = "/var/lib/php/sessions"
 php_value[soap.wsdl_cache_dir] = "/var/lib/php/wsdlcache" php_value[soap.wsdl_cache_dir] = "/var/lib/php/wsdlcache"
 php_value[opcache.file_cache] = "/var/lib/php/opcache"</code> php_value[opcache.file_cache] = "/var/lib/php/opcache"</code>
Line 187: Line 187:
 WorkingDirectory=/var/www/social WorkingDirectory=/var/www/social
 Environment="COMPOSER_CACHE_DIR=/dev/null" Environment="COMPOSER_CACHE_DIR=/dev/null"
-ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'master+ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'develop
-ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'master'+ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'develop'
 ExecStart='/var/www/social/bin/composer.phar' install --no-dev ExecStart='/var/www/social/bin/composer.phar' install --no-dev
 ExecStartPost='/bin/sync'</code> ExecStartPost='/bin/sync'</code>
Line 331: Line 331:
 **** ****
  
-  sudo systemctl stop nginx php7.2-fpm+  sudo systemctl stop nginx php7.4-fpm
  
 ==== Backup Folder ==== ==== Backup Folder ====
Line 349: Line 349:
 **** ****
  
-  sudo systemctl start nginx php7.2-fpm+  sudo systemctl start nginx php7.4-fpm
  
 ===== Client ===== ===== Client =====
Line 387: Line 387:
 **** ****
  
-  sudo systemctl stop nginx php7.2-fpm+  sudo systemctl stop nginx php7.4-fpm
  
 ==== Remove Previous Folder ==== ==== Remove Previous Folder ====
Line 439: Line 439:
 **** ****
  
-  sudo systemctl start nginx php7.2-fpm+  sudo systemctl start nginx php7.4-fpm
  
 ==== Remove Backups ==== ==== Remove Backups ====
/var/www/wiki/data/pages/servers/nginx/friendica.txt · Last modified: 2024/02/01 08:29 by Sean Rhone