Jump to content

The Last Step


Taorluath

Recommended Posts

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 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.

 

How do I get my Apache to the outside world? ???

Link to comment
Share on other sites

I also got this when I forgot to use sudo, if this helps:

 

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

 

Link to comment
Share on other sites

Shouldn't I be able to see my site from the inside as well?

 

Not without adding an entry to your /etc/hosts file.

 

The error you've shown has nothing to do with your issue, but files within /etc/init.d/ cannot be executed by a normal user. You need to be root or better still use sudo.

 

bleh bleh@server:~$ sudo /etc/init.d/apache2 force-reload

Link to comment
Share on other sites

I also got this when I forgot to use sudo, if this helps:

Yeah, I know I didn't use sudo.

But wait, you're saying that without adding something to my hosts file, only people OUTSIDE my network see my website??

And what line should I add to hosts, so that I can see it from inside?

Link to comment
Share on other sites

I found a Listen 80 in my ports.conf file.

I changed it to 8080 there and on the port forwarding thing on my router.

Now when I go to my external IP it doesn't load forever, it just goes straight to the router setup again. :(

How come changing the port did this? How do you change the port the right way and still get it to show up as web page?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.