LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-30-2005, 12:14 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Rep: Reputation: 47
Apache advantage?


I'm now wondering what do do with my old P200 tower that only has 64 MB of RAM. I put Slack 10.1 on it and that works nicely-I then tied it into my home network with a router and vsftp. I never tried Apache. Maybe this is something to delve into. My website is on my ISP's online space. What's the advantage of having your site on your home pc with Apache?
 
Old 08-30-2005, 12:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well you can control it easier, and can do whatever the cribbins you want with it. you do of course then have the hassle and cost in terms of bandwidth. your ADSL bill (or whatever) is going towards other people looking at your site...
 
Old 08-30-2005, 12:19 PM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
The main advantage is that you can configure it the way you want
also it is easiest to update site files etc...

You can even experiment things like audio/video streaming, you can do
all as it is your http server
 
Old 08-30-2005, 12:22 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Not sure I can precisely answer this but if your website has heavy traffic, then your server might not be adequate (memory wise). Advantage (that I can think of) is that you have control over your server...downside is you might have to keep it running all the time and if you have a dynamic ip, you'll have to get a dynamic dns service (its free) to point to your server.

Oh...almost forgot, you might have to use another domain name if your ISP does not allow ip forwarding.

Tux,
 
Old 08-30-2005, 02:23 PM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
Well I don't have much traffic going to my site now-that probably won't change. What I want to do is to have the ability to communicate with my home from work. Maybe have an ftp area on my home pc (I have an 80 GB drive) or check my home web cam. Could I do these things with Apache?
 
Old 08-30-2005, 02:27 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You don't need Apache for that kind of things. Most webcam programs run their own webserver to server images, and well, if you want to access trough ftp, just run a ftp server like proftpd or vsftpd. SSH access combined with screen is really nice too
 
Old 08-30-2005, 02:33 PM   #7
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
I've only used vsftpd to transfer files on my home network. How would I access linuxhippy@192.168.1.47 from a Win box using SSH or vsftpd? I realize that's my router's IP...but that's the IP address ifconfig gives me.

Last edited by linuxhippy; 08-30-2005 at 02:41 PM.
 
Old 08-30-2005, 02:59 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You need to forward the port you want to access from your router to your machine, so when you connect EXTERNALIP:Port it's redirected to INTERNALIP:Port. That's configured in the router.
A very good and well known SSH client for Windows is Putty.
 
Old 08-30-2005, 03:59 PM   #9
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
I used to host my site at a hosting-company, but since I have Linux I host my site (apache - php - SQL) at home (50 different visitors a day or so, not a lot). The website itself, with all the (7000 or so) images from the gallery and bla bla bla is around 200 MB.


Advantages:

It's cool
Most website-hosters have a limit on data that you can store, your limit is your hard-drive (200 GB in my "server" serves a whole lot of stuff
You have CONTROL, can install your own webmail or whatever
Your mailbox limit is your hard-drive (if you also decide to recieve your own mail for your domain.

Disadvantage:

When you internet connection fails, your site doesn't work, but that just 3 times a year (or so) over here



This all is running for almost a year now on a Pentium 400 Mhz, 256 MB memory box.
 
Old 08-30-2005, 08:30 PM   #10
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by gbonvehi
You need to forward the port you want to access from your router to your machine, so when you connect EXTERNALIP:Port it's redirected to INTERNALIP:Port. That's configured in the router.
A very good and well known SSH client for Windows is Putty.
ok, I see in my router setup that my primary PPP is xxx.xxx.xxx.xxx and the box I will leave up is linuxhippy@192.168.1.47

With this info, how would I use ssh on putty to contact my home pc?
 
Old 08-30-2005, 08:58 PM   #11
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
First of all, change sshd default port in /etc/ssh/sshd_config from 22 to something else to avoid bot attacks.
Then set the router to redirect incoming connection on that port from outside, to 192.168.1.47.
Then access your ssh with user@xxx.xxx.xxx.xxx with the port you configured.
 
Old 08-31-2005, 07:18 PM   #12
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
ok I changed my /etc/ssh/sshd_config to port 45 and set up 192.168.1.47 to go to port 45 in my router. Now if I'm on the internet outside my house, how do I log into my pc if my IP is 124.121.15.11....user is guest?
 
Old 08-31-2005, 09:44 PM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Depends on the client. With Putty set Host name (or IP Address) to 124.121.15.11 and Port to 45. Then connect, you should be able to type the username and password. If you want to directly connect as user guest type as ip: guest@124.121.15.11 and select Port to 45.
When using ssh client use: ssh -oPort=45 user@ip or ip as you wish.
 
  


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
Is there any advantage of openswan over OpenVPN? ddaas Linux - Security 4 11-26-2007 08:22 AM
The advantage of GTK2 over GTK1? beejayzed Linux - Software 5 10-22-2005 01:08 PM
advantage of primary over logical abunsair Linux - Hardware 4 07-04-2005 06:37 PM
how to take advantage of openMOSIX ? qwijibow Programming 5 01-14-2005 05:39 AM
The advantage of *BSD vs. any-Linux? Chijtska *BSD 23 07-17-2002 10:25 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration