• 19-12-2017, 11:55:35
    #1
    Merhaba,
    Arkadaşlar.

    Centos 7 üzerine php, mysql ve phpmyadmin kurdum fakat httpd başlamıyor, hata alıyorum. İlk kurduğumda sorunsuz kullanıyordum fakat sistemi yeniden başlattıktan sonra çalışmadı.

    Aldığım hatalar aşağıdaki gibidir, yardımlarınızı rica ederim.
    • service httpd restart komutunu verdiğimde aşağıdaki hatayı alıyorum:
    Redirecting to /bin/systemctl restart httpd.service
    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
    /var/spool/mail/root'de yeni postanız var
    1. "systemctl status httpd.service" komutunu verdiğimde aşağıdaki logu alıyorum:

    httpd.service - The Apache HTTP Server
       Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Sal 2017-12-19 11:51:55 +03; 1min 26s ago
         Docs: man:httpd(8)
               man:apachectl(8)
      Process: 4192 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
      Process: 4184 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=dumped, signal=SEGV)
     Main PID: 4184 (code=dumped, signal=SEGV)
    
    Ara 19 11:51:55 centos-localdomain systemd[1]: Starting The Apache HTTP Server...
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service: main process exited, code=dumped,...EGV
    Ara 19 11:51:55 centos-localdomain kill[4192]: kill: cannot find process ""
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service: control process exited, code=exit...s=1
    Ara 19 11:51:55 centos-localdomain systemd[1]: Failed to start The Apache HTTP Server.
    Ara 19 11:51:55 centos-localdomain systemd[1]: Unit httpd.service entered failed state.
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    /var/spool/mail/root'de yeni postanız var
    • journalctl -xe komotunu verdiğimde aşağıdaki logları alıyorum.

    --
    -- A new session with the ID 9 has been created for the user root.
    --
    -- The leading process of the session is 4309.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Started Session 9 of user root.
    -- Subject: Unit session-9.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has finished starting up.
    --
    -- The start-up result is done.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Starting Session 9 of user root.
    -- Subject: Unit session-9.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has begun starting up.
    Ara 19 11:55:14 centos-localdomain sshd[4309]: pam_unix(sshd:session): session o
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Activat
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Activating service name='
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Successfully activated se
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Success
    lines 2650-2672/2672 (END)
    --
    -- A new session with the ID 9 has been created for the user root.
    --
    -- The leading process of the session is 4309.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Started Session 9 of user root.
    -- Subject: Unit session-9.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has finished starting up.
    --
    -- The start-up result is done.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Starting Session 9 of user root.
    -- Subject: Unit session-9.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has begun starting up.
    Ara 19 11:55:14 centos-localdomain sshd[4309]: pam_unix(sshd:session): session opened for user root by (uid=0)
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Successfully activated service 'org.freedesktop.problems'
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Successfully activated service 'org.freedesktop.problems'
    • Mail/Root ' u actığımda çıkan log :

    From user@localhost.localdomain  Tue Dec 19 11:21:39 2017
    Return-Path: <user@localhost.localdomain>
    X-Original-To: root@localhost
    Delivered-To: root@localhost.localdomain
    Received: by centos-localdomain.localdomain (Postfix, from userid 0)
            id 28DDA2067F12; Tue, 19 Dec 2017 11:21:39 +0300 (+03)
    Date: Tue, 19 Dec 2017 11:21:38 +0300
    From: user@localhost.localdomain
    To: root@localhost.localdomain
    Subject: [abrt] httpd: httpd killed by SIGSEGV
    Message-ID: <5a38cc12.zs8b6FTkpg+ewKg4%user@localhost>
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
    reason:         httpd killed by SIGSEGV
    cmdline:        /usr/sbin/httpd -DFOREGROUND
    executable:     /usr/sbin/httpd
    package:        httpd-2.4.6-67.el7.centos.6
    component:      httpd
    pid:            1147
    pwd:            /
    hostname:       centos-localdomain
    count:          1
    abrt_version:   2.1.11
    analyzer:       CCpp
    architecture:   x86_64
    event_log:
    global_pid:     1147
    kernel:         3.10.0-693.11.1.el7.x86_64
    last_occurrence: 1513671694
    os_release:     CentOS Linux release 7.4.1708 (Core)
    pkg_arch:       x86_64
    pkg_epoch:      0
    pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
    pkg_name:       httpd
    pkg_release:    67.el7.centos.6
    pkg_vendor:     CentOS
  • 19-12-2017, 12:06:40
    #2
    Programmer adlı üyeden alıntı: mesajı görüntüle
    Merhaba,
    Arkadaşlar.

    Centos 7 üzerine php, mysql ve phpmyadmin kurdum fakat httpd başlamıyor, hata alıyorum. İlk kurduğumda sorunsuz kullanıyordum fakat sistemi yeniden başlattıktan sonra çalışmadı.

    Aldığım hatalar aşağıdaki gibidir, yardımlarınızı rica ederim.
    • service httpd restart komutunu verdiğimde aşağıdaki hatayı alıyorum:
    Redirecting to /bin/systemctl restart httpd.service
    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
    /var/spool/mail/root'de yeni postanız var
    1. "systemctl status httpd.service" komutunu verdiğimde aşağıdaki logu alıyorum:
    httpd.service - The Apache HTTP Server
       Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Sal 2017-12-19 11:51:55 +03; 1min 26s ago
         Docs: man:httpd(8)
               man:apachectl(8)
      Process: 4192 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
      Process: 4184 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=dumped, signal=SEGV)
     Main PID: 4184 (code=dumped, signal=SEGV)
    
    Ara 19 11:51:55 centos-localdomain systemd[1]: Starting The Apache HTTP Server...
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service: main process exited, code=dumped,...EGV
    Ara 19 11:51:55 centos-localdomain kill[4192]: kill: cannot find process ""
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service: control process exited, code=exit...s=1
    Ara 19 11:51:55 centos-localdomain systemd[1]: Failed to start The Apache HTTP Server.
    Ara 19 11:51:55 centos-localdomain systemd[1]: Unit httpd.service entered failed state.
    Ara 19 11:51:55 centos-localdomain systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    /var/spool/mail/root'de yeni postanız var
    • journalctl -xe komotunu verdiğimde aşağıdaki logları alıyorum.
    --
    -- A new session with the ID 9 has been created for the user root.
    --
    -- The leading process of the session is 4309.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Started Session 9 of user root.
    -- Subject: Unit session-9.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has finished starting up.
    --
    -- The start-up result is done.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Starting Session 9 of user root.
    -- Subject: Unit session-9.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has begun starting up.
    Ara 19 11:55:14 centos-localdomain sshd[4309]: pam_unix(sshd:session): session o
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Activat
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Activating service name='
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Successfully activated se
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Success
    lines 2650-2672/2672 (END)
    --
    -- A new session with the ID 9 has been created for the user root.
    --
    -- The leading process of the session is 4309.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Started Session 9 of user root.
    -- Subject: Unit session-9.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has finished starting up.
    --
    -- The start-up result is done.
    Ara 19 11:55:14 centos-localdomain systemd[1]: Starting Session 9 of user root.
    -- Subject: Unit session-9.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-9.scope has begun starting up.
    Ara 19 11:55:14 centos-localdomain sshd[4309]: pam_unix(sshd:session): session opened for user root by (uid=0)
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
    Ara 19 11:55:14 centos-localdomain dbus[709]: [system] Successfully activated service 'org.freedesktop.problems'
    Ara 19 11:55:14 centos-localdomain dbus-daemon[709]: dbus[709]: [system] Successfully activated service 'org.freedesktop.problems'
    • Mail/Root ' u actığımda çıkan log :
    From user@localhost.localdomain  Tue Dec 19 11:21:39 2017
    Return-Path: <user@localhost.localdomain>
    X-Original-To: root@localhost
    Delivered-To: root@localhost.localdomain
    Received: by centos-localdomain.localdomain (Postfix, from userid 0)
            id 28DDA2067F12; Tue, 19 Dec 2017 11:21:39 +0300 (+03)
    Date: Tue, 19 Dec 2017 11:21:38 +0300
    From: user@localhost.localdomain
    To: root@localhost.localdomain
    Subject: [abrt] httpd: httpd killed by SIGSEGV
    Message-ID: <5a38cc12.zs8b6FTkpg+ewKg4%user@localhost>
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
    reason:         httpd killed by SIGSEGV
    cmdline:        /usr/sbin/httpd -DFOREGROUND
    executable:     /usr/sbin/httpd
    package:        httpd-2.4.6-67.el7.centos.6
    component:      httpd
    pid:            1147
    pwd:            /
    hostname:       centos-localdomain
    count:          1
    abrt_version:   2.1.11
    analyzer:       CCpp
    architecture:   x86_64
    event_log:
    global_pid:     1147
    kernel:         3.10.0-693.11.1.el7.x86_64
    last_occurrence: 1513671694
    os_release:     CentOS Linux release 7.4.1708 (Core)
    pkg_arch:       x86_64
    pkg_epoch:      0
    pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
    pkg_name:       httpd
    pkg_release:    67.el7.centos.6
    pkg_vendor:     CentOS
    cat /etc/systemd/system/httpd.service yazıp sonucu yazar mısın ?
  • 19-12-2017, 12:18:00
    #3
    Hocam özel mesaj gönderdim yanıt verirseniz canlı konuşarak çözüm yoluna gidebiliriz, bunun haricinde
    SSH ROOT ile
    iptables -F
    komutunu uyguladıktan sonra httpd servisini tekrar restartlamayı denermisiniz?
    Belki firewalld yazılımında aktif bir kural engelliyor olabilir ilk aklıma gelen bu oldu onun haricinde fikir için biraz kuracalamak gerek sizin sunucu üzerinde neler ile uğraştığınızı vs sorgulamak gerek : )
  • 19-12-2017, 12:25:49
    #4
    MyHosTcuM adlı üyeden alıntı: mesajı görüntüle
    cat /etc/systemd/system/httpd.service yazıp sonucu yazar mısın ?

    cat: /etc/systemd/system/httpd.service: Böyle bir dosya ya da dizin yok

    hatasını verdi hocam



    EvrenHost adlı üyeden alıntı: mesajı görüntüle
    Hocam özel mesaj gönderdim yanıt verirseniz canlı konuşarak çözüm yoluna gidebiliriz, bunun haricinde
    SSH ROOT ile
    iptables -F
    komutunu uyguladıktan sonra httpd servisini tekrar restartlamayı denermisiniz?
    Belki firewalld yazılımında aktif bir kural engelliyor olabilir ilk aklıma gelen bu oldu onun haricinde fikir için biraz kuracalamak gerek sizin sunucu üzerinde neler ile uğraştığınızı vs sorgulamak gerek : )
    İşe yaramadı maalesef hocam.
  • 19-12-2017, 12:27:19
    #5
    Programmer adlı üyeden alıntı: mesajı görüntüle
    cat: /etc/systemd/system/httpd.service: Böyle bir dosya ya da dizin yok

    hatasını verdi hocam





    İşe yaramadı maalesef hocam.

    yum reinstall ea-apache24-2.4.29-1.1.3.cpanel.x86_64 %99 çözmesi lazım.
  • 19-12-2017, 12:29:58
    #6
    MyHosTcuM adlı üyeden alıntı: mesajı görüntüle
    yum reinstall ea-apache24-2.4.29-1.1.3.cpanel.x86_64 %99 çözmesi lazım.

    Yüklü eklentiler: fastestmirror, langpacks
    No Match for argument: ea-apache24-2.4.29-1.1.3.cpanel.x86_64
    Loading mirror speeds from cached hostfile
    * base: centos.vargonen.com
    * epel: mirror.veriteknik.net.tr
    * extras: mirror.fibersunucu.com.tr
    * remi-php71: mirror.veriteknik.net.tr
    * remi-safe: mirror.veriteknik.net.tr
    * updates: centos.vargonen.com
    Hata: Yapılacak birşey yok


    uyarısı verdi.
    Bu arada localdeki servera kurdum bunu, cpanel kurmayı düşünmüyorum.
    Local intranet olarak kullanacağım.
  • 19-12-2017, 12:36:29
    #7
    nano /etc/selinux/config
    Selinux açıkmı hocam ?
    SELINUX= satırında ne yazıyor?
  • 19-12-2017, 12:51:41
    #8
    yum reinstall ea-apache24 dener misin ?
  • 19-12-2017, 12:52:11
    #9
    eski httpd yi silip aşağıdaki komutları uyguladığımda apache geliyor fakat
    sistemi yenieden başlattığımda gene aynı hatayı vermeye, çalışmamaya devam ediyor.

    yum -y install httpd
    systemctl start httpd.service
    systemctl enable httpd.service



    Kurulum için burayı kullanıyorum.

    Php 7.1 kurumu yaptıktan sonra " systemctl restart httpd.service" komutunu kullanıyorum ve sistem göçüyor.

    https://www.howtoforge.com/tutorial/...che-mysql-php/