Results 1 to 3 of 3

Thread: apache error.. cant stop the server

  1. #1
    Join Date
    Apr 2009
    Beans
    176
    Distro
    Ubuntu

    apache error.. cant stop the server

    this is the error im getting

    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

    i get that error when try to run the following code

    Code:
    /etc/init.d/apache2 stop
    it used to work just fine, i would be able to restart, stop, or start the apache server..

    i checked my logs and it seems that some IPs from china and korea were exploring my web server and now i dunno whats goin on...

    i tried googling the error but those results arent really helping
    any ideas??

  2. #2
    Join Date
    Aug 2008
    Beans
    488

    Re: apache error.. cant stop the server

    use
    Code:
    sudo /etc/init.d/apache2 stop
    The warning your getting should be harmless, if it doesn't stop your apache server you can kill it, by finding it's process-id (pid) it's the left top number in the collumn by itself and kill it

    Code:
    sudo pstree -p | grep apache
    sudo kill <pid>
    run the pstree again and if it isn't empty after 30 seconds, use
    Code:
    sudo kill -KILL <pid>
    to get it down without going through the shutdown routine and abort.
    Last edited by puppywhacker; January 7th, 2010 at 09:03 PM. Reason: forgot a sudo at a crucial place, reminded me that you should sudo as well

  3. #3
    Join Date
    Apr 2009
    Beans
    176
    Distro
    Ubuntu

    Re: apache error.. cant stop the server

    SUDO! i keep forgetting about that! thanks man!

Bookmarks

Posting Permissions

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