LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-30-2007, 10:39 AM   #1
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Rep: Reputation: 15
Advice of Distro


I have created a website which i'm running locally on my PC (Ubuntu) it uses Apache, MySql and PHP I have been given the go ahead to create a server so that other users in my dept can access the site on the LAN

1) What version of linux should I use, can I use Ubuntu 7.04?
2) What security measures should I take now?
3) Just general advice on the difference between a linux server and desktop

Cheers
 
Old 07-30-2007, 11:39 AM   #2
bakfupai
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: CentOS, RHEL, SourceMage, OpenBSD
Posts: 40

Rep: Reputation: 15
1. You can indeed use Ubuntu if you feel you're most comfortable with it.

2. You should run a firewall if you think people will try to break into your server. If it's on a LAN and you use some kind of authentication it's probably a good idea to run https (encrypts the traffic). Because on a LAN it's very easy to sniff peoples passwords and you don't want that. You should also make sure that the PHP pages aren't susceptible to sql injections (though I admit, that might prove difficult). Also, you should look around in the Security forum because there are lots of great tips there.

3. There is no real difference between a desktop and a server except the way it's used. A desktop might be used for word processing, surfing the web and so on.

A server might be used for sharing files and printers, serving up web pages, mail and so on.

With that said, it's a good idea on a server to just install what you need. For example, you probably don't need an X environment for your kind of server.
 
Old 07-30-2007, 11:45 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Ubuntu even has a server-specific installation that does not install X and other unnecessary programs, leaving you with less to keep up to date and consume resources.
 
Old 07-31-2007, 05:19 AM   #4
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Original Poster
Rep: Reputation: 15
Cheers for you advice so far Im not too bothered about X (that would be a nice feature to show off)

One other thing that I should have mentioned before it is going to be used on a VM to host my site? so do some distros work better on VM than others
 
Old 07-31-2007, 01:23 PM   #5
jmj99385
Member
 
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42

Rep: Reputation: 15
No matter what distro you decide on, PLEASE run a firewall. A correctly configured firewall at that. Limit access to only those users and ports that you absolutely must.

Its been said before, but not having a firewall is like leaving your front door wide open. This is especially true of servers. I would really hate to see that you are the next person who is sending me out 1,000 spam messages a day because some hacker has taken control of your mail server...



Quote:
Originally Posted by bakfupai
1. You can indeed use Ubuntu if you feel you're most comfortable with it.

2. You should run a firewall if you think people will try to break into your server. If it's on a LAN and you use some kind of authentication it's probably a good idea to run https (encrypts the traffic). Because on a LAN it's very easy to sniff peoples passwords and you don't want that. You should also make sure that the PHP pages aren't susceptible to sql injections (though I admit, that might prove difficult). Also, you should look around in the Security forum because there are lots of great tips there.

3. There is no real difference between a desktop and a server except the way it's used. A desktop might be used for word processing, surfing the web and so on.

A server might be used for sharing files and printers, serving up web pages, mail and so on.

With that said, it's a good idea on a server to just install what you need. For example, you probably don't need an X environment for your kind of server.
 
Old 07-31-2007, 02:48 PM   #6
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Original Poster
Rep: Reputation: 15
will do mate, as this is just going to be an internal webserver though do I need to setup a firewall they would have to get past BT first before they got to our lan
 
Old 07-31-2007, 04:05 PM   #7
bakfupai
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: CentOS, RHEL, SourceMage, OpenBSD
Posts: 40

Rep: Reputation: 15
cornish: Don't underestimate what people on the LAN might do =) So yeah, my bet is you need a firewall. Besides, learning about firewalls is fun and it's good to know. And if you run into trouble, just ask on the forum and I'm sure you'll get some help.
 
Old 07-31-2007, 05:48 PM   #8
mysql_connect
Member
 
Registered: Jul 2005
Distribution: Slackware 13.37 / Slackware64 13.37
Posts: 35

Rep: Reputation: 0
Run a distro you're familiar with (doesn't matter which), run a firewall (be creative with rules, don't trust anyone, I suggest restrict anything but 80 since it's supposed to be a webserver).
Do not trust distro packages for Apache & PHP, learn how to compile from sources, experiment with different options, this will save you a lot of headaches later.
 
  


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
Advice on a distro curleyg Linux - Newbie 32 12-08-2006 09:59 AM
Distro Advice prh Linux - Newbie 12 05-24-2005 08:54 PM
Distro Advice??? chashutch Linux - Hardware 4 10-16-2004 09:12 AM
Advice on a distro... Pengwanabee Linux - Newbie 14 08-24-2004 05:12 PM
Distro advice. TuxToaster Linux - Distributions 5 07-18-2004 06:57 AM


All times are GMT -5. The time now is 11:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration