Skip to content
WasFor
Kgutlela hae
Litokomane/Ts'ebetso

Ho batle phoso

Liketsahalo tse ngata li oela ka palo e fokolang ea mekhoa. Sebetsa ho tloha ho letšoao ho ea ho lera, tiisa ka taelo, ebe u sebelisa tokiso e nyenyane ka ho fetisisa.

Matrix ea matšoao

LetšoaoMohlomong leraSheba pele
502 Bad GatewayPHP-FPM kapa holimoBoemo ba letamo la PHP-FPM, tlaleho ea liphoso
503 Service UnavailableMokhoa oa ho lokisa kapa ho jara haholoFolakha ea tlhokomelo ea phanele, karolelano ea mojaro
504 Gateway TimeoutHolimo butle haholomax_execution_time, lipotso tse liehang
500 Internal Server ErrorKopoLenane la phoso ea sebaka, display_errors e tima
Sebaka ha se fumaneheDNS kapa firewalldig, curl -I, boema-kepe ba 80/443
Phoso ea SSLSetifikeitiNako ea ho felloa ke nako, ketane, lebitso la moamoheli le sa lumellane
Lengolo le chechisitsoe moraoDNS kapa paloSPF/DKIM, palo ea lebokose la mangolo, mokoloko
Disk e tletsePolokelodf -h, li-directory tse kholo ka ho fetisisa
Phanele tlaseTšebeletso ea phanelesystemctl status wasfor-panel

502 Bad Gateway

Seva ea tepo ha e khone ho fihla PHP-FPM.

bash
systemctl status php8.3-fpm --no-pager
tail -n 100 /home/acme/sites/app.example.com/logs/error.log
ss -lntp | grep fpm
LebakaLokisa
Letamo la FPM le soahlamaneQala hape letamo; hlahloba thipa ea ho soahlamana
Ho se lumellane ha tsela ea li-socketKenya kopo hape mofuta oa sebaka sa PHP
Mehopolo e felileTlase memory_limit kapa eketsa RAM
Nako ea nako ea basebetsiEketsa request_terminate_timeout ka hloko

500 Phoso ea Ka hare ea Seva

Kopo e hlolehile. Bulela ho rema lifate ho fapana le display_errors:

bash
tail -f /home/acme/sites/app.example.com/logs/error.log
grep -i "PHP Fatal" /home/acme/sites/app.example.com/logs/error.log | tail -20

Lisosa tse tloaelehileng: ho haella ha PHP, tumello ea faele e fosahetseng, cache ea khale ea config, ho falla ho hlolehileng. Lokisa sesosa, ebe o hlakola li-cache.

504 Gateway Timeout

Kopo e fetile nako e itseng. Bapisa litekanyetso tse tharo:

text
Client / proxy timeout   ≥ max_execution_time
max_execution_time       ≥ expected work
Database query time      < max_execution_time

Mesebetsi e melelele ke ea motho ea etsang mela, eseng ka kopo ea tepo.

DNS le ho fihlella

bash
dig +short app.example.com A
dig +short app.example.com AAAA
curl -I -H "Host: app.example.com" http://203.0.113.10

Haeba kopo ea lehae ea Host e sebetsa empa domain name e hloleha, bothata ke DNS kapa firewall ea moeli, eseng ts'ebeliso.

Ho hloleha ha SSL

bash
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
  | openssl x509 -noout -dates -subject -issuer
MolaetsaTlhaloso
certificate has expiredNchafatso e hlolehile; hlahisa bocha
unable to verify the first certificateKetane e sa fellang
certificate is valid for …Ho se lumellane ha lebitso la moamoheli; eketsa lebitso

Lengolo le chechisitsoe morao

bash
mailq | tail -20
grep -i "deferred" /var/log/mail.log | tail -30

Sheba SPF/DKIM/DMARC, quota ea lebokose la mangolo, le hore na sebaka seo u eang ho sona se u behela meeli. Ho phahama ka tšohanyetso ha molumo o tsoang hangata ho bolela ak'haonte kapa script e senyehileng.

Disk e tletse

bash
df -h
du -xh --max-depth=1 /home | sort -h | tail -10
du -xh --max-depth=1 /var/log | sort -h | tail -10

Fetola likutu, hlakola linepe tsa khale, 'me u hlahlobe likopi tse balehileng. Le ka mohla u se ke ua hlakola lifaele tsa /var/lib/mysql ka letsoho.

Liphoso tsa khokahano ea database

bash
systemctl status mariadb --no-pager
mysqladmin status -u root -p
PhosoTlhaloso
Too many connectionsPhahamisa max_connections kapa lokisa ho lutla ha khokahano
Access deniedMosebelisi, moamoheli kapa password e fosahetseng
Disk fullSheba karolo ea disk
Table is marked as crashedKhutlisa kapa u tsamaise tokiso ho seva se emisitsoeng

Panele ha e laetsoe

bash
systemctl status wasfor-panel --no-pager
journalctl -u wasfor-panel -n 200 --no-pager
curl -sk https://127.0.0.1:<port>/api/health

Haeba pheletso ea bophelo bo botle e arabela empa UI e se na letho, hlahloba "browser console" le "static asset cache". Hlakola cache ea phanele ebe u kenya hape.

Keketseho

Li bokelle pele u bula tekete:

  • Lipampiri tsa nako hantle tse nang le sebaka sa nako.
  • Kopa li-ID le li-URL tse amehang.
  • Lintlha tse qotsitsoeng tse amanang.
  • Ke eng e ileng ea fetoha hang-hang pele ho ketsahalo eo.
  • Mehato e seng e lekoa.

Sheba AI & support bakeng sa lintho tse tlang pele bophelong ba litekete le likarabo tsa likarabo.

E qetetse ho ntlafatsoa: 2026-12-01