Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: httpd (no pid file) not running

  1. #1

    Default httpd (no pid file) not running

    hi there after i install SOGo i restart apache and this is what its tell me:

    apache2.service - The Apache Webserver
    Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
    Active: failed (Result: exit-code) since Tue 2014-03-25 12:30:17 IST; 2min 25s ago
    Process: 4157 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
    Process: 3874 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
    Main PID: 3874 (code=exited, status=1/FAILURE)
    CGroup: /system.slice/apache2.service


    Mar 25 12:30:16 linux-4v2w systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
    Mar 25 12:30:16 linux-4v2w start_apache2[4157]: httpd (no pid file) not running
    Mar 25 12:30:17 linux-4v2w systemd[1]: Failed to start The Apache Webserver.
    Mar 25 12:30:17 linux-4v2w systemd[1]: Unit apache2.service entered failed state.

    anyone can help me?

  2. #2

    Default Re: httpd (no pid file) not running

    Quote Originally Posted by habernir2008 View Post
    anyone can help me?
    Please post the output of:
    Code:
    sudo journalctl -b -x -u apache2
    This should provide a clue why it fails to start. (most likely an invalid configuration though)

    What is SOGo btw, and how did you install it?

  3. #3

    Default Re: httpd (no pid file) not running

    this is the output:

    Code:
    sudo journalctl -b -x -u apache2-- Logs begin at Tue 2014-03-25 12:29:19 IST, end at Tue 2014-03-25 12:51:07 IST. --
    Mar 25 12:30:14 linux-4v2w systemd[1]: Starting The Apache Webserver...
    -- Subject: Unit apache2.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit apache2.service has begun starting up.
    Mar 25 12:30:16 linux-4v2w systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
    Mar 25 12:30:16 linux-4v2w start_apache2[4157]: httpd (no pid file) not running
    Mar 25 12:30:17 linux-4v2w systemd[1]: Failed to start The Apache Webserver.
    -- Subject: Unit apache2.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- 
    -- Unit apache2.service has failed.
    -- 
    -- The result is failed.
    Mar 25 12:30:17 linux-4v2w systemd[1]: Unit apache2.service entered failed state.
    Mar 25 12:48:47 linux-4v2w systemd[1]: Stopped The Apache Webserver.
    -- Subject: Unit apache2.service has finished shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286
    -- 
    -- Unit apache2.service has finished shutting down.
    Mar 25 12:49:20 linux-4v2w systemd[1]: Starting The Apache Webserver...
    -- Subject: Unit apache2.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit apache2.service has begun starting up.
    Mar 25 12:49:20 linux-4v2w systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
    Mar 25 12:49:21 linux-4v2w start_apache2[8810]: httpd (no pid file) not running
    Mar 25 12:49:21 linux-4v2w systemd[1]: Failed to start The Apache Webserver.
    -- Subject: Unit apache2.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- 
    -- Unit apache2.service has failed.
    -- 
    -- The result is failed.
    Mar 25 12:49:21 linux-4v2w systemd[1]: Unit apache2.service entered failed state.
    i install it from:

    http://download.opensuse.org/reposit...openSUSE_13.1/

  4. #4

    Default Re: httpd (no pid file) not running

    This doesn't tell anything as well, unfortunately.

    Is anything in /var/log/apache2/error_log?

    Maybe the pid file cannot be created? (the error message would suggest something like this)
    Could you post the output of:
    Code:
    ls -l /run/httpd.pid
    Maybe try to delete that file. (a reboot should help as well, if that's the issue)

  5. #5

    Default Re: httpd (no pid file) not running

    this is the output:

    ls: cannot access /run/httpd.pid: No such file or directory

  6. #6

    Default Re: httpd (no pid file) not running

    i solve it by add mod_socache_shmcb mod_slotmem_shm.

    thanks

  7. #7

    Default Re: httpd (no pid file) not running

    So:
    Quote Originally Posted by wolfi323 View Post
    What is SOGo btw, and how did you install it?
    And what about /var/log/apache2/error_log?

    That error message ("start_apache2[4157]: httpd (no pid file) not running") means that you tried to STOP apache when it was not running, so it doesn't help at all in finding out what's wrong.
    Can you please START apache and then query the status?
    Code:
    sudo systemctl start apache2.service
    sudo systemctl status apache2.service
    Then post the output please.

  8. #8

    Default AW: Re: httpd (no pid file) not running

    Quote Originally Posted by habernir2008 View Post
    i solve it by add mod_socache_shmcb mod_slotmem_shm.
    Ah, ok.

    Nice!

  9. #9

    Default Re: httpd (no pid file) not running

    Quote Originally Posted by habernir2008 View Post
    i solve it by add mod_socache_shmcb mod_slotmem_shm.

    thanks
    So how is this installed in OpenSUSE 13.1?

    zypper? yast?

  10. #10

    Default Re: httpd (no pid file) not running

    Quote Originally Posted by djumeau View Post
    So how is this installed in OpenSUSE 13.1?

    zypper? yast?
    No. You don't have to explicitely install those. They are part of the standard "apache2" package.

    Just add them to /etc/sysconfig/apache2 (APACHE_MODULES) either with a text editor or YaST->System->/etc/sysconfig editor, or use "a2enmod" which does that for you.
    Code:
    sudo a2enmod mod_socache_shmcb
    sudo a2enmod mod_slotmem_shm

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •