User Tools

Site Tools


servers:linux:nginx:mybb

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:linux:nginx:mybb [2025/09/11 21:54] – [Dependencies] Sean Rhoneservers:linux:nginx:mybb [2025/10/30 22:30] (current) – old revision restored (2025/10/16 23:52) Sean Rhone
Line 47: Line 47:
   GRANT ALL PRIVILEGES ON mybb.* to 'mybb'@'localhost';   GRANT ALL PRIVILEGES ON mybb.* to 'mybb'@'localhost';
  
-  FLUSH PRIVILEGES; +  FLUSH PRIVILEGES;EXIT;
- +
-  EXIT+
  
 ====== nginx + PHP-FPM Configuration ====== ====== nginx + PHP-FPM Configuration ======
Line 140: Line 138:
  
   * TODO   * TODO
 +
 +===== Offline Message =====
 +
 +  * Configuration -> Settings -> Board Online / Offline
 +
 +<code>
 +These forums are being built behind-the-scenes, check back later!
 +<br />
 +In the meantime, check out my wiki: <a href="https://wiki.realmofespionage.xyz/">RoE | Wiki</a>
 +</code>
  
 ===== config.php ===== ===== config.php =====
Line 145: Line 153:
   * https://docs.mybb.com/1.8/administration/utf-8-setup/   * https://docs.mybb.com/1.8/administration/utf-8-setup/
  
-  sudo su 'wwwrun' -'/bin/bash' +  sudo -'/srv/www/forum/inc/config.php' && sudo chown -v 'wwwrun':'www' '/srv/www/forum/inc/config.php'
- +
-  nano '/srv/www/forum/inc/config.php'+
  
 <code> <code>
 $config['database']['encoding'] = 'utf8mb4';</code> $config['database']['encoding'] = 'utf8mb4';</code>
- 
-  exit 
  
 ====== Services ====== ====== Services ======
Line 172: Line 176:
 ExecStart='/usr/bin/git' -C '/srv/www/forum' pull origin 'dev-1.9' ExecStart='/usr/bin/git' -C '/srv/www/forum' pull origin 'dev-1.9'
  
-ExecStart='/usr/bin/composer' --working-dir='/srv/www/forum' --no-cache install+ExecStart='/usr/bin/composer' --working-dir='/srv/www/forum' --no-cache install --no-dev
  
 ExecStartPost='/usr/bin/sync' ExecStartPost='/usr/bin/sync'
Line 298: Line 302:
 Type=oneshot Type=oneshot
  
 +ExecStart='/usr/bin/git' -C '/srv/www/forum' reset --hard
 ExecStart='/usr/bin/git' -C '/srv/www/forum' gc --aggressive --prune='all' ExecStart='/usr/bin/git' -C '/srv/www/forum' gc --aggressive --prune='all'
 ExecStart='/usr/bin/git' -C '/srv/www/forum' fsck --full --strict ExecStart='/usr/bin/git' -C '/srv/www/forum' fsck --full --strict
Line 354: Line 359:
   scp ~/'Downloads/mybb-files-'*'.tar.gz' espionage724@192.168.1.152:~   scp ~/'Downloads/mybb-files-'*'.tar.gz' espionage724@192.168.1.152:~
  
-  scp ~/'Downloads/mybb-database-'*'.sql' espionage724@192.168.1.152:~+  scp ~/'Downloads/mybb'*'.sql' espionage724@192.168.1.152:~
  
 ===== Stop nginx ===== ===== Stop nginx =====
Line 373: Line 378:
  
   sudo tar -xzf ~/'mybb-files-'*'.tar.gz' -C '/srv/www' 'forum' && sudo chown -R 'wwwrun':'www' '/srv/www/forum' && sudo chmod -R '0755' '/srv/www/forum'   sudo tar -xzf ~/'mybb-files-'*'.tar.gz' -C '/srv/www' 'forum' && sudo chown -R 'wwwrun':'www' '/srv/www/forum' && sudo chmod -R '0755' '/srv/www/forum'
 +
 +===== Git Fix =====
 +
 +  * :!: Set email for ''user.email''
 +
 +  sudo su 'wwwrun' -s '/bin/bash'
 +
 +  rm -Rf '/srv/www/forum/.git'
 +
 +  git -C '/srv/www/forum' init --initial-branch='dev-1.9'
 +
 +  git -C '/srv/www/forum' add '.'
 +
 +  git -C '/srv/www/forum' config 'user.email' 'espionage724@x'
 +
 +  git -C '/srv/www/forum' commit --message='x'
 +
 +  git -C '/srv/www/forum' remote add 'origin' 'https://github.com/mybb/mybb.git'
 +
 +  git -C '/srv/www/forum' pull --depth '1' --recurse-submodules 'origin' 'dev-1.9' --rebase
 +
 +  git -C '/srv/www/forum' reset --hard 'origin/dev-1.9'
 +
 +  git -C '/srv/www/forum' gc --aggressive --prune='all'
 +
 +  git -C '/srv/www/forum' fsck --full --strict
 +
 +  exit
  
 ===== Restore Database ===== ===== Restore Database =====
Line 382: Line 415:
   sudo mariadb --execute='CREATE DATABASE mybb;'   sudo mariadb --execute='CREATE DATABASE mybb;'
  
-  sudo mariadb 'mybb' < ~/'mybb-database-'*'.sql'+  sudo mariadb 'mybb' < ~/'mybb'*'.sql'
  
 ===== Start nginx ===== ===== Start nginx =====
Line 394: Line 427:
 **** ****
  
-  rm -fv ~/'mybb-files-'*'.tar.gz' ~/'mybb-database-'*'.sql'+  rm -fv ~/'mybb-files-'*'.tar.gz' ~/'mybb'*'.sql'
  
/usr/local/www/wiki/data/attic/servers/linux/nginx/mybb.1757642075.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki