servers:nginx:friendica
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
servers:nginx:friendica [2019/06/29 00:18] – [Service] Sean Rhone | servers:nginx:friendica [2019/10/24 13:40] – Switch back to Ubuntu Server Sean Rhone | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[distros:fedora_server|Fedora | + | * [[distros:ubuntu_server|Ubuntu |
- | * [[servers: | + | * [[servers: |
- | * [[servers: | + | * [[servers: |
- | * [[servers: | + | * [[servers: |
====== Download Source ====== | ====== Download Source ====== | ||
Line 16: | Line 16: | ||
* :!: '' | * :!: '' | ||
- | sudo rm -Rf '/ | + | sudo rm -Rf '/ |
- | + | ||
- | ===== SELinux ===== | + | |
- | + | ||
- | sudo semanage fcontext | + | |
- | + | ||
- | sudo semanage fcontext --add --type | + | |
- | + | ||
- | sudo restorecon -R -v '/ | + | |
====== PHP Dependencies ====== | ====== PHP Dependencies ====== | ||
Line 158: | Line 150: | ||
* Every 5 minutes | * Every 5 minutes | ||
+ | * :!: Refer to [[distros: | ||
sudo -e '/ | sudo -e '/ | ||
Line 177: | Line 170: | ||
==== Service ==== | ==== Service ==== | ||
+ | |||
+ | * :!: Refer to [[distros: | ||
sudo -e '/ | sudo -e '/ | ||
Line 189: | Line 184: | ||
ExecStart='/ | ExecStart='/ | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStart='/ | + | ExecStart='/ |
ExecStartPost='/ | ExecStartPost='/ | ||
Line 387: | Line 382: | ||
**** | **** | ||
- | sudo systemctl stop nginx php-fpm | + | sudo systemctl stop nginx php7.2-fpm |
==== Remove Previous Folder ==== | ==== Remove Previous Folder ==== | ||
Line 399: | Line 394: | ||
**** | **** | ||
- | cd '/ | + | cd '/ |
- | + | ||
- | ==== SELinux ==== | + | |
- | + | ||
- | sudo semanage fcontext --deleteall "/ | + | |
- | + | ||
- | sudo semanage fcontext --add --type ' | + | |
- | + | ||
- | sudo restorecon -R -v '/ | + | |
==== Drop Previous Database ==== | ==== Drop Previous Database ==== | ||
- | mysql --user=' | + | |
DROP DATABASE friendica; | DROP DATABASE friendica; | ||
FLUSH TABLES; | FLUSH TABLES; | ||
+ | |||
+ | EXIT | ||
==== Re-create Databases ==== | ==== Re-create Databases ==== | ||
- | mysql --user=' | + | |
CREATE DATABASE friendica; | CREATE DATABASE friendica; | ||
+ | |||
+ | EXIT | ||
==== Restore Database ==== | ==== Restore Database ==== | ||
Line 427: | Line 418: | ||
**** | **** | ||
- | mysql --user=' | + | |
==== Reapply Permissions ==== | ==== Reapply Permissions ==== | ||
- | mysql --user=' | + | |
GRANT ALL PRIVILEGES ON friendica.* to ' | GRANT ALL PRIVILEGES ON friendica.* to ' | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
+ | |||
+ | EXIT | ||
==== Start Services ==== | ==== Start Services ==== | ||
Line 441: | Line 434: | ||
**** | **** | ||
- | sudo systemctl start nginx php-fpm | + | sudo systemctl start nginx php7.2-fpm |
==== Remove Backups ==== | ==== Remove Backups ==== |
/var/www/wiki/data/pages/servers/nginx/friendica.txt · Last modified: 2024/02/01 08:29 by Sean Rhone