Restore test: write-back reaches its time limit
注入的故障
Injected fault: the test server delays its replies to write-back steps, and the write-back time limit is set lower than in production, so the limit is reached after changes to the site start.
出處:還原測試(在 WP119 測試主機上注入的故障),沒有論壇帖。
測試環境與弄壞後看到什麼
測試站:WordPress 7.1、PHP 8.3。下表是照配方弄壞之後,首頁與登入頁回的 HTTP 狀態。
| 主機環境 | 首頁 | 登入頁 | 備註 |
|---|---|---|---|
| Apache + PHP-FPM | 200 | 500 | |
| Apache + php-cgi (mod_cgid) | 500 | 500 | |
| Apache + mod_php | 200 | 200 | |
| nginx + PHP-FPM | 200 | 500 |
每一跑的結局
| 日期(UTC) | 主機環境 | 連線模式 | 修復費 | 檔案與資料庫對照快照 | 開案前加的留言 | 維修站版本 | 備註 |
|---|---|---|---|---|---|---|---|
| 2026-11-12 | Apache + PHP-FPM | SSH | 全額退還 | Match except file owners | Present | 2.1.460 | |
| 2026-11-12 | Apache + php-cgi (mod_cgid) | SSH | 全額退還 | Match except file owners | Present | 2.1.460 | |
| 2026-11-12 | Apache + mod_php | SSH | 全額退還 | Match except file owners | Present | 2.1.460 | |
| 2026-11-12 | nginx + PHP-FPM | SSH | 全額退還 | Match except file owners | Present | 2.1.460 |
缺口與修在哪一版
結果不是「Matches snapshot」,或注入的故障生效卻判修好的跑次,都在這裡:改了什麼、修在哪一版、重跑的日期與結果。
| 發現日 | 主機環境 | 連線模式 | 改了什麼 | 修在哪一版 | 重跑 |
|---|---|---|---|---|---|
| 2026-11-12 | Apache + PHP-FPM | SSH | Found after the restore: file contents, permissions and the database matched the snapshot; the owner of the .htaccess file in the site root changed from the site account to the account PHP runs as. No change shipped yet. | 處理中 | — |
| 2026-11-12 | Apache + php-cgi (mod_cgid) | SSH | Found after the restore: file contents, permissions and the database matched the snapshot; the owner of the .htaccess file in the site root changed from the site account to the account PHP runs as. No change shipped yet. | 處理中 | — |
| 2026-11-12 | Apache + mod_php | SSH | Found after the restore: file contents, permissions and the database matched the snapshot; the owner of the .htaccess file in the site root changed from the site account to the account PHP runs as. No change shipped yet. | 處理中 | — |
| 2026-11-12 | nginx + PHP-FPM | SSH | Found after the restore: file contents, permissions and the database matched the snapshot; the owner of the .htaccess file in the site root changed from the site account to the account PHP runs as. No change shipped yet. | 處理中 | — |
補充
Runs from the acceptance testing of version 2.1.460 on 2026-11-12, on the small test site. Before each case, two problems were planted on the test site so that the case reaches write-back; the first table shows the HTTP status after that step. Payment in these runs is simulated; the recovery fee column shows the refund the system recorded for that payment.
這些是我們測試主機上、某一版、某一天的紀錄,不是對任何網站結果的承諾;其他主機、PHP 與 WordPress 版本的結果可能不同。