LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2004, 09:07 AM   #1
Yamabob217
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
A Home Based Intranet?


I'd like to set up a Linux Web Server that will serve web pages to a Windows PC WITHOUT using the Internet.

I'm not sure if this is the right forum for this question. But if somebody could suggest the best way to proceed or just add their thoughts on the subject, I'd really appreciate it.

Thanks,

Bob
 
Old 05-04-2004, 09:43 AM   #2
rush_pl
LQ Newbie
 
Registered: Jul 2003
Posts: 20

Rep: Reputation: 0
So you want to setup a web server on your INTRANET?
All u have to do is install apache on the server and configure it to serve on the internal ip address. If the server is not connected to the Internet you will not have to do much (maybe even nothing) to the httpd.conf file.
 
Old 05-04-2004, 02:12 PM   #3
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
It's easy, I use mine for testing websites / pages before they go live. Hardware-wise I use a P233 with 90 MB RAM (it doesn't need this but it's my only machine to still use SIMMS.)

What are you going to do with it? PHP / MySQL / the whole Shebang? - Use Apache .
Just pushing html? Try thttpd http://www.acme.com/software/thttpd/ which is simple and fast, though it can be a pig with file permissions. (religiously 755 directories and 644 files).

Apache experience is always useful, but you might just want something simple that works.

You can get a basic Apache setup running in under 1/2 hr, less for thttpd (including compile time). Boa and mathopd (google for them) are also nice and lightweight, I prefer thttpd - YMMV.

Choose a distro you're comfortable with (or pick an easy-ish one), do a minimal install (allocating a generous partition to /var/www - where your webpages will sit) and then pick your webserver.

If you let us know whether it's for just your docs / files or actual development work, you'll probably get better answers.

Last edited by frogman; 05-04-2004 at 02:21 PM.
 
Old 05-04-2004, 06:52 PM   #4
Yamabob217
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply Frogman.

Yes, my goal is to use this for testing as well. As for the types of pages that I'm going to serve, you can say that I'd like to do the whole "shebang". So we can assume that it'll be using Apache.

I haven't purchased a distribution yet, but I'm probably going to go with Redhat or Debian. The reason being that I'd like to duplicate the environment that my hosting provider utilizes.

With that said, I think that I can get the OS installed and set-up without any problems. At least I can conceptualize what's involved with this process.

However, things get a little fuzzy when I think about connecting my Windows PC to the Linux Web Server. I guess my confusion can be narrowed down to the following question...

Do I just connect these two boxes together with a hub between the two or do I need to set-up a LAN as well?

Frogman, how did you go about configuring your connection between the two boxes?

And of course, any other hazards or concerns to look out for would be greatly appreciated.

Bob
 
Old 05-04-2004, 08:26 PM   #5
emilryge
LQ Newbie
 
Registered: Aug 2003
Location: Copenhagen, Denmark
Distribution: Slackware 10
Posts: 28

Rep: Reputation: 15
What I did

I just did this a few minutes ago - just to see if it worked...

Made sure that apache was running (httpd).

Hooked up a cable between the XP laptop and the Linux box and gave them static ip addresses, 192.168.0.2 (laptop) and 192.168.0.3 (linux server).

Made sure i could ping, and then just typed http://192.168.0.3 in IE on the XP laptop.

There you go. So simple :-)

- Emil
 
Old 05-05-2004, 02:15 PM   #6
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
Quote:
Originally posted by Yamabob217


Do I just connect these two boxes together with a hub between the two or do I need to set-up a LAN as well?
Two machines and a hub is a LAN (well, an embryo LAN anyway).
Quote:

Frogman, how did you go about configuring your connection between the two boxes?
Plugged it into the existing LAN
Once your webserver is set up, connect both machines to your hub and give them static IP addresses - you can set the webserver ip address during install (like in the post above, choose your addresses).
Add the webserver ip address and name to your workstations /etc/hosts file i.e:
Code:
127.0.0.1    localhost
ip.address.of.webserver   webservername
this will let you type http://webservername into your browser, rather than just the IP address.
Quote:

And of course, any other hazards or concerns to look out for would be greatly appreciated.
Nothing major, just remember the basics:

Ping to test connections
Install the Apache Manual as well, it's worth it.
Make sure that your webservers firewall allows connections on port 80/tcp.
You'll probably want to install OpenSSH and / or Webmin on the webserver if you're planning on running it without a monitor / keyboard.
OpenSSH will let you upload files to the server via secure ftp, webmin gives a gui interface for managment if you're not entirely happy with the command line.
Ensure the webserver is patched - download them using the workstation then sftp the patches across.
Once you can see something at http://webservername, start transferring your files across (put them in /var/www).
You should chmod your folders in /var/www to 755, files to 644 - it's a good habit to get into.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a home-based linux distro business? Hosiah General 7 06-04-2005 11:18 PM
Home WLAN based on Rt2500 E@zyVG Linux - Wireless Networking 4 04-09-2005 10:31 AM
Running a Home-based business firefoxx Linux - Software 2 12-04-2004 08:27 AM
web-based email from home with dyndns mikeindo Linux - Networking 9 06-08-2004 11:42 AM
Linux-based Home Sound Recording Studio vous Linux - Software 11 09-16-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration