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
servers:nginx:friendica [2023/09/12 19:42] Sean Rhoneservers:nginx:friendica [2024/02/01 08:29] (current) 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>
  
 ==== Timer ==== ==== Timer ====
  
-  * Every day at ''02:00:00''+  * Every day at ''03:00:00''
  
   sudo -e '/etc/systemd/system/social-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-up.timer' --now && sudo systemctl start 'social-up' && sudo systemctl status 'social-up' -l   sudo -e '/etc/systemd/system/social-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-up.timer' --now && sudo systemctl start 'social-up' && sudo systemctl status 'social-up' -l
Line 272: Line 264:
  
 [Timer] [Timer]
-OnCalendar=*-*-* 02:00:00+OnCalendar=*-*-* 03:00:00
 Persistent=true Persistent=true
  
Line 297: Line 289:
 ==== Timer ==== ==== Timer ====
  
-  * ''01'' day of every month at ''02:20:00''+  * ''01'' day of every month at ''03: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>
Line 308: Line 300:
  
 [Timer] [Timer]
-OnCalendar=*-*-01 02:20:00+OnCalendar=*-*-01 03:20:00
 Persistent=true Persistent=true
  
Line 331: Line 323:
 === Timer === === Timer ===
  
-  * ''01'' day of every month at ''02:50:00''+  * ''01'' day of every month at ''03:35:00''
  
   sudo -e '/etc/systemd/system/social-fb.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-fb.timer' --now && sudo systemctl start 'social-fb' && sudo systemctl status 'social-fb' -l   sudo -e '/etc/systemd/system/social-fb.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-fb.timer' --now && sudo systemctl start 'social-fb' && sudo systemctl status 'social-fb' -l
Line 340: Line 332:
  
 [Timer] [Timer]
-OnCalendar=*-*-01 02:50:00+OnCalendar=*-*-01 03:35:00
 Persistent=true Persistent=true
  
Line 372: Line 364:
 === Timer === === Timer ===
  
-  * Every day at ''02:15:00''+  * Every day at ''03:45:00''
  
   sudo -e '/etc/systemd/system/social-db.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-db.timer' --now && sudo systemctl start 'social-db' && sudo systemctl status 'social-db' -l   sudo -e '/etc/systemd/system/social-db.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'social-db.timer' --now && sudo systemctl start 'social-db' && sudo systemctl status 'social-db' -l
Line 382: Line 374:
  
 [Timer] [Timer]
-OnCalendar=*-*-* 02:15:00+OnCalendar=*-*-* 03:45:00
 Persistent=true Persistent=true
  
/var/www/wiki/data/attic/servers/nginx/friendica.1694562142.txt.gz · Last modified: 2023/09/12 19:42 by Sean Rhone