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 [2025/11/19 02:02] – [wp-config.php] Sean Rhoneservers:windows:nginx:wordpress [2025/11/29 00:43] (current) – [Back-up] Sean Rhone
Line 57: Line 57:
 error_reporting = "~E_ALL" error_reporting = "~E_ALL"
 display_errors = "Off" display_errors = "Off"
 +log_errors = "Off"
  
 [Date] [Date]
Line 92: Line 93:
   * https://github.com/WordPress/WordPress/tree/master/wp-content/themes   * https://github.com/WordPress/WordPress/tree/master/wp-content/themes
   * Deny all except ''twentytwentyfive''   * Deny all except ''twentytwentyfive''
 +  * 2025/11/21: No ''twentytwentysix'' (2026) yet
  
   "notepad.exe" "%SystemDrive%\www\nginx\default.d\wp-themes-deny.conf"   "notepad.exe" "%SystemDrive%\www\nginx\default.d\wp-themes-deny.conf"
  
 <code> <code>
-location "~" "/wp-content/themes/(twentyeleven|twentyfifteen|twentyfourteen|twentynineteen|twentyseventeen|twentysixteen|twentyten|twentythirteen|twentytwelve|twentytwentyfour|twentytwentyone|twentytwentythree|twentytwentytwo|twentytwenty)/"+ location "~" "/wp-content/themes/(twentyeleven|twentyfifteen|twentyfourteen|twentynineteen|twentyseventeen|twentysixteen|twentyten|twentythirteen|twentytwelve|twentytwentyfour|twentytwentyone|twentytwentythree|twentytwentytwo|twentytwenty)/"
-    deny "all"; +  deny "all"; 
-}+ }
  
 # End</code> # End</code>
Line 137: Line 139:
  
 ====== Scripts ====== ====== Scripts ======
- 
-**** 
  
   MKDIR "%SystemDrive%\www\scripts\blog"   MKDIR "%SystemDrive%\www\scripts\blog"
 +
 +  "explorer.exe" "%SystemDrive%\www\scripts\blog"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
Line 150: Line 152:
 SET "PHP_FCGI_CHILDREN=1" SET "PHP_FCGI_CHILDREN=1"
  
-START "Blog PHP-CGI" "php-cgi.exe" -b "127.0.0.1:9004" -c "%SystemDrive%\www\php\blog.ini" -q+START "Blog PHP-CGI" /MIN "php-cgi.exe" -b "127.0.0.1:9004" -c "%SystemDrive%\www\php\blog.ini" -q
  
 :: End</code> :: End</code>
Line 174: Line 176:
 ===== Back-up ===== ===== Back-up =====
  
-  * TODO+  * ''D:\Servers\Scheduled Backups''
  
-  "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat"+  "notepad.exe" "%SystemDrive%\www\scripts\blog\Back-up.bat"
  
 <code> <code>
 @echo off @echo off
 +
 +TITLE Blog Back-up
  
 :: User\Downloads :: User\Downloads
-"tar.exe" -czf "%UserProfile%\Downloads\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"+::"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"
  
 :: NAS :: NAS
-::"tar.exe" -czf "D:\Servers\Scheduled Backups\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf"+"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"
  
 :: End</code> :: End</code>
  
-  "%SystemDrive%\www\scripts\media\Back-up.bat"+  "%SystemDrive%\www\scripts\blog\Back-up.bat"
  
 ===== Maintenance ===== ===== Maintenance =====
Line 197: Line 203:
 <code> <code>
 @echo off @echo off
 +
 +TITLE Blog Maintenance
  
 MKDIR "%SystemDrive%\www\temp\blog" MKDIR "%SystemDrive%\www\temp\blog"
Line 213: Line 221:
  
 ===== Git Fix ===== ===== Git Fix =====
 +
 +  * :!: ''wp-content\uploads'' needs backed-up and restored (see [[#maintenance|Maintenance.bat]])
 +  * :!: [[#wp-configphp|wp-config.php]] needs re-applied afterwards
  
   * :!: Set email for ''user.email''   * :!: Set email for ''user.email''
Line 220: Line 231:
 <code> <code>
 @echo off @echo off
 +
 +TITLE Blog Git Fix
  
 RMDIR /S /Q "%SystemDrive%\www\blog\.git" RMDIR /S /Q "%SystemDrive%\www\blog\.git"
Line 240: Line 253:
  
 ====== Shortcuts ====== ====== Shortcuts ======
- 
-===== Desktop ===== 
- 
-==== Update ==== 
- 
-  "%SystemDrive%\www\scripts\blog\Update.bat" 
- 
-  Blog Update 
  
 ===== Autostart ===== ===== Autostart =====
  
-==== CGI ====+==== PHP-CGI ====
  
   "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"   "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"
Line 267: Line 272:
 ===== Update ===== ===== Update =====
  
-  * ''01:30:00 AM'' daily+  * ''2:00:00 AM'' daily
  
   Blog Update   Blog Update
  
   "%SystemDrive%\www\scripts\blog\Update.bat"   "%SystemDrive%\www\scripts\blog\Update.bat"
 +
 +===== Back-up =====
 +
 +  * Monthly -> All months -> Days: ''3''
 +  * ''2:15:00 AM''
 +
 +  Blog Back-up
 +
 +  "%SystemDrive%\www\scripts\blog\Back-up.bat"
 +
 +===== Maintenance =====
 +
 +  * Monthly -> All months -> Days: ''3''
 +  * ''2:30:00 AM''
 +
 +  Blog Maintenance
 +
 +  "%SystemDrive%\www\scripts\blog\Maintenance.bat"
  
 ====== Initial Setup ====== ====== Initial Setup ======
Line 282: Line 305:
  
 ===== wp-config.php ===== ===== wp-config.php =====
 +
 +  * https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php
 +  * https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
 +
 +  * :!: Change ''DB_PASSWORD''
  
   "notepad.exe" "%SystemDrive%\www\blog\wp-config.php"   "notepad.exe" "%SystemDrive%\www\blog\wp-config.php"
/srv/www/wiki/data/attic/servers/windows/nginx/wordpress.1763535750.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