Naujausias pranešimas: Samba kritinis pažeidžiamumas
frame

Sveiki apsilankę!

Jei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.

Prisijungti Registruotis

ERR_CONNECTION_REFUSED

Kadangi viršijome Inode resursus bei buvo aktualu, kad vienu metu būtų vykdomi keli PHP procesai užsisakėme planą Linux 16 su DirectAdmin 1.6 (Centos 7) diegimu. Perkelėme svetainį į serverį, įdiegėme Let's Encrypt. Svetainė veikia, tačiau susidūrėme su problema, kad labai dažnai svetainė nepasiekiama - ERR_CONNECTION_REFUSED. Neturime patirties administruoti serverio. Norėtume išgirsti patarimų, kaip būtų galima išspręsti šią problemą. 

Komentarai

  • iv_vytenisgiv_vytenisg Super Moderator
    edited 2021 vasario 9
    Laba diena,
    Detalesnei situacijos analizei siūlytume pateikti užklausą el. paštu info@dedikuoti.lt nurodant svetainės pavadinimą ir trumpai aprašant problemą. Iš informacijos, kurią suteikėte neturime galimybės identifikuoti galimos problemos priežasties, nes ši klaida gali būti pateikiama dėl daugelio įvairių priežasčių.
  • Suprantame, kad dedikuoti serveriai yra administruojami savarankiškai, ir nekeliame jokių pretenzijų. Tiesiog forume tikimės patarimų, kadangi, kaip minėjome, neturime patirties administruoti serverio. Taip pat suprantame, kad priežasčių gali būti daug. Rašome į forumą, tikėdamiesi ne tik paslaugos teikėjų atsakymo, bet kitų forumo dalyvių įžvalgų.
    Svetainės adresas: www.ratai4.lt. Svetainė perkelta iš kito serverio, yra prarastų nuotraukų, bet, manytume, kad tai neturėtų įtakoti.
    Pridedame Apache klaidų sąrašą: 
    /var/log/httpd/error_log
    1
    [Mon Feb 08 22:54:42.648870 2021] [mpm_event:notice] [pid 19077:tid 140166490798208] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    2
    [Mon Feb 08 22:54:42.648904 2021] [core:notice] [pid 19077:tid 140166490798208] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    3
    [Mon Feb 08 22:57:01.253229 2021] [ssl:warn] [pid 20253:tid 140036484188288] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    4
    [Mon Feb 08 22:57:01.253504 2021] [suexec:notice] [pid 20253:tid 140036484188288] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    5
    [Mon Feb 08 22:57:01.270910 2021] [ssl:warn] [pid 20253:tid 140036484188288] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    6
    [Mon Feb 08 22:57:01.271224 2021] [lbmethod_heartbeat:notice] [pid 20253:tid 140036484188288] AH02282: No slotmem from mod_heartmonitor
    7
    [Mon Feb 08 22:57:01.271288 2021] [:notice] [pid 20253:tid 140036484188288] mod_ruid2/0.9.8 enabled
    8
    [Mon Feb 08 22:57:01.271369 2021] [core:warn] [pid 20253:tid 140036484188288] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    9
    [Mon Feb 08 22:57:01.274780 2021] [mpm_event:notice] [pid 20253:tid 140036484188288] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    10
    [Mon Feb 08 22:57:01.274816 2021] [core:notice] [pid 20253:tid 140036484188288] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    11
    [Mon Feb 08 22:58:41.940018 2021] [ssl:warn] [pid 21376:tid 140592687421568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    12
    [Mon Feb 08 22:58:41.940281 2021] [suexec:notice] [pid 21376:tid 140592687421568] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    13
    [Mon Feb 08 22:58:41.953768 2021] [ssl:warn] [pid 21376:tid 140592687421568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    14
    [Mon Feb 08 22:58:41.954061 2021] [lbmethod_heartbeat:notice] [pid 21376:tid 140592687421568] AH02282: No slotmem from mod_heartmonitor
    15
    [Mon Feb 08 22:58:41.954118 2021] [:notice] [pid 21376:tid 140592687421568] mod_ruid2/0.9.8 enabled
    16
    [Mon Feb 08 22:58:41.954186 2021] [core:warn] [pid 21376:tid 140592687421568] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    17
    [Mon Feb 08 22:58:41.960050 2021] [mpm_event:notice] [pid 21376:tid 140592687421568] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    18
    [Mon Feb 08 22:58:41.960090 2021] [core:notice] [pid 21376:tid 140592687421568] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    19
    [Mon Feb 08 23:01:01.268595 2021] [ssl:warn] [pid 22517:tid 140216546322560] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    20
    [Mon Feb 08 23:01:01.268836 2021] [suexec:notice] [pid 22517:tid 140216546322560] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    21
    [Mon Feb 08 23:01:01.290228 2021] [ssl:warn] [pid 22517:tid 140216546322560] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    22
    [Mon Feb 08 23:01:01.290782 2021] [lbmethod_heartbeat:notice] [pid 22517:tid 140216546322560] AH02282: No slotmem from mod_heartmonitor
    23
    [Mon Feb 08 23:01:01.290846 2021] [:notice] [pid 22517:tid 140216546322560] mod_ruid2/0.9.8 enabled
    24
    [Mon Feb 08 23:01:01.290919 2021] [core:warn] [pid 22517:tid 140216546322560] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    25
    [Mon Feb 08 23:01:01.294828 2021] [mpm_event:notice] [pid 22517:tid 140216546322560] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    26
    [Mon Feb 08 23:01:01.294872 2021] [core:notice] [pid 22517:tid 140216546322560] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    27
    [Mon Feb 08 23:02:41.875601 2021] [ssl:warn] [pid 23606:tid 140213988391040] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    28
    [Mon Feb 08 23:02:41.875836 2021] [suexec:notice] [pid 23606:tid 140213988391040] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    29
    [Mon Feb 08 23:02:41.890231 2021] [ssl:warn] [pid 23606:tid 140213988391040] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    30
    [Mon Feb 08 23:02:41.890788 2021] [lbmethod_heartbeat:notice] [pid 23606:tid 140213988391040] AH02282: No slotmem from mod_heartmonitor
    31
    [Mon Feb 08 23:02:41.890845 2021] [:notice] [pid 23606:tid 140213988391040] mod_ruid2/0.9.8 enabled
    32
    [Mon Feb 08 23:02:41.890911 2021] [core:warn] [pid 23606:tid 140213988391040] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    33
    [Mon Feb 08 23:02:41.894054 2021] [mpm_event:notice] [pid 23606:tid 140213988391040] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    34
    [Mon Feb 08 23:02:41.894094 2021] [core:notice] [pid 23606:tid 140213988391040] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    35
    [Mon Feb 08 23:05:01.474044 2021] [ssl:warn] [pid 24731:tid 139740986300544] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    36
    [Mon Feb 08 23:05:01.474386 2021] [suexec:notice] [pid 24731:tid 139740986300544] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    37
    [Mon Feb 08 23:05:01.489510 2021] [ssl:warn] [pid 24731:tid 139740986300544] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    38
    [Mon Feb 08 23:05:01.489817 2021] [lbmethod_heartbeat:notice] [pid 24731:tid 139740986300544] AH02282: No slotmem from mod_heartmonitor
    39
    [Mon Feb 08 23:05:01.489876 2021] [:notice] [pid 24731:tid 139740986300544] mod_ruid2/0.9.8 enabled
    40
    [Mon Feb 08 23:05:01.489951 2021] [core:warn] [pid 24731:tid 139740986300544] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    41
    [Mon Feb 08 23:05:01.493511 2021] [mpm_event:notice] [pid 24731:tid 139740986300544] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    42
    [Mon Feb 08 23:05:01.493548 2021] [core:notice] [pid 24731:tid 139740986300544] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    43
    [Mon Feb 08 23:06:42.125109 2021] [ssl:warn] [pid 25836:tid 140471298455680] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    44
    [Mon Feb 08 23:06:42.125375 2021] [suexec:notice] [pid 25836:tid 140471298455680] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    45
    [Mon Feb 08 23:06:42.140761 2021] [ssl:warn] [pid 25836:tid 140471298455680] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    46
    [Mon Feb 08 23:06:42.141061 2021] [lbmethod_heartbeat:notice] [pid 25836:tid 140471298455680] AH02282: No slotmem from mod_heartmonitor
    47
    [Mon Feb 08 23:06:42.141119 2021] [:notice] [pid 25836:tid 140471298455680] mod_ruid2/0.9.8 enabled
    48
    [Mon Feb 08 23:06:42.141190 2021] [core:warn] [pid 25836:tid 140471298455680] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    49
    [Mon Feb 08 23:06:42.144535 2021] [mpm_event:notice] [pid 25836:tid 140471298455680] AH00489: Apache/2.4.34 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    50
    [Mon Feb 08 23:06:42.144572 2021] [core:notice] [pid 25836:tid 140471298455680] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
  • iv_vytenisgiv_vytenisg Super Moderator
    Laba diena,

    Didžioji dauguma klaidų nedaro įtakos svetainės neveikimui, tai tik pranešimai ar perspėjimai dėl galimų problemų, tokie kaip:
    [Mon Feb 08 23:06:42.140761 2021] [ssl:warn] [pid 25836:tid 140471298455680] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Mon Feb 08 23:06:42.125375 2021] [suexec:notice] [pid 25836:tid 140471298455680] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon Feb 08 23:05:01.489817 2021] [lbmethod_heartbeat:notice] [pid 24731:tid 139740986300544] AH02282: No slotmem from mod_heartmonitor
    Tačiau kitos klaidos, tokios kaip:
    [Mon Feb 08 23:06:42.141190 2021] [core:warn] [pid 25836:tid 140471298455680] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Feb 08 22:57:01.274816 2021] [core:notice] [pid 20253:tid 140036484188288] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    Sudaro vaizdą, kad problema su Apache konfigūracija. Galbūt galite patikslinti ar Apache konfigūravote patys ar naudojate, kurį nors iš mūsų sukurtų serverio valdymo pultų šablonų?









  • Sveiki. Ačiū, kad pakomentavote. Užsakėme serverį su Centos 7 ir Directadmin diegimu. 
  • Patys įsidiegėme Let's Encrypt sertifikatą bei dvi PHP versijas (pagal šią instrukciją https://forumas.dedikuoti.lt/discussion/724/keliu-skirtingu-php-versiju-naudojimas-directadmin-valdymo-pulte). Apache konfigūracijos lyg ir nekeitėme.
    Taip pat kas valandą gauname pranešimus: "The service 'httpd' on server kpgi.c.dedikuoti.lt is currently down".
  • iv_vytenisgiv_vytenisg Super Moderator
    edited 2021 vasario 11
    Peržiūrėjus galimas problemas pagal klaidą internete, aptinkame, kad siūloma paleisti šias komandas terminale, kurios padės perkonfigūruoti Apache bei PHP:
    ./build apache
    ./build php
    ./build rewrite_confs
    Tik norime papildomai perspėti, kad negalime garantuoti jog siūlomas sprendimas pašalins problemą.

  • Esam labai dėkingi, Vyteni. Padėjo.

Atsakyti

RyškusItalicStrikethroughOrdered listUnordered list
Emoji
Image
Sulyguoti kairėjeSulyguoti centreSulyguoti dešnėjeToggle HTML viewToggle full pageToggle lights
Drop image/file
Dedikuoti.lt
Šiame forume rasite informaciją kaip atlikti serverio administravimą, konfigūravimą, įvairių tarnybų bei papildomų aplikacijų diegimą. Taip pat pateiksime rekomendacijų, skirtų serverių saugumui, monitoringui ir optimizavimui. Kviečiame prisijungti prie dedikuotų serverių administratorių bendruomenės, dalyvauti diskusijose ir praplėsti savo žinias serverių administravimo srityje!
© 2007 - 2023 Dedikuoti.lt forumas, visos teisės saugumos.