servers:bsd:nginx:wordpress
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:bsd:nginx:wordpress [2025/05/16 19:44] – Sean Rhone | servers:bsd:nginx:wordpress [2025/05/16 21:51] (current) – [Download Source] Sean Rhone | ||
---|---|---|---|
Line 4: | Line 4: | ||
* [[Information: | * [[Information: | ||
* https:// | * https:// | ||
- | |||
- | * 2025/05/16: WIP | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 24: | Line 22: | ||
====== Download Source ====== | ====== Download Source ====== | ||
+ | |||
+ | * https:// | ||
su - | su - | ||
Line 95: | Line 95: | ||
===== Server Block ===== | ===== Server Block ===== | ||
- | | + | |
- | | + | |
< | < | ||
server { | server { | ||
- | listen | + | listen 443 ssl; |
+ | # | ||
server_name ' | server_name ' | ||
- | root '/var/ | + | root '/usr/local/ |
index ' | index ' | ||
- | include '/ | + | include '/usr/local/ |
- | include '/ | + | include '/usr/local/ |
client_max_body_size ' | client_max_body_size ' | ||
Line 113: | Line 114: | ||
# add_header Content-Security-Policy " | # add_header Content-Security-Policy " | ||
- | # access_log | + | # access_log |
- | # error_log | + | # error_log |
location / { | location / { | ||
Line 125: | Line 126: | ||
access_log off; log_not_found off; expires max; | access_log off; log_not_found off; expires max; | ||
} | } | ||
- | }</ | + | } |
+ | |||
+ | # End</ | ||
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 134: | Line 137: | ||
* Date Format: Y/m/d | * Date Format: Y/m/d | ||
+ | |||
+ | ===== DB Connection Fix ===== | ||
+ | |||
+ | * https:// | ||
+ | * '' | ||
+ | |||
+ | su - | ||
+ | |||
+ | ee '/ | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | ====== Temp Commands ====== | ||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | su - | ||
+ | |||
+ | su -m ' | ||
+ | |||
+ | ===== Etc ===== | ||
+ | |||
+ | su - | ||
+ | |||
+ | su -m ' | ||
+ | |||
+ | su -m ' | ||
+ | |||
+ | su -m ' | ||
+ | |||
+ | su -m ' | ||
====== Services ====== | ====== Services ====== | ||
Line 346: | Line 384: | ||
sudo systemctl stop nginx php-fpm | sudo systemctl stop nginx php-fpm | ||
- | ==== Remove Previous Folder | + | ====== Restore ====== |
- | **** | + | ===== Files ===== |
- | | + | |
- | ==== Restore WordPress Folder ==== | + | rm -Rf '/ |
- | **** | + | cd '/ |
- | cd '/ | + | ===== Database ===== |
- | + | ||
- | ==== Drop Previous Database | + | |
- | + | ||
- | sudo mariadb | + | |
- | + | ||
- | DROP DATABASE wordpress; | + | |
- | + | ||
- | FLUSH TABLES; | + | |
- | + | ||
- | EXIT | + | |
- | + | ||
- | ==== Re-create Databases ==== | + | |
- | + | ||
- | sudo mariadb | + | |
- | + | ||
- | CREATE DATABASE wordpress; | + | |
- | + | ||
- | EXIT | + | |
- | + | ||
- | ==== Restore | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo mariadb ' | + | |
- | + | ||
- | ==== Reapply Permissions ==== | + | |
- | + | ||
- | sudo mariadb | + | |
- | + | ||
- | GRANT ALL PRIVILEGES ON wordpress.* to ' | + | |
- | + | ||
- | FLUSH PRIVILEGES; | + | |
- | + | ||
- | EXIT | + | |
- | + | ||
- | ==== Start Services | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo systemctl start nginx php-fpm | + | |
- | ==== Remove Backups ==== | + | * [[# |
- | | + | |
- | | + | |
/usr/local/www/wiki/data/attic/servers/bsd/nginx/wordpress.1747439067.txt.gz · Last modified: by Sean Rhone