LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Apache advantage? (https://www.linuxquestions.org/questions/slackware-14/apache-advantage-358511/)

linuxhippy 08-30-2005 11:14 AM

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?

acid_kewpie 08-30-2005 11:17 AM

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

keefaz 08-30-2005 11:19 AM

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

tuxrules 08-30-2005 11:22 AM

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,

linuxhippy 08-30-2005 01:23 PM

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?

gbonvehi 08-30-2005 01:27 PM

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 ;)

linuxhippy 08-30-2005 01:33 PM

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.

gbonvehi 08-30-2005 01:59 PM

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.

nukey 08-30-2005 02:59 PM

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.

linuxhippy 08-30-2005 07:30 PM

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?

gbonvehi 08-30-2005 07:58 PM

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.

linuxhippy 08-31-2005 06:18 PM

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?

gbonvehi 08-31-2005 08:44 PM

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.


All times are GMT -5. The time now is 03:00 PM.