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
Last revisionBoth sides next revision
servers:nginx:friendica [2023/09/12 19:42] Sean Rhoneservers:nginx:friendica [2023/09/12 20:09] Sean Rhone
Line 16: Line 16:
   * https://friendi.ca/resources/requirements/   * https://friendi.ca/resources/requirements/
  
- sudo dnf install php-gd php-pdo php-mbstring php-mysqlnd php-xml php-pecl-zip php-process php-gmp php-pecl-xdebug3+  sudo dnf install php-gd php-pdo php-mbstring php-mysqlnd php-xml php-pecl-zip php-process php-gmp php-pecl-xdebug3
  
 ====== Download Source ====== ====== Download Source ======
Line 30: Line 30:
   sudo su 'nginx' -s '/bin/bash'   sudo su 'nginx' -s '/bin/bash'
  
-  cd '/var/www/social' && COMPOSER_CACHE_DIR='/dev/null' '/var/www/social/bin/composer.phar' install && sync+  cd '/var/www/social' && COMPOSER_CACHE_DIR='/dev/null' php '/var/www/social/bin/composer.phar' install && sync
  
 ====== Database ====== ====== Database ======
Line 218: Line 218:
   * Every 5 minutes   * Every 5 minutes
  
-  sudo -e '/etc/systemd/system/social-d.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-d.timer' --now+  sudo -e '/etc/systemd/system/social-d.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-d.timer' --now && sudo systemctl start 'social-d' && sudo systemctl status 'social-d' -l
  
 <code> <code>
Line 232: Line 232:
 [Install] [Install]
 WantedBy=timers.target</code> WantedBy=timers.target</code>
- 
-==== SELinux Test ==== 
- 
-**** 
- 
-  sudo semanage fcontext --add --type 'bin_t' '/var/www/social/bin/worker.php' 
- 
-  sudo semanage fcontext --add --type 'bin_t' '/var/www/social/bin/composer.phar' 
  
 ===== Updater ===== ===== Updater =====
Line 256: Line 248:
 ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'develop' ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'develop'
 ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'develop' ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'develop'
-ExecStart='/var/www/social/bin/composer.phar' install+ExecStart='/usr/bin/php' '/var/www/social/bin/composer.phar' install
 ExecStartPost='/usr/bin/sync'</code> ExecStartPost='/usr/bin/sync'</code>
  
Line 299: Line 291:
   * ''01'' day of every month at ''02:20:00''   * ''01'' day of every month at ''02:20:00''
  
-  sudo -e '/etc/systemd/system/social-m.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-m.timer' --now+  sudo -e '/etc/systemd/system/social-m.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-m.timer' --now && sudo systemctl start 'social-m' && sudo systemctl status 'social-up' -l
  
 <code> <code>
/var/www/wiki/data/pages/servers/nginx/friendica.txt · Last modified: 2024/02/01 08:29 by Sean Rhone