WordPress: Ath-bheothachadh Tubaist

WordPress briste

Tubaist Hindenburgmu dheireadh beagan làithean I've been working furiously on getting my good friend Pat Coyle's blog back up. (My vacation continues to get more interesting – today it's snowing slightly… in April! Whatever happened to Global Warming?)

Tha mi airson na thachair a cho-roinn agus an uairsin bruidhinn mu na ceumannan dìon a ghabh mi a bharrachd air mar a chaidh a cheartachadh.

Seo na thachair:

  1. A DNS chaidh am frithealaiche air an fritz. A. DNS bidh frithealaiche ag eadar-theangachadh trafaic a tha a ’tighinn a-steach gu ainm fearainn agus ga ath-stiùireadh chun t-seirbheisiche iomchaidh. Le seo a ’tachairt, dhealaich e gu dearbh 2 dhòigh conaltraidh - ainm àrainn an làraich agus an làrach chun stòr-dàta (tha an stòr-dàta aige an-dràsta ann an àrainneachd cho-roinnte).
  2. I complicated things by quickly moving his blog over to another server, not realizing that there was a DNS issue. This adds another level of complexity. Passwords in WordPress (and most other database applications) are uniquely encrypted by the server that they are on. If you move the site to another server, you've just disabled your ability to decrypt that password. Thankfully, WordPress (another great feature) has a password recovery system where you can reset your password via a link in an email.

Here's the immediate action that I took:

  1. Before this ever occurred, I have to say that I'm with a fantastic web hosting company who does comprehensive backups. I've never had an issue that they weren't able to correct through backups. I've heard nightmares from other folks on their blogs and sites being totally lost. I can't imagine what it's like to go through that. (Subscribe to my RSS feed agus gheibh thu coupon airson bliadhna an-asgaidh leis an aoigh agam).
  2. Bha e comasach dhomh logadh a-steach don t-seirbheisiche lìn le FTP agus faigh air ais an dà chuid an làrach agus an stòr-dàta. Is e feart eile den phacaid aoigheachd agam gum faigh mi cothrom air an iomlan VDS nas fhaide na an làrach-lìn fhèin. Bidh MySQL a ’stòradh nan stòran-dàta ann an eòlaire faidhle (/ var / lib / mysql /). Bha e comasach dhomh an stòr-dàta a luchdachadh sìos dìreach le bhith a ’dèanamh lethbhreac den eòlaire ionadail. Bruidhinn mu dheidhinn cùl-taic sgoinneil! Gun às-mhalairt, gun às-mhalairt, gun mheudan faidhle as motha airson dèiligeadh ris ... dìreach FTP.

A-nis gu robh an làrach agus an stòr-dàta ionadail agam, chuir mi osna faochadh. Nam biodh mi dìreach air stad an seo agus air a bhith foighidneach, bhiodh cùis DNS air obrachadh a-mach agus bhiodh Pat air a bhith air ais nas luaithe. Dhearbh mi gu robh an t-ainm fearainn fhathast a ’comharrachadh na frithealaichean ainm iomchaidh den aoigh agam a’ cleachdadh Whois.net. Ma nì thu sgrùdadh air an àrainn agad an sin, tha na frithealaichean ainm aig fìor bhonn na h-aithisge.

Thug seo orm creidsinn gum faodadh an làrach a bhith air a slaodadh. Bha am frithealaiche ainm ceart ach bha duilleag uamhasach a bha coltach ri spama air an duilleag a bha a ’tighinn suas. Chleachd mi an Cuir-ris Live Headers to Firefox to ensure I actually wasn't being redirected – the typical hack that many people see. The site wasn't being redirected. I could have done some additional troubleshooting; however, I entered a support ticket with my host so their experts could begin investigating.

Ag ath-nuadhachadh do làrach gu cunntas no aoigh eadar-dhealaichte:

Cha robh mi air Pat ùrachadh chun dreach as ùire de WordPress 2.1, PHP, agus MySQL fhathast, agus mar sin cho-dhùin mi nach robh ùine nas fheàrr na an-dràsta! Chuir mi às an t-seann chunntas aige agus chuir mi cunntas ùr air bhog. Chuir mi a-steach am fiosrachadh ailias post-d aige agus luchdaich mi an stòr-dàta, WordPress 2.1 and Pat's content:

  • eòlaire luchdaidh suas susbaint wp - is ann an seo a bhios na h-ìomhaighean gu lèir agad a ’luchdachadh suas.
  • eòlaire plugins susbaint wp - na plugins agad gu lèir (dèan seo mu dheireadh ged is dòcha gu bheil cùisean dreach agad.
  • eòlaire cuspairean wp-content - an cuspair agad.

I hope in a future release of WordPress that these 3 directories are root directories rather than sub-directories. It would make upgrading much easier! By this time, my host had found the DNS issue and properly redirected the site. Whew! Now Pat's page was coming back up with a WordPress Upgrade message. I clicked through to upgrade the database and he was back up… almost.

Remember the encryption issue I spoke about? Yea, Pat couldn't login because of it. His password no longer decrypted the value in the database properly so I had one more correction to make. I physically logged into the database and changed Pat's reply email address in the user table to my email address. I then utilized the “Lost my Password” feature to email myself a link to reset the password. After resetting the password, I logged in and changed Pat's email address back.

And now Pat is back up! Hindsight is 20/20… had I simply waited on my host, the issue would have been corrected. I really complicated the issue. However, Pat's now upgraded and running the best versions of everything. I'm sorry he was down so long, though. It doesn't take long to bounce back from downtime, but it is a nasty inconvenience! Sorry, Pat!

Leasanan a chaidh ionnsachadh:

  1. Make sure you're with a host that has great backups.
  2. Cùl-taic an làrach agus an stòr-dàta agad agus stòr iad ann an àite sàbhailte.
  3. If you're with a good host, rely on them to find and correct the issue.
  4. Ma dh ’fheumas tu, gluais gu aoigheachd no cunntas ùr agus tuig mar a bheir thu air ais an làrach, an stòr-dàta, agus faigh air ais am facal-faire agad.

Beagan fiosrachaidh a bharrachd

An-diugh tha iarrtas airson ceangal luath eadar-lìn air leudachadh gu mòr. Gu cinnteach, anns an t-saoghal gluasadach seo de eadar-lìn, fòn saideal air dearbhadh a luach. Nuair a thig e gu eadar-lìn gun uèir, tha daoine fhathast an sàs agus a ’faighneachd eadar-lìn gun uèir ciamar luach mòr air an son. Gu sònraichte airson maighstirean-lìn cho cudromach sa tha DSL gun uèir chan eil ceist ann tuilleadh. Is fheàrr leis na maighstirean-lìn sin stiùidio dealbhaidh lìn airson dealbhadh agus an uairsin feumaidh tu an ceangal àrd-astar seo gus a luchdachadh suas. Mar an ath cheum feumar an ceangal luath seo a dhèanamh sa phròiseas margaidheachd einnsean sgrùdaidh. Duine aig a bheil Teisteanas Microsoft is urrainn dhaibh dèiligeadh gu furasta ris a h-uile duilgheadas ann an lìonraachadh nan ceanglaichean sin.

Dè do bheachd?

Tha an làrach seo a 'cleachdadh Akismet gus spama a lùghdachadh. Ionnsaich mar a thathar a 'pròiseasadh an dàta bheachdan agad.