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:10] – [Git Fix] Sean Rhoneservers:windows:nginx:wordpress [2026/04/15 10:05] (current) – [PHP-CGI] Sean Rhone
Line 26: Line 26:
 ====== Database ====== ====== Database ======
  
-  "%ProgramFiles%\MariaDB 12.2\bin\mariadb.exe" -u "root"+  "%ProgramFiles%\MariaDB 12.3\bin\mariadb.exe" -u "root"
  
   CREATE DATABASE wordpress;   CREATE DATABASE wordpress;
Line 40: Line 40:
 ===== PHP ===== ===== PHP =====
  
-  "notepad.exe" "%SystemDrive%\www\php\blog.ini"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\php\blog.ini"
  
 <code> <code>
Line 72: Line 72:
 ===== PHP-CGI ===== ===== PHP-CGI =====
  
-  "notepad.exe" "%SystemDrive%\www\nginx\default.d\blog.conf"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\nginx\default.d\blog.conf"
  
 <code> <code>
Line 94: Line 94:
   * Deny all except ''twentytwentyfive''   * Deny all except ''twentytwentyfive''
  
-  "notepad.exe" "%SystemDrive%\www\nginx\default.d\wp-themes-deny.conf"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\nginx\default.d\wp-themes-deny.conf"
  
 <code> <code>
Line 105: Line 105:
 ===== Server Block ===== ===== Server Block =====
  
-  "notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\blog.conf"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\nginx\vhosts.d\blog.conf"
  
 <code> <code>
Line 137: Line 137:
   MKDIR "%SystemDrive%\www\scripts\blog"   MKDIR "%SystemDrive%\www\scripts\blog"
  
-  "explorer.exe" "%SystemDrive%\www\scripts\blog"+  "%SystemRoot%\explorer.exe" "%SystemDrive%\www\scripts\blog"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\blog\PHP-CGI.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\blog\PHP-CGI.bat"
  
 <code> <code>
Line 151: Line 151:
 SET "PHP_FCGI_CHILDREN=1" SET "PHP_FCGI_CHILDREN=1"
  
-START "Blog PHP-CGI" /MIN "php-cgi.exe" -b "127.0.0.1:9004" -c "%SystemDrive%\www\php\blog.ini" -q+START "Blog PHP-CGI" /MIN /D "%Temp%" "php-cgi.exe" -b "127.0.0.1:9004" -c "%SystemDrive%\www\php\blog.ini" -q
  
 SET "PHP_FCGI_MAX_REQUESTS=" SET "PHP_FCGI_MAX_REQUESTS="
Line 162: Line 162:
 ===== Update ===== ===== Update =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\blog\Update.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\blog\Update.bat"
  
 <code> <code>
Line 179: Line 179:
 ===== Back-up ===== ===== Back-up =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\blog\Back-up.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\blog\Back-up.bat"
  
 <code> <code>
Line 187: Line 187:
 CD "%Temp%" CD "%Temp%"
  
-"tar.exe" -czf "D:\Servers\Scheduled Backups\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" +"%SystemRoot%\System32\tar.exe" -czf "D:\Servers\Scheduled Backups\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" 
-"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-wordpress.sql" "wordpress"+"%ProgramFiles%\MariaDB 12.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "D:\Servers\Scheduled Backups\%RANDOM%-wordpress.sql" "wordpress"
  
-::"tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" +::"%SystemRoot%\System32\tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" 
-::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-wordpress.sql" "wordpress"+::"%ProgramFiles%\MariaDB 12.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "%UserProfile%\Downloads\%RANDOM%-wordpress.sql" "wordpress"
  
 :: End</code> :: End</code>
Line 199: Line 199:
 ===== Maintenance ===== ===== Maintenance =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\blog\Maintenance.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\blog\Maintenance.bat"
  
 <code> <code>
Line 216: 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'' +  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\blog\Git Fix.bat"
- +
-  "notepad.exe" "%SystemDrive%\www\scripts\blog\Git Fix.bat"+
  
 <code> <code>
Line 270: 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" +
- +
-  "%SystemDrive%\www\scripts\blog\PHP-CGI.bat" +
- +
-  Blog PHP-CGI +
- +
-====== Task Scheduler ====== +
- +
-****+
  
-  taskschd.msc+  "%SystemRoot%\System32\schtasks.exe" /Create /SC "ONLOGON" /TN "Blog PHP-CGI" /TR "%SystemDrive%\www\scripts\blog\PHP-CGI.bat" /F
  
 ===== Update ===== ===== Update =====
  
-  * ''2:00:00 AM'' daily+  * Daily ''02:00:00 AM''
  
-  Blog Update +  "%SystemRoot%\System32\schtasks.exe" /Create /SC "DAILY" /TN "Blog Update" /TR "%SystemDrive%\www\scripts\blog\Update.bat" /ST "02:00" /F
- +
-  "%SystemDrive%\www\scripts\blog\Update.bat" +
- +
-  SCHTASKS /Create /SC "ONCE" /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 +  "%SystemRoot%\System32\schtasks.exe" /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+  "%SystemRoot%\System32\schtasks.exe" /Create /SC "MONTHLY" /D "3" /M "*" /TN "Blog Maintenance" /TR "%SystemDrive%\www\scripts\blog\Maintenance.bat" /ST "02:30" /F
  
 ====== Initial Setup ====== ====== Initial Setup ======
  
   * 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 332: 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''
  
-  "notepad.exe" "%SystemDrive%\www\blog\wp-config.php"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\blog\wp-config.php"
  
 <code> <code>
Line 354: Line 330:
  
 if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
- define( 'ABSPATH', __DIR__ . '/' );+        define( 'ABSPATH', __DIR__ . '/' );
 } }
  
Line 361: Line 337:
 // End</code> // End</code>
  
-====== Files ======+====== Backup ======
  
-===== Backup =====+===== Folder =====
  
 **** ****
  
-  "tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog"+  "%SystemRoot%\System32\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"+  "%ProgramFiles%\MariaDB 12.3\bin\mariadb-dump.exe" -u "root" --opt --single-transaction -r "%UserProfile%\Downloads\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.3\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.3\bin\mariadb.exe" -u "root" "wordpress" < "%UserProfile%\Downloads\wordpress.sql"
  
/var/www/wiki/data/attic/servers/windows/nginx/wordpress.1768914632.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