Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:linux:nginx:friendica [2025/10/17 00:09] – Sean Rhone | servers:linux:nginx:friendica [2025/10/17 01:56] (current) – [Etc] Sean Rhone |
---|
| |
* https://github.com/friendica/friendica-addons/commits/develop/ | * https://github.com/friendica/friendica-addons/commits/develop/ |
* Required for ''composer install'' even without addons actively used | * :!: Required for ''composer install'' even without any addons enabled |
| |
sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/srv/www/social/addon' && sudo chown -R 'wwwrun':'www' '/srv/www/social/addon' && sudo chmod -R '0755' '/srv/www/social/addon' | sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/srv/www/social/addon' && sudo chown -R 'wwwrun':'www' '/srv/www/social/addon' && sudo chmod -R '0755' '/srv/www/social/addon' |
| |
nano '/srv/www/social/config/local.config.php' | nano '/srv/www/social/config/local.config.php' |
| |
| exit |
| |
====== Settings ====== | ====== Settings ====== |
==== Timer ==== | ==== Timer ==== |
| |
* Every 12 hours | * Every 10 minutes (([[https://wiki.friendi.ca/docs/install#required_background_tasks|info]])) |
| |
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 | 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 |
| |
[Timer] | [Timer] |
OnBootSec=12h | OnBootSec=10m |
OnUnitActiveSec=12h | OnUnitActiveSec=10m |
| |
[Install] | [Install] |
=== Timer === | === Timer === |
| |
* ''01'' day of every month at ''01:10:00'' | * ''01'' day of every month at ''04:10: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 |
| |
* :!: Set email for ''user.email'' | * :!: Set email for ''user.email'' |
| * :!: Requires [[#etc|Etc]] commands afterwards ((https://social.realmofespionage.xyz doesn't redirect to single-profile URL and shows an error)) |
| |
sudo su 'wwwrun' -s '/bin/bash' | sudo su 'wwwrun' -s '/bin/bash' |
| |
exit | exit |
| |
| ===== Database Connection ===== |
| |
| sudo -e '/srv/www/social/config/local.config.php' && sudo chown -v 'wwwrun':'www' '/srv/www/social/config/local.config.php' |
| |
| <code> |
| 'database' => [ |
| 'hostname' => 'localhost',</code> |
| |
| <code> |
| 'system' => [ |
| 'basepath' => '/srv/www/social',</code> |
| |
===== Restore Database ===== | ===== Restore Database ===== |