Author |
|
Hawk
Joined: 06 Feb 2008 Posts: 5
|
Posted: Wed 06 Feb '08 18:06 Post subject: local pc only |
|
|
In the past, I have created a website on a commercial server. Now I want to run apache on my pc with absolutely no connection to the outside world, although I do have an internet connection that is always on. I want to create web pages for use on my pc to interact with Perl (or perhaps C++) programs to save and use data files that exist on my pc. I have downloaded the apache binary. I want to know if I can do what I stated and if so, how do I assure that "my server" cannot be seen on the internet? I have no idea what to search this forum for to get the answers. Thanks.... |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 06 Feb '08 20:35 Post subject: |
|
|
bind to localhost/127.0.0.1 or simply
do not forward ports through router. |
|
Back to top |
|
Hawk
Joined: 06 Feb 2008 Posts: 5
|
Posted: Wed 06 Feb '08 23:11 Post subject: |
|
|
If "do not forward ports through router" means that I must change something in the modem/router, it is probably not an option. I have satellite modem-router that connects to a linksys router that is configured to only provide wireless in the house. This has taken many hours of support help to make work.
Could someone explain what "bind to localhost/127.0.0.1" means. I did some searching but found nothing that made sense. Thanks... |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 06 Feb '08 23:25 Post subject: |
|
|
Listen 127.0.0.1:80
ServerName localhost:80 |
|
Back to top |
|
Hawk
Joined: 06 Feb 2008 Posts: 5
|
Posted: Wed 06 Feb '08 23:39 Post subject: |
|
|
Thanks... I'll try it. |
|
Back to top |
|
Hawk
Joined: 06 Feb 2008 Posts: 5
|
Posted: Fri 08 Feb '08 0:31 Post subject: |
|
|
It worked OK. The default of using port 8080 when manually starting did not. But port 80 did. I even got perl working....
Now another thing. I can start apache from the programs list. However I cannot enter anything in the console window so I have to use the task manager to stop it, which the apache info says is not so good. I am runing xp and cannot find out how to properly start and stop apache. Thanks for any help. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 08 Feb '08 1:33 Post subject: |
|
|
using 8080, http://localhost:8080
That tells me which option you installed with. The "for just me/everyone" option doesn't make much sense anymore. This has been around since Win95, I think it was for the Win9x OS's.
So what you should do is install the windows service.
httpd -k install
to start Apache then,
net start apache2.2
to stop Apache,
net stop apache2.2 |
|
Back to top |
|
Hawk
Joined: 06 Feb 2008 Posts: 5
|
Posted: Fri 08 Feb '08 4:10 Post subject: |
|
|
thanks, but I don't have a clue as to where to enter these commands. I have xp. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 08 Feb '08 21:26 Post subject: |
|
|
start -> all programs -> accessories -> command prompt
if apache where located at c:\apache22 then you would
cd\apache22\bin
httpd -k start
net start apache2.2
etc. |
|
Back to top |
|