{"id":760,"date":"2017-03-28T01:41:59","date_gmt":"2017-03-27T22:41:59","guid":{"rendered":"https:\/\/www.linux-destek.com\/?p=760"},"modified":"2017-03-28T01:41:59","modified_gmt":"2017-03-27T22:41:59","slug":"plesk-11x-12x-bad-gateway-hatasi-ve-cozumu","status":"publish","type":"post","link":"https:\/\/www.48k.com.tr\/plesk-11x-12x-bad-gateway-hatasi-ve-cozumu\/","title":{"rendered":"Plesk 11x 12x Bad Gateway Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc"},"content":{"rendered":"
Plesk panele http\/8880 veya https\/8443 portlar\u0131ndan eri\u015fim yapamad\u0131\u011f\u0131n\u0131zda,sunucuya ssh \u00fczerinden giri\u015f yaparak \u015fu logu takibe al\u0131n.<\/p>\n
\/var\/log\/sw-cp-server\/error_log<\/p><\/blockquote>\n
Bu, plesk panelin kendisinin \u00fczerinde ko\u015ftu\u011fu nginx web server’\u0131n hata kayd\u0131d\u0131r.Web siteler i\u00e7in kulland\u0131\u011f\u0131n\u0131z nginxten farkl\u0131 oldu\u011funu s\u00f6ylememe gerek yok san\u0131r\u0131m.<\/p>\n
E\u011fer yukar\u0131daki log dosyas\u0131 i\u00e7eri\u011finde ,<\/p>\n
recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 123.123.123.123, server: , request: “POST <some url><\/em><\/p>\n
\u015feklinde hata sat\u0131rlar\u0131 g\u00f6r\u00fcyorsan\u0131z alltaki dosyada ilgili de\u011fi\u015fiklikleri yap\u0131n\u0131z.<\/p>\n
\u00a0\/etc\/sw-cp-server\/config
\nfastcgi_buffers 16 16k;
\nfastcgi_buffer_size 32k;<\/p><\/blockquote>\nArd\u0131ndan ilgili servisleri yeniden ba\u015flat\u0131n\u0131z.<\/p>\n
# \/etc\/init.d\/sw-cp-server restart<\/p>\n
# \/etc\/init.d\/sw-engine restart<\/p><\/blockquote>\n
Unable to log into Plesk: Access for administrator from address xx.xx.xx.xx is restricted in accordance with IP Access restriction policy currently applied<\/em><\/p>\n
E\u011fer yukar\u0131daki hata sat\u0131rlar\u0131n\u0131 g\u00f6remediyseniz muhtemelen ip adresiniz bloklanm\u0131\u015f olabilir.Farkl\u0131 bir ip \u00fczerinden girmeyi deneyin veya yine ssh \u00fczerinden login olarak mysql shell’i a\u00e7\u0131n.<\/p>\n
mysql -u admin -p$(cat \/etc\/psa\/.psa.shadow)<\/p>\n
use psa;<\/p>\n
mysql> select * from cp_access;<\/p>\n
mysql> select * from misc where param=’access_policy’;<\/p><\/blockquote>\n
Engellenmi\u015f ip adreslerini ilk sql c\u00fcmlesinin \u00e7\u0131kt\u0131s\u0131nda g\u00f6rebilirsiniz.Bu kay\u0131tlar\u0131 silmek i\u00e7in<\/p>\n
mysql> delete from cp_access;<\/p>\n
Eri\u015fimi heryere a\u00e7mak i\u00e7in;<\/p>\n
mysql> update misc set val=”allow” where param=’access_policy’;<\/p><\/blockquote>\n
<\/p>\n
Plesk aray\u00fcz\u00fcn\u00fc Nginx \u00fczerinde php-fpm ile beraber \u00e7al\u0131\u015fan bir sistemde sunar.Benzeri \u015fekilde websitelerinizde de ayn\u0131 mant\u0131ktad\u0131r.Tek fark\u0131 websitelerin \u00e7al\u0131\u015ft\u0131\u011f\u0131 ortamdan ayr\u0131lm\u0131\u015f,farkl\u0131 portlardan \u00e7al\u0131\u015fan yaz\u0131l\u0131mlard\u0131r.<\/p>\n
E\u011fer fpm limitleri yetmiyor veya bir ba\u015fka problem oldu\u011funu d\u00fc\u015f\u00fcn\u00fcyorsan\u0131 \u015fu dosyalar size yard\u0131mc\u0131 olabilir.<\/p>\n
\/etc\/sw-engine\/pool.d\/plesk.conf —> Plesk uygulamas\u0131 i\u00e7in haz\u0131rlanm\u0131\u015f fpm limitleri,pm,pm_max_children ,max server max request gibi..<\/p>\n
\/etc\/sw-engine\/sw-engine-fpm.conf —> Global fpm ayarlar\u0131 (Sadece plesk uygulamas\u0131 i\u00e7in)<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
Plesk panele http\/8880 veya https\/8443 portlar\u0131ndan eri\u015fim yapamad\u0131\u011f\u0131n\u0131zda,sunucuya ssh \u00fczerinden giri\u015f yaparak \u015fu logu takibe al\u0131n. \/var\/log\/sw-cp-server\/error_log Bu, plesk panelin kendisinin \u00fczerinde ko\u015ftu\u011fu nginx web server’\u0131n hata kayd\u0131d\u0131r.Web siteler i\u00e7in kulland\u0131\u011f\u0131n\u0131z nginxten farkl\u0131 oldu\u011funu s\u00f6ylememe gerek yok san\u0131r\u0131m. E\u011fer yukar\u0131daki log dosyas\u0131 i\u00e7eri\u011finde , recv() failed (104: Connection reset by peer) while reading response header […]<\/p>\n","protected":false},"author":1,"featured_media":730,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[499,574,615,356,358],"tags":[612,613,614,616,490,397,491,617,618,619],"class_list":["post-760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-hosting","category-linux-web-hosting","category-linux-web-sunucu-problemleri-ve-cozumleri","category-plesk-kucuk-ipuclari","category-web-sunuculari","tag-104-connection-reset-by-peer","tag-bad-gateway","tag-fpm","tag-nginx","tag-odin","tag-plesk","tag-plesk-12","tag-pool","tag-unable-to-log-into-plesk","tag-while-reading-response-header-from-upstream"],"_links":{"self":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/760"}],"collection":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/comments?post=760"}],"version-history":[{"count":0,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}