• 06-02-2022, 23:07:00
    #1
    Composer scripti kuracaktım php sürümü düşük olduğu için kurmadı. Php sürümünü yükselttim. Bu seferde nginx ve apache aynı anda çalışmıyor. Sitelere de giriş olmuyor. Nasıl düzeltebilirim? Centos 7 .Hepsini yeniden kurdum.
  • 06-02-2022, 23:09:55
    #2
    nginx ve apache zaten aynı anda çalışamaz. Muhtemelen aktarmak istediğiniz bilgiyi aktaramıyorsunuz, ekran görüntüsü iletir misiniz?
  • 06-02-2022, 23:13:53
    #3
    tryigitx adlı üyeden alıntı: mesajı görüntüle
    nginx ve apache zaten aynı anda çalışamaz. Muhtemelen aktarmak istediğiniz bilgiyi aktaramıyorsunuz, ekran görüntüsü iletir misiniz?
    Fastpanelde ikisi de çalışıyor aynı anda. Php sürümünü değiştirdikten sonra bu hatayı veriyor.

    Sorunsuz çalışan fastpanel

    Benimki
  • 06-02-2022, 23:16:41
    #4
    batukay adlı üyeden alıntı: mesajı görüntüle
    Fastpanelde ikisi de çalışıyor aynı anda. Php sürümünü değiştirdikten sonra bu hatayı veriyor.

    Sorunsuz çalışan fastpanel

    Benimki
    Servis olarak çalışır tabi ama sorununuz bu değil. Sorununuz Apache dosyasında hatayı yazarak Google üzerinde arama yapabilir veya forumdan yardım alabilirsiniz.
  • 06-02-2022, 23:16:48
    #5
    Hatayı görmek lazım. hatayı aldıktan sonra" journalctl -xe" komutu ne sonuç veriyor?
  • 06-02-2022, 23:19:24
    #6
    eparlak adlı üyeden alıntı: mesajı görüntüle
    Hatayı görmek lazım. hatayı aldıktan sonra" journalctl -xe" komutu ne sonuç veriyor?
    -- Unit nginx.service has begun starting up.
    Feb 06 15:19:45 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:45 localhost.localdomain sshd[13983]: Failed password for root from 112.85.42.81 port 30655 ssh2
    Feb 06 15:19:45 localhost.localdomain unix_chkpwd[13993]: password check failed for user (root)
    Feb 06 15:19:45 localhost.localdomain sshd[13983]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:45 localhost.localdomain named[1110]: client @0x7f02800c6370 45.4.52.92#80 (higi.com): query (cache) 'higi.com/ANY/IN' denied
    Feb 06 15:19:45 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain named[1110]: client @0x7f02800c6370 45.4.52.92#80 (higi.com): query (cache) 'higi.com/ANY/IN' denied
    Feb 06 15:19:47 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:47 localhost.localdomain sshd[13983]: Failed password for root from 112.85.42.81 port 30655 ssh2
    Feb 06 15:19:47 localhost.localdomain unix_chkpwd[13994]: password check failed for user (root)
    Feb 06 15:19:47 localhost.localdomain sshd[13983]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:47 localhost.localdomain nginx[13992]: nginx: [emerg] still could not bind()
    Feb 06 15:19:47 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 06 15:19:47 localhost.localdomain systemd[1]: Failed to start nginx - high performance web server.
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has failed.
    --
    -- The result is failed.
    Feb 06 15:19:47 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
    Feb 06 15:19:47 localhost.localdomain systemd[1]: nginx.service failed.
  • 06-02-2022, 23:21:49
    #7
    batukay adlı üyeden alıntı: mesajı görüntüle
    [root@localhost ~]#  journalctl -xe
    Feb 06 15:19:40 localhost.localdomain sshd[13979]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:41 localhost.localdomain sshd[13970]: Failed password for root from 112.85.42.81 port 35460 ssh2
    Feb 06 15:19:41 localhost.localdomain sshd[13970]: Received disconnect from 112.85.42.81 port 35460:11:  [preauth]
    Feb 06 15:19:41 localhost.localdomain sshd[13970]: Disconnected from 112.85.42.81 port 35460 [preauth]
    Feb 06 15:19:41 localhost.localdomain sshd[13970]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.81  user=root
    Feb 06 15:19:42 localhost.localdomain sshd[13979]: Failed password for root from 43.155.74.252 port 42842 ssh2
    Feb 06 15:19:42 localhost.localdomain sshd[13979]: Received disconnect from 43.155.74.252 port 42842:11: Bye Bye [preauth]
    Feb 06 15:19:42 localhost.localdomain sshd[13979]: Disconnected from 43.155.74.252 port 42842 [preauth]
    Feb 06 15:19:43 localhost.localdomain unix_chkpwd[13986]: password check failed for user (root)
    Feb 06 15:19:43 localhost.localdomain sshd[13983]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.81  user
    Feb 06 15:19:43 localhost.localdomain sshd[13983]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:44 localhost.localdomain named[1110]: client @0x7f02800c6370 45.4.52.92#80 (higi.com): query (cache) 'higi.com/ANY/IN' denied
    Feb 06 15:19:45 localhost.localdomain systemd[1]: Starting nginx - high performance web server...
    -- Subject: Unit nginx.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has begun starting up.
    Feb 06 15:19:45 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:45 localhost.localdomain sshd[13983]: Failed password for root from 112.85.42.81 port 30655 ssh2
    Feb 06 15:19:45 localhost.localdomain unix_chkpwd[13993]: password check failed for user (root)
    Feb 06 15:19:45 localhost.localdomain sshd[13983]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:45 localhost.localdomain named[1110]: client @0x7f02800c6370 45.4.52.92#80 (higi.com): query (cache) 'higi.com/ANY/IN' denied
    Feb 06 15:19:45 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:46 localhost.localdomain named[1110]: client @0x7f02800c6370 45.4.52.92#80 (higi.com): query (cache) 'higi.com/ANY/IN' denied
    Feb 06 15:19:47 localhost.localdomain nginx[13992]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 06 15:19:47 localhost.localdomain sshd[13983]: Failed password for root from 112.85.42.81 port 30655 ssh2
    Feb 06 15:19:47 localhost.localdomain unix_chkpwd[13994]: password check failed for user (root)
    Feb 06 15:19:47 localhost.localdomain sshd[13983]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Feb 06 15:19:47 localhost.localdomain nginx[13992]: nginx: [emerg] still could not bind()
    Feb 06 15:19:47 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 06 15:19:47 localhost.localdomain systemd[1]: Failed to start nginx - high performance web server.
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has failed.
    --
    -- The result is failed.
    Feb 06 15:19:47 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
    Feb 06 15:19:47 localhost.localdomain systemd[1]: nginx.service failed.
    hatayı aldıktan sonramı çalıştırdınız?. Burada apache için log yok . nginx için var orasıda tam yardımcı değil. nginx -t ve httpd veya apache2 komutlarını yazınca çıkanları yazarmısınız?
  • 06-02-2022, 23:27:18
    #8
    eparlak adlı üyeden alıntı: mesajı görüntüle
    hatayı aldıktan sonramı çalıştırdınız?. Burada apache için log yok . nginx için var orasıda tam yardımcı değil. nginx -t ve httpd veya apache2 komutlarını yazınca çıkanları yazarmısınız?
    Evet hatayı aldıktan sonra yaptım. Bu da apache
     Unit nginx.service has begun starting up.
    Feb 06 15:26:20 localhost.localdomain systemd[1]: Started nginx - high performance web server.
    -- Subject: Unit nginx.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has finished starting up.
    --
    -- The start-up result is done.
    Feb 06 15:26:21 localhost.localdomain sshd[14645]: Failed password for invalid user ivan from 159.89.104.15 port 54608 ssh2
    Feb 06 15:26:21 localhost.localdomain sshd[14645]: Received disconnect from 159.89.104.15 port 54608:11: Bye Bye [preauth]
    Feb 06 15:26:21 localhost.localdomain sshd[14645]: Disconnected from 159.89.104.15 port 54608 [preauth]
    Feb 06 15:26:22 localhost.localdomain sshd[14656]: Invalid user vicky from 1.15.232.41 port 49052
    Feb 06 15:26:22 localhost.localdomain sshd[14656]: input_userauth_request: invalid user vicky [preauth]
    Feb 06 15:26:22 localhost.localdomain sshd[14656]: pam_unix(sshd:auth): check pass; user unknown
    Feb 06 15:26:22 localhost.localdomain sshd[14656]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=1.15.232.41
    Feb 06 15:26:23 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
    -- Subject: Unit httpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit httpd.service has begun starting up.
    Feb 06 15:26:23 localhost.localdomain httpd[14727]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.lo
    Feb 06 15:26:23 localhost.localdomain httpd[14727]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    Feb 06 15:26:23 localhost.localdomain httpd[14727]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    Feb 06 15:26:23 localhost.localdomain httpd[14727]: no listening sockets available, shutting down
    Feb 06 15:26:23 localhost.localdomain httpd[14727]: AH00015: Unable to open logs
    Feb 06 15:26:23 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Feb 06 15:26:23 localhost.localdomain kill[14728]: kill: cannot find process ""
    Feb 06 15:26:23 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
    Feb 06 15:26:23 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
    -- Subject: Unit httpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit httpd.service has failed.
    --
    -- The result is failed.
    Feb 06 15:26:23 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
    Feb 06 15:26:23 localhost.localdomain systemd[1]: httpd.service failed.
    Feb 06 15:26:24 localhost.localdomain sshd[14656]: Failed password for invalid user vicky from 1.15.232.41 port 49052 ssh2
    Feb 06 15:26:24 localhost.localdomain sshd[14656]: Received disconnect from 1.15.232.41 port 49052:11: Bye Bye [preauth]
    Feb 06 15:26:24 localhost.localdomain sshd[14656]: Disconnected from 1.15.232.41 port 49052 [preauth]
  • 06-02-2022, 23:30:11
    #9
    "could not bind to address [::]:80" Nginx 80 portunda çalıştığı için apache aynı anda çalışamıyor. Normalde farklı porta çalıştırılır bu gibi durumlarda. Fastpanel ile ilgili bir hata olabilir. Panelin nasıl çalıştığı ile ilgili bir bilgim yok.