WordPress: Kev Puas Tsuaj Rov Qab

WordPress tawg

Hindenburg Kev Puas Tsuaj LojQhov kawg ob peb hnub 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?)

Kuv xav qhia qhov xwm txheej uas tau muaj dhau los thiab tom qab sib tham txog cov kev tiv thaiv kev tiv thaiv uas kuv tau coj mus ntxiv thiab seb nws raug kho li cas.

Ntawm no yog dab tsi tshwm sim:

  1. A DNS neeg rau zaub mov mus rau ntawm fritz. A DNS server txhais cov khoom nkag mus rau cov npe sau thiab xa nws mus rau qhov tsim nyog server. Nrog rau qhov no tshwm sim, nws tiag tau txiav tawm 2 txhais tau tias kev sib txuas lus - lub npe sau rau tus xaib thiab chaw xa mus rau lub chaw khaws ntaub ntawv (nws cov chaw khaws ntaub ntawv tam sim no nyob hauv ib puag ncig sib koom).
  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. (Sau npe yuav ua rau kuv RSS pub thiab koj tuaj yeem tau txais daim coupon rau ib xyoo zoo so nrog kuv tus tswv tsev).
  2. Kuv tau nkag mus rau Web Server los ntawm FTP thiab khaws txhua qhov chaw thiab qhov chaw khaws ntaub ntawv. Lwm qhov tshwj xeeb ntawm kuv lub pob hosting yog tias kuv tuaj yeem nkag tag nrho Vds dhau ntawm lub vev xaib tiag tiag nws tus kheej. MySQL khaws cov chaw khaws ntaub ntawv hauv ib qho chaw khaws ntawv (/ var / lib / mysql /). Kuv tau rub tawm qhov khaws cia los ntawm kev luam cov npe hauv zos. Tham txog ib thaub qab zoo! Tsis muaj ntshuam, tsis muaj xa tawm, tsis muaj ntau qhov ntau thiab tsawg los hais nrog… tsuas yog FTP.

Tam sim no hais tias kuv muaj lub xaib thiab database hauv zos, Kuv ua pa tsaug tsis nco qab. Tau kuv tsuas yog tso tseg ntawm no thiab ua siab ntev, qhov teeb meem DNS yuav tau ua haujlwm nws tus kheej thiab Pat yuav tau rov qab sai dua. Kuv tshawb xyuas qhov tseeb Lub Npe Lub Npe tseem tau taw rau Tus Tsim Nyom Npe ntawm kuv tus tswv siv Whois.netCov. Yog tias koj txheeb xyuas koj lub npe muaj, cov npe servers yog nyob rau hauv qab kawg ntawm daim ntawv qhia.

Qhov no coj kuv ntseeg tias lub vev xaib tuaj yeem ua tau raug nyiag. Lub npe server yog qhov tseeb tab sis nplooj ntawv los txog yog qee nplooj ntawv txaus ntshai uas zoo li spam. Kuv siv lub Nyob Headers ntxiv-ntawm 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.

Rov kho koj lub xaib mus rau lwm tus account lossis tus tswv tsev:

Kuv tsis tau hloov kho Pat ua qhov hloov tshiab ntawm WordPress 2.1, PHP, thiab MySQL tseem tsis tau, yog li kuv txiav txim siab tsis muaj lub sijhawm zoo dua li tam sim no! Kuv muab nws tus qub account tshem tawm thiab tsim ib qho account tshiab. Kuv rov nkag mus rau nws email alias cov lus qhia thiab thauj cov ntaub ntawv, WordPress 2.1 and Pat's content:

  • wp-cov ntsiab lus upload directory - qhov no yog qhov uas txhua yam ntawm koj cov duab uploaded nyob.
  • wp-cov ntsiab lus plugins - tag nrho koj cov plugins (ua qhov no kawg tab sis vim koj yuav muaj teeb meem version.
  • wp-cov ntsiab lus cov ntsiab lus - koj cov ntsiab lus.

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!

Cov tshooj lus kawm:

  1. Make sure you're with a host that has great backups.
  2. Thaub koj lub xaib thiab cov chaw khaws ntaub ntawv thiab khaws cia rau qhov chaw zoo.
  3. If you're with a good host, rely on them to find and correct the issue.
  4. Yog tias koj xav tau, txav mus rau tus tswv tsev tshiab lossis tus account thiab nkag siab tias yuav ua li cas rov qab xa lub xaib, cov chaw khaws ntaub ntawv, thiab rov qab txais koj lo lus zais.

Ib co ntaub ntawv ntxiv

Tam sim no xav tau rau kev txuas ceev hauv internet tau nce manifolds. Muaj tseeb, hauv lub ntiaj teb no tsiv ntawm internet, satellite xov tooj tau ua pov thawj nws muaj nqis. Thaum nws los txog wireless wireless, tib neeg tseem nyob ntawm lub luag haujlwm thiab nug wireless internet li cas ntau nqi rau lawv. Tshwj xeeb rau cov webmasters qhov tseem ceeb ntawm wireless DSL yog tsis muaj lus nug ntxiv. Feem ntau cov webmasters nyiam web tsim studio rau kev tsim qauv thiab tom qab ntawd xav tau qhov kev kub ceev txuas ntxiv kom xa nws. Xws li cov kauj ruam tom ntej no cov kev sib txuas ceev kuj tseem yuav tsum tau ua nyob rau hauv cov txheej txheem ntawm nrhiav cav ua lag luamCov. Ib tug neeg muaj Microsoft daim ntawv pov thawj tuaj yeem daws txhua yam teeb meem nyob rau hauv kev sib txuas ntawm cov kev sib txuas no.

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.