User Tools

Site Tools


servers:windows: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:windows:nginx:wordpress [2026/01/20 08:01] Sean Rhoneservers:windows:nginx:wordpress [2026/01/20 15:20] (current) – [Git Fix] Sean Rhone
Line 207: Line 207:
 CD "%Temp%" CD "%Temp%"
  
-MKDIR "%SystemDrive%\www\temp\blog" +"%ProgramFiles%\Git\bin\git.exe" -"%SystemDrive%\www\blog" gc --aggressive --prune="all
-MOVE /Y "%SystemDrive%\www\blog\wp-content\uploads" "%SystemDrive%\www\temp\blog" +"%ProgramFiles%\Git\bin\git.exe-C "%SystemDrive%\www\blog" fsck --full --strict
-COPY /Y "%SystemDrive%\www\blog\wp-config.php"%SystemDrive%\www\temp\blog+
- +
-CALL "%SystemDrive%\www\scripts\blog\Git Fix.bat" +
- +
-MOVE /Y "%SystemDrive%\www\temp\blog\uploads"%SystemDrive%\www\blog\wp-content" +
-MOVE /Y "%SystemDrive%\www\temp\blog\wp-config.php" "%SystemDrive%\www\blog\wp-config.php" +
-RMDIR /S /Q "%SystemDrive%\www\temp\blog"+
  
 :: End</code> :: End</code>
Line 223: Line 216:
 ===== Git Fix ===== ===== Git Fix =====
  
-  * :!: ''wp-content\uploads'' needs backed-up and restored (see [[#maintenance|Maintenance.bat]]) +  * :!: Set ''user.email''
-  * :!: [[#wp-configphp|wp-config.php]] needs re-applied afterwards +
- +
-  * :!: Set email for ''user.email''+
  
   "notepad.exe" "%SystemDrive%\www\scripts\blog\Git Fix.bat"   "notepad.exe" "%SystemDrive%\www\scripts\blog\Git Fix.bat"
Line 234: Line 224:
  
 TITLE Blog Git Fix TITLE Blog Git Fix
 +CD "%Temp%"
  
-:################### +::################## 
-:# Content Back-up +::# Content Back-up 
-:###################+::##################
  
 MKDIR "%SystemDrive%\www\temp\blog" MKDIR "%SystemDrive%\www\temp\blog"
Line 243: Line 234:
 COPY /Y "%SystemDrive%\www\blog\wp-config.php" "%SystemDrive%\www\temp\blog" COPY /Y "%SystemDrive%\www\blog\wp-config.php" "%SystemDrive%\www\temp\blog"
  
-:################### +::################## 
-:# WordPress +::# WordPress 
-:###################+::##################
  
 RMDIR /S /Q "%SystemDrive%\www\blog\.git" RMDIR /S /Q "%SystemDrive%\www\blog\.git"
Line 251: Line 242:
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" add "." "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" add "."
  
-:#######################################+::######################################
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" config "user.email" "espionage724@x" "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" config "user.email" "espionage724@x"
-:#######################################+::######################################
  
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" commit --message="x" "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" commit --message="x"
Line 264: Line 255:
 "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" fsck --full --strict "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\blog" fsck --full --strict
  
-:################### +::################## 
-:# Content Restore +::# Content Restore 
-:###################+::##################
  
 MOVE /Y "%SystemDrive%\www\temp\blog\uploads" "%SystemDrive%\www\blog\wp-content" MOVE /Y "%SystemDrive%\www\temp\blog\uploads" "%SystemDrive%\www\blog\wp-content"
Line 276: Line 267:
   "%SystemDrive%\www\scripts\blog\Git Fix.bat"   "%SystemDrive%\www\scripts\blog\Git Fix.bat"
  
-====== Shortcuts ======+====== Task Scheduler ======
  
-===== Autostart =====+===== PHP-CGI =====
  
-==== PHP-CGI ====+  * Auto-start
  
-  "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" +  SCHTASKS /Create /SC "ONLOGON/TN "Blog PHP-CGI/TR "%SystemDrive%\www\scripts\blog\PHP-CGI.bat" /F
- +
-  "%SystemDrive%\www\scripts\blog\PHP-CGI.bat" +
- +
-  Blog PHP-CGI +
- +
-====== Task Scheduler ====== +
- +
-**** +
- +
-  taskschd.msc+
  
 ===== Update ===== ===== Update =====
  
-  * ''2:00:00 AM'' daily +  * Daily ''02:00:00 AM''
- +
-  Blog Update +
- +
-  "%SystemDrive%\www\scripts\blog\Update.bat"+
  
-  SCHTASKS /Create /SC "ONCE" /TN "Blog Update" /TR "%SystemDrive%\www\scripts\blog\Update.bat" /ST "02:00" /F+  SCHTASKS /Create /SC "DAILY" /TN "Blog Update" /TR "%SystemDrive%\www\scripts\blog\Update.bat" /ST "02:00" /F
  
 ===== Back-up ===== ===== Back-up =====
  
-  * Monthly -> All months -> Days: ''3'' +  * Monthly (3rd) ''02:10:00 AM''
-  * ''2:15:00 AM''+
  
-  Blog Back-up +  SCHTASKS /Create /SC "MONTHLY" /D "3" /M "*" /TN "Blog Back-up" /TR "%SystemDrive%\www\scripts\blog\Back-up.bat" /ST "02:10" /F
- +
-  "%SystemDrive%\www\scripts\blog\Back-up.bat" +
- +
-  SCHTASKS /Create /SC "MONTHLY" /D "3" /M "*" /TN "Blog Back-up" /TR "%SystemDrive%\www\scripts\blog\Back-up.bat" /ST "02:15" /F+
  
 ===== Maintenance ===== ===== Maintenance =====
  
-  * Monthly -> All months -> Days: ''3'' +  * Monthly (3rd) ''02:30:00 AM''
-  * ''2:30:00 AM'' +
- +
-  Blog Maintenance +
- +
-  "%SystemDrive%\www\scripts\blog\Maintenance.bat"+
  
   SCHTASKS /Create /SC "MONTHLY" /D "3" /M "*" /TN "Blog Maintenance" /TR "%SystemDrive%\www\scripts\blog\Maintenance.bat" /ST "02:30" /F   SCHTASKS /Create /SC "MONTHLY" /D "3" /M "*" /TN "Blog Maintenance" /TR "%SystemDrive%\www\scripts\blog\Maintenance.bat" /ST "02:30" /F
Line 329: Line 296:
  
   * https://blog.realmofespionage.xyz   * https://blog.realmofespionage.xyz
 +  * Database Host: ''localhost''
  
 ====== Settings ====== ====== Settings ======
  
-  * https://developer.wordpress.org/advanced-administration/wordpress/update-services/#xml-rpc-ping-services+  * Date Format -> Custom''Y/m/d'' 
 +  * Permalink structure: ''[x]'' Plain
  
 ===== wp-config.php ===== ===== wp-config.php =====
Line 338: Line 307:
   * https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php   * https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php
   * https://developer.wordpress.org/advanced-administration/wordpress/wp-config/   * https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
 +  * ''SCRIPT_DEBUG'' at ''true'' loads non-minified scripts/CSS ([[https://github.com/WordPress/WordPress/blob/master/wp-includes/script-loader.php#L6|source]]) ((2026/01/06: Fixed 2025 theme loading odd buttons in header))
  
   * :!: Change ''DB_PASSWORD''   * :!: Change ''DB_PASSWORD''
Line 360: Line 330:
  
 if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
- define( 'ABSPATH', __DIR__ . '/' );+        define( 'ABSPATH', __DIR__ . '/' );
 } }
  
Line 367: Line 337:
 // End</code> // End</code>
  
-====== Files ======+====== Backup ======
  
-===== Backup =====+===== Folder =====
  
 **** ****
Line 375: Line 345:
   "tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog"   "tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog"
  
-====== Database ====== +===== Database =====
- +
-===== Backup =====+
  
 **** ****
  
-  CD "%USERPROFILE%\Downloads" && "%PROGRAMFILES%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" -p --opt -r "wordpress.sql" "wordpress"+  CD "%USERPROFILE%\Downloads" && "%PROGRAMFILES%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "wordpress.sql" "wordpress" 
 + 
 +====== Restore ======
  
-===== Restore =====+===== Database =====
  
   * [[#database|Initial set-up]]   * [[#database|Initial set-up]]
  
-  "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" -p --execute="CREATE DATABASE wordpress"+  "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" --execute="CREATE DATABASE wordpress"
  
-  "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" -p "wordpress" < "%UserProfile%\Downloads\wordpress.sql"+  "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root" "wordpress" < "%UserProfile%\Downloads\wordpress.sql"
  
/usr/local/www/wiki/data/attic/servers/windows/nginx/wordpress.1768914101.txt.gz · Last modified: by Sean Rhone