User Tools

Site Tools


servers:linux:nginx:wordpress

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:wordpress [2025/09/18 04:02] Sean Rhoneservers:linux:nginx:wordpress [2025/10/16 23:21] (current) – [Database] Sean Rhone
Line 35: Line 35:
   GRANT ALL PRIVILEGES ON wordpress.* to 'wordpress'@'localhost';   GRANT ALL PRIVILEGES ON wordpress.* to 'wordpress'@'localhost';
  
-  FLUSH PRIVILEGES; +  FLUSH PRIVILEGES;EXIT;
- +
-  EXIT+
  
 ====== nginx + PHP-FPM Configuration ====== ====== nginx + PHP-FPM Configuration ======
Line 137: Line 135:
 ===== wp-config.php ===== ===== wp-config.php =====
  
-  sudo su 'wwwrun-s '/bin/bash'+  * :!: WordPress set-up needs to generate this file first ((put settings in the ''custom values'' section towards the bottom))
  
-  nano '/srv/www/blog/wp-config.php'+  sudo -e '/srv/www/blog/wp-config.php' && sudo chown -v 'wwwrun':'www' '/srv/www/blog/wp-config.php'
  
 <code> <code>
Line 376: Line 374:
   sudo mariadb 'wordpress' < ~/'wordpress'*'.sql'   sudo mariadb 'wordpress' < ~/'wordpress'*'.sql'
  
-===== dos2unix =====+===== Git Fix =====
  
-****+  :!: Set email for ''user.email'' 
 +  :!: [[#initial_setup|Initial set-up]] needs re-completed for database connection ((re-use existing details))
  
-  find '/srv/www/blog' -type f -print0 | sudo xargs -0 dos2unix -- && sudo chown -R 'wwwrun':'www' '/srv/www/blog' && sudo chmod -'0755' '/srv/www/blog'+  sudo su 'wwwrun' -'/bin/bash'
  
-===== Git Fix =====+  rm -Rf '/srv/www/blog/.git'
  
-  sudo su 'wwwrun' -'/bin/bash'+  git -C '/srv/www/bloginit --initial-branch='master' 
 + 
 +  git -C '/srv/www/blog' add '.' 
 + 
 +  git -C '/srv/www/blog' config 'user.email' 'espionage724@x' 
 + 
 +  git -C '/srv/www/blog' commit --message='x'
  
-  cd '/srv/www/blog'+  git -C '/srv/www/blog' remote add 'origin' 'https://github.com/WordPress/WordPress.git'
  
-  rm -Rf '.git'+  git -'/srv/www/blogpull --depth '1' --recurse-submodules 'origin' 'master' --rebase
  
-  git init -'master'+  git -'/srv/www/blog' reset --hard 'origin/master'
  
-  git add '.'+  git -C '/srv/www/blog' gc --aggressive --prune='all'
  
-  git commit -'x'+  git -'/srv/www/blogfsck --full --strict
  
   exit   exit
/srv/www/wiki/data/attic/servers/linux/nginx/wordpress.1758182566.txt.gz · Last modified: by Sean Rhone