Find the answer to your Linux question:
Results 1 to 9 of 9
I am using SuSe9.1. My server has rebooted (I dont know why). Now I type: "apache2ctl start". But I cant go my web site, why? How I can confirm that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Poy
    Poy is offline
    Just Joined!
    Join Date
    Oct 2005
    Posts
    5

    Basi apache question


    I am using SuSe9.1. My server has rebooted (I dont know why). Now I type: "apache2ctl start". But I cant go my web site, why? How I can confirm that apache2 is running?

    Last uptime was over 120 days and only now I have this kind of problem (or at first i couldnt remember "apache2ctl start" command).

  2. #2
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Turn Around
    Posts
    202
    what do you get for an error while trying to get to ur site?

  3. #3
    Poy
    Poy is offline
    Just Joined!
    Join Date
    Oct 2005
    Posts
    5
    Quote Originally Posted by DoctorDan
    what do you get for an error while trying to get to you site?
    Something like that:

    "The connection was refused when..."

  4. #4
    Poy
    Poy is offline
    Just Joined!
    Join Date
    Oct 2005
    Posts
    5
    Quote Originally Posted by Poy
    Quote Originally Posted by DoctorDan
    what do you get for an error while trying to get to you site?
    Something like that:

    "The connection was refused when..."
    If I try this:

    linux:/etc/apache2 # apache2ctl graceful
    httpd not running, trying to start
    linux:/etc/apache2 # apache2ctl graceful
    httpd not running, trying to start

    I understand that it isnt running at all.

    Is my apache server broken?

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    How are you accessing it? If you are using a router you are on a LAN and may not be able to access your DNS name. You should try accessing it as http://localhost:80. I usually start apache with
    Code:
    sudo rcapache2 start
    You can check current status with
    Code:
    sudo rcapache2 status

  6. #6
    Poy
    Poy is offline
    Just Joined!
    Join Date
    Oct 2005
    Posts
    5
    Quote Originally Posted by bigtomrodney
    How are you accessing it? If you are using a router you are on a LAN and may not be able to access your DNS name. You should try accessing it as http://localhost:80. I usually start apache with
    Code:
    sudo rcapache2 start
    You can check current status with
    Code:
    sudo rcapache2 status
    ---
    linux:/ # sudo rcapache2 start
    Starting httpd2 (prefork) done
    linux:/ # sudo rcapache2 status
    Checking for httpd2: unused
    linux:/ #
    ---

    I dont know what is it now working or not (unused)? I am behind my wlan router, but as I said it has been working before. I have routed port 80 to server's ip address. Or I have tried (from my other computer) to use http://192.168.0.174 unsuccesfully.

  7. #7
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    after firing up apache you can make sure that your port is actually open with

    nmap -sT localhost...if you see port 80, or whatever, open for http, then the problem lies elsewhere...then you could check permissions or your router, etc...
    Operating System: GNU Emacs

  8. #8
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    have't seen this yet, have you checked apache error logs to see what they say. should be in /<yourapacheinstalldir>/logs/error_log

  9. #9
    Poy
    Poy is offline
    Just Joined!
    Join Date
    Oct 2005
    Posts
    5
    Quote Originally Posted by jledhead
    have't seen this yet, have you checked apache error logs to see what they say. should be in /<yourapacheinstalldir>/logs/error_log
    [Mon Oct 10 00:41:00 2005] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
    [Mon Oct 10 00:41:00 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

Posting Permissions

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