Last Step in Apache Server

Discussion in 'Apache' started by Taorluath, Jun 25, 2008.

  1. #1
    I'm using Ubuntu, btw.

    Here is my situation: I have Apache and everything nicely installed on my Linux box. I've been running it only on my computer, not the web, testing out PHP and Mysql etc. I haven't changed much of the default settings and now I want to host it to the web.
    I'm also getting my internet through a router, btw.
    I also have a SSH server which I have successfully accessed from computers not in my network. The linux box has a static IP and everything too. So I go to my external IP address, and it gives me the router setup.
    I go down and turn on the port forwarding that forwards port 80 to the linux box's static ip, right underneath where I did it for the SSH. I save the settings, but when I go to my external ip again, instead of seeing my site-- or the router setup again, for that matter-- it just goes into an infinite loading sequence. It never loads anything.

    I tried accessing it through a proxy and it still didn't work. How do I get my Apache to the outside world?

    If it helps, I got this when I forgot to use sudo:


    bleh bleh@server:~$ /etc/init.d/apache2 force-reload
    open: Permission denied
     * Reloading web server config apache2                                          httpd not running, trying to start
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    open: Permission denied
    
    Code (markup):
     
    Taorluath, Jun 25, 2008 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Are you accessing the server to the external ip with a computer in your local network ?

    Do you think your router could be the cause ?
     
    Camay123, Jun 25, 2008 IP
  3. Taorluath

    Taorluath Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I used on from my local network and it didn't work.
    I used a proxy as well, which should come from outside my network, and it failed as well.

    I don't think its the router, I mean, i can SSH through it. Maybe my ISP is blocking port 80, but how do I change what port Apache goes to?
     
    Taorluath, Jun 25, 2008 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    But, directly from local it is working ? (without going thru internet)

    If so, im not sure what could be the cause.
     
    Camay123, Jun 25, 2008 IP