Internal Server yuam kev lossis yuam kev 500

Cov txheej txheem:

Internal Server yuam kev lossis yuam kev 500
Internal Server yuam kev lossis yuam kev 500
Anonim

Tshawb xyuas cov cav kom paub tias vim li cas 500 qhov yuam kev tshwm sim. Tej zaum yuav muaj ib qho kev nkag rau hauv cov ntaub ntawv error.log qhia qhov ua rau ntawm qhov teeb meem. Xav txog cov kev xaiv ntau tshaj plaws.

Tsis muaj peev txheej

Yog qhov no yog vim li cas, qhov teeb meem daws tau yooj yim heev - hu rau tus tswvtus neeg muab kev thov kom nce cov peev txheej.

Qhov muaj cov ntawv sau tsis tau lossis lub sijhawm txwv rau lawv ua tiav

yuam kev 500
yuam kev 500

Yog tias lub server tsis ua tiav cov ntawv sau rau qee lub sijhawm, feem ntau ib feeb, 500 Internal Server yuam kev tshwm sim.

Tsis tas li ntawd, cov neeg saib xyuas lub vev xaib yuav ntsib qhov yuam kev zoo sib xws yog tias lawv khiav CGI tsab ntawv los ntawm hauv qab Apache, yog tias lub sijhawm teev tseg hauv cov chaw server tsis txaus los ua cov ntawv sau.

Yog tias cov ntawv sau ua haujlwm yav dhau los, thiab cov teeb meem tshwm sim, piv txwv li, thaum tsiv mus rau lwm lub hosting, qhov teeb meem yuav tshwm sim los ntawm lwm yam laj thawj. Piv txwv li, qhov tseeb tias lub server thaiv kev thov.

yuam kev hauv kev teeb tsa txoj cai nkag

http 500 internal server yuam kev
http 500 internal server yuam kev

Cov ntaub ntawv tso cai yuav tsum yog 444 lossis 644. CHMOD rau folders yuav tsum tsis txhobtxawv ntawm 755, piv txwv li tsuas yog tus tswv ntawm cov peev txheej tuaj yeem saib lawv. Cov ntawv tso cai yuav tsum raug teeb tsa rau 600. Txwv tsis pub, vim kev nyab xeeb, tus neeg rau zaub mov thaiv kev nkag mus rau tsab ntawv, txawm tias nws ua haujlwm tau.

Yog tias qhov no yog vim li cas rau 500 qhov yuam kev, siv tus thawj tswj FTP los hloov cov kev tso cai. Filezilla ua tau haujlwm zoo nrog cov haujlwm no.

Cov ntaub ntawv.htaccess muaj cov lus qhia tsis txhawb nqa

Saib seb cov ntaub ntawv.htaccess muaj nyob hauv lub hauv paus ntawm lub xaib lossis lwm qhov. Yog tias muaj ib qho, qhib nws nrog cov ntawv nyeem. Koj tuaj yeem siv Notepad.

Error 500 tuaj yeem tshwm sim yog tias koj siv lub server khiav ntawm suPHP, piv txwv li. txhawb php.ini. Yog tias muaj cov lus qhia hauv.htaccess cov ntaub ntawv uas hloov PHP ib puag ncig kev teeb tsa, teeb meem yuav tshwm sim. Cov lus qhia tshaj plaws yog php_admin_flag, php_flag thiab php_value.

Cov hloov pauv thoob ntiaj teb feem ntau suav nrog cov lus qhia - Sau npe thoob ntiaj teb.

Qhov teeb meem no daws tau yooj yim heev - cov tsis xav tau tuaj yeem muab tshem tawm yooj yim. Lwm qhov kev xaiv yog los tawm tswv yim tawm los ntawm kev ntxivkos npe rau qhov pib ntawm kab. Yuav tsum muaj qhov chaw nruab nrab ntawm phaus kos npe thiab lub npe ntawm cov lus qhia.

Yog tias koj xav tau ua tiav cov lus qhia tsis tau, lawv tuaj yeem teev nyob rau hauv cov ntaub ntawv php.ini. Hauv qhov no, koj tsis tas yuav siv php_admin_flag, php_flag thiab php_value - tsuas yog xaiv lawv raws li lub hauv paus ntsiab lus: "yuav tsum tau lub npe parameter=On".

PHP kev ua yuam kev tuag

yuam kev 500 internal server yuam kev
yuam kev 500 internal server yuam kev

Qhov teeb meem no tuaj yeem tshwm sim yog tias PHP ua haujlwm zoo li CGI. Hauv qhov no, koj yuav tsum ua tib zoo xyuas qhov program code, kuaj xyuas thiab kho qhov yuam kev. Nco ntsoov tias CGI tsab kab xaus yuav tsum tsis nyob hauv Windows hom (r\n), tab sis yuav tsum yog hom UNIX (n).

Yog tsis muaj ib qho ntawm cov lus pom zoo kho qhov yuam kev, tiv tauj koj tus tswv tsev. Piav qhia meej rau nws thaum twg thiab tom qab ua dab tsi ua qhov 500 qhov yuam kev tshwm sim, nug nws kom qhia qhov ua rau ntawm qhov teeb meem thiab pab kho nws. Nyob rau hauv rooj plaub tus tswv tsev tsis tuaj yeem txheeb xyuas seb vim li cas http 500 Internal Server yuam kev tshwm sim, thov hu rau kev txhawb nqa ntawm CMS koj siv. Nco ntsoov sau tag nrho cov ntsiab lus hauv tsab ntawv, incl. - hosting tus kws kho mob cov lus hais txog koj qhov xwm txheej.

Pom zoo: