LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-17-2004, 02:12 PM   #1
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Rep: Reputation: 0
Setting up a webserver with Mandrake Linux 10.1


I'm about a noobie as you can get. I've just installed Mandrake Linux 10.1 on oen of my computers with the goal being to first explore with what it's capable of doing, but more importantly to set up two things online. First, I need to set up a webserver. A friend of mine is putting his comics that he draws online, and I'm going to get a domain with DNS2Go.com. How do I go about setting up my server to do this? I will have local access, but Sam (who draws the comics) and Pat (who will design the web page) will need remote access to this server to upload/download stuff. How do I go about doing this?

Secondly, I would like to also set up my computer as pretty much a file server. I just want someplace that I can connect to online to upload/download files n stuff whenever and wherever i need them. For example, I'm interested in learning Javascript so I can create my own AIM Sub-Profile, but I'll need a place online to store it (all the free web storage places try to put a banner or something in my HTML file and it screws everything up in the AIM profile). Somebody told me that a SFTP server would work well for what I want. How do I go about setting this up? This is less important; the web server is really what I need up first; it's more important.

I have a linksys router with firewall, so I'll need to know what ports to forward to my Linux server.


Thanks for your help,
-Mike

MercuryRaz0r@Gmail.com
 
Old 10-17-2004, 02:56 PM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
Try this site --- the instructions are for v.10 but I'm sure they will apply.
http://www.linuxloader.com/modules.p...howpage&pid=10
Good luck!
 
Old 10-17-2004, 04:40 PM   #3
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
This looks pretty complicated... It seems like there's a thousand different things to configure just to set up a website.... I'll see how it goes.
 
Old 10-17-2004, 05:01 PM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
Just follow the instructions ---- they are pretty newbie friendly. Don't miss any stages and if you have a problem, post on LQ. It's better to set up your server so that it is safe and you understand how to *control* it. It's certainly worth putting in the time right now.
Good luck.
 
Old 10-17-2004, 06:44 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
As for as accessing the machine remotely, one thing to consider is using the ssh server. Then your friend (assuming he has windows) can use putty or ssh32 to work on your machine ( i.e. give him his own account ).

If he uses Linux, he can use ssh to login to his own account, and use scp to copy files from this machine to this home directory. You could create a directory under /home/ which everyone who works on the material can access, using group permissions.

For simply uploading and downloading files, a sftp server would be best. You could set it up so that he could modify the website himself, if that is what you wish.

Another option is using VNC to access your desktop. Or something like WinX32 which is an X server that runs on a windows machine. He could run programs like gimp on your maching, or have a kde or gnome desktop ( A second session, running on your machine, but the screen is showing up on your machine.)

Good Luck! I hope your venture turns out to be fun and successful.
 
Old 10-17-2004, 08:32 PM   #6
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
Yeah, I think an SFTP server will be best. The only thing those guys will need to do is upload/download files. Nobody needs to tinker with the server but me. Those two guys will be primarily charged with updating the material on the site.

Now I was following the instructions at the link above, and ran into a snag. What is my host name? I have a dynamic IP (I intend on using DNS2Go later to better handle my changing IP).
 
Old 10-18-2004, 08:40 PM   #7
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
Bigger problem

screw that host name stuff, it doesnt seem to matter....


I'm having a few problems with the server. I can view it fine from within my own internal network at home. However, I do have to use https:// (secure) to get to it, and I'd rather not. I just want to be able to host a regular web page online, I don't need it to be a secure web page. I obviously dont want anybody hacking it, though.

Second, I can't seem to get anybody on the outside of my network to connect to my server. Everybody on the internal network can see it, but nobody on the outside can. Here's what I've done to try and fix it:

1) Anybody on my internal home network (that's about 2 people in my house) can view my webpage by opening their web browser to https://192.168.x.x (ive hidden my actual internal IP here).
2) Anybody on my internal home network can go to https://192.168.x.x:10000 and get a login screen for Webmin.
3) If anybody outside my home network tries to use their web browser to go to http://64.222.x.x (which is my external IP; ive hidden the last two numbers here), they get a error 403 permission denied.
4) If anybody outside my home network tries to use their web bromike
wser to go to https://62.222.x.x they get a 404 file not found error. Very curious...
5) I've opened a hole in my router's firewall to forward all requests thru port 80 to go to my linux server.
6) There is no firewall software (that I know of) installed on my linux server. Though, as per the directions from the link above, I did install it with security settings on "Paranoid."

I cannot also get MySQL to open up correctly in Webmin, but I have to say, I don't really care since I don't want to run a database server. Would it be useful, however, in an online webcomic's site? I'm thinking of people wanting to view previous comic strips, etc.

I'm not aware of what PHP can do. I know it's used in websites, and isn't it used in, like, news sites or sites that periodically update in a "news" manner? (for example, view the news section on the main page of www.meninhats.com and www.flashflashrevolution.com )

Lastly, can anybody point me in the right direction to getting an SFTP server set up? I will need a way for my two friends to remotely upload and download new material/data to and from the online comic's web page.
 
Old 10-21-2004, 02:33 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Double check your firewall settings in drakconf. Also, If you are using something like a cable router, you need to forward the port to the correct computer. Usually routers can be configured by pointing your router to 192.168.1.1 .

You could look at the /etc/services file for a list of port number - service pairs.
For instance:
Code:
matrix:/etc # grep '^ftp' /etc/services
ftp-data         20/tcp    # File Transfer [Default Data]
ftp-data         20/udp    # File Transfer [Default Data]
ftp              21/tcp    # File Transfer [Control]
ftp-agent       574/tcp    # FTP Software Agent System
ftp-agent       574/udp    # FTP Software Agent System
ftps-data       989/tcp    # ftp protocol, data, over TLS/SSL
ftps-data       989/udp    # ftp protocol, data, over TLS/SSL
ftps            990/tcp    # ftp protocol, control, over TLS/SSL
ftps            990/udp    # ftp protocol, control, over TLS/SSL

Last edited by jschiwal; 10-21-2004 at 02:45 AM.
 
Old 10-21-2004, 05:41 PM   #9
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
Couple important questions. theyve been bugging me.
I want to set up a regular web server. i dont want people to have to connect to it with httpS, that's SSL, right? would turning that off or somehow disabling that so I connect through http instead of https make my server more hack-prone? How does LinuxQuestions.org do it? There's no https in the URL, so is it SSL? I'm not having sensitive information transferred through the internet, i just want to run an online comic webpage and a SFTP server, which i still dont know how to set up, btw.

Oh, and my router is set up to forward ports 20-21 and port 80 to my linux server. after all, that has to be correct seeing as how when i connect to it from the outside, it says access forbidden, then when i connect with https its not found.

One last thing, how can i replace the Apache default web page with my own content? i know the path on my linux box, but what is my title page or index page? what HTML page do i replace so I can get my own title page when people connect to my website?

Last edited by MercuryRaz0r; 10-21-2004 at 05:52 PM.
 
Old 10-25-2004, 12:04 AM   #10
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
You can have regular visitors access through port 80, usual http.

ssl would be primarily to plug the secuitry problems with your site managers getting the data in, and keeping out anyone else who you would not want to have write privileges.

for now, regular they can get 'in' using your routers ip address, as long as the router is directing http (port 80) requests to the correct machine. Later you can set up the domain name.

As for setting up the apache server, let me know if you still need the references for that.

Stuart
 
Old 10-25-2004, 12:25 AM   #11
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
I've heard that my ISP may block some external access to my computer. I'll have to do some tests to see if they are. They may not want some idiot newbie making his own web server and potentially have gaping security holes.

Anybody know of a good FTP program? ProFTPD sucks because its so damn complicated, it gives very erratic error messages and is just too confusing for my friends to use.
 
Old 10-25-2004, 02:40 AM   #12
floppywhopper
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Mageia , Centos
Posts: 643
Blog Entries: 2

Rep: Reputation: 136Reputation: 136
Have you considered using a firewall such as IPCop or Smoothwall or similar which will give you a green zone for your normal computer and an orange zone for your web server.

live long and prosper
floppy
 
Old 10-25-2004, 10:56 AM   #13
MercuryRaz0r
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Linux 10.1 Community
Posts: 17

Original Poster
Rep: Reputation: 0
I have no idea what youre talking about. Green zone for my computer? huh?

Remember people, I've just started using Linux not 1 week ago. I have never done webserver stuff before.
 
Old 10-25-2004, 11:50 AM   #14
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
Perhaps it is time to step back a bit and look at things.

Proftp is a good ftp server, takes about 30 min to configure, but has some security issues. Read the docs and the sample config file.

Internet explorer is an adequate client. You can't get much easier for windows users than drag & drop.

Some isp's will prevent some functions. For example, when I use my portable on aol dialup (when away from home) I can not get ftp access to my server.

Your isp has the right, under the terms of service for home use, to prevent the use of a server on their connection.

A hardware of software firewall should solve your other security issues.

Stuart
 
Old 10-25-2004, 07:19 PM   #15
floppywhopper
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Mageia , Centos
Posts: 643
Blog Entries: 2

Rep: Reputation: 136Reputation: 136
whats a green zone ?? you have plenty of reading to do ...
start here
http://www.ibiblio.org/mdw/HOWTO/Firewall-HOWTO.html
this is an excellent site for all sorts of docs
here is another
http://www.tldp.org/
and
http://www.faqs.org/docs/

essentially what I am suggesting is that you have a dedicated firewall with one connection to your Green zone ( the trusted zone ) ie the computer you browse the internet with. And one connection to your Orange zone ( the not so trusted zone ) ie the computer you will use for your web server.

hope this helps to clarify the security issue
dont forget to check out the tutorials on this site at
http://www.linuxquestions.org/questions/answers.php

live long and prosper
floppy
 
  


Reply



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
Setting up a Webserver using linux redhat 8.0 Amd619 Linux - Networking 3 03-11-2005 10:08 PM
Setting up secure apache2 webserver https access on suse linux 9.2 svanati SUSE / openSUSE 4 12-21-2004 08:07 PM
Setting up a webserver fleeced Linux - General 1 09-04-2004 11:24 AM
Setting webserver enzolabrador Linux - Networking 1 08-26-2004 03:35 PM
Setting up remote Linux webserver Ben Sytko Linux - Newbie 6 02-19-2004 02:21 PM

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

All times are GMT -5. The time now is 08:19 PM.

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