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/10/16 23:39] – [scp] Sean Rhoneservers:linux:nginx:mybb [2025/10/30 22:30] (current) – old revision restored (2025/10/16 23:52) Sean Rhone
Line 153: 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 180: 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 363: 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-'*'.sql' espionage724@192.168.1.152:~+  scp ~/'Downloads/mybb'*'.sql' espionage724@192.168.1.152:~
  
 ===== Stop nginx ===== ===== Stop nginx =====
Line 384: Line 380:
  
 ===== Git Fix ===== ===== Git Fix =====
 +
 +  * :!: Set email for ''user.email''
  
   sudo su 'wwwrun' -s '/bin/bash'   sudo su 'wwwrun' -s '/bin/bash'
  
-  cd '/srv/www/forum'+  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'
  
-  rm -Rf '.git'+  git -'/srv/www/forum' pull --depth '1' --recurse-submodules 'origin' 'dev-1.9--rebase
  
-  git init -'dev-1.9'+  git -'/srv/www/forum' reset --hard 'origin/dev-1.9'
  
-  git add '.'+  git -C '/srv/www/forum' gc --aggressive --prune='all'
  
-  git commit -'x'+  git -'/srv/www/forumfsck --full --strict
  
   exit   exit
Line 407: 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 419: 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.1760672360.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