logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: local pc only
Author
Hawk



Joined: 06 Feb 2008
Posts: 5

PostPosted: Wed 06 Feb '08 18:06    Post subject: local pc only Reply with quote

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

PostPosted: Wed 06 Feb '08 20:35    Post subject: Reply with quote

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

PostPosted: Wed 06 Feb '08 23:11    Post subject: Reply with quote

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

PostPosted: Wed 06 Feb '08 23:25    Post subject: Reply with quote

Listen 127.0.0.1:80
ServerName localhost:80
Back to top
Hawk



Joined: 06 Feb 2008
Posts: 5

PostPosted: Wed 06 Feb '08 23:39    Post subject: Reply with quote

Thanks... I'll try it.
Back to top
Hawk



Joined: 06 Feb 2008
Posts: 5

PostPosted: Fri 08 Feb '08 0:31    Post subject: Reply with quote

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

PostPosted: Fri 08 Feb '08 1:33    Post subject: Reply with quote

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

PostPosted: Fri 08 Feb '08 4:10    Post subject: Reply with quote

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

PostPosted: Fri 08 Feb '08 21:26    Post subject: Reply with quote

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


Reply to topic   Topic: local pc only View previous topic :: View next topic
Post new topic   Forum Index -> Apache