Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 07-18-2003, 09:14 AM   #1
LQ Newbie
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
How to configure Debian to be a Webserver and FTP server?

I'm a relative newbie when it comes to linux. I know how to install debian on my box and how to navigate around the command line a bit we well as some of the GUI's. Here's my query: I have a PC that I'd like to turn into a webserver, ftp, and mail server. I'd basically like to be able to serve up some webpages and use Gallery to show off some pics to my extended family and the like. What packages would I need to install via apt-get to get everything up running properly and securely and fairly lean? I've attepmted to find a HOWTO on this (, but so far I've turned up nothing. The webserver and ftp server is my primary want right now and I'd probably work on the mail server idea later. Any help you could give would be greatly appreciated.

Old 07-18-2003, 01:09 PM   #2
LQ Newbie
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
There are so many different web servers and ftp servers that I really couldn't begin to make a recommendation.

However, to find a web server, try searching for httpd in dselect. Apache is perhaps the most popular in part because it is so powerful. If you can't find a web server by searching for httpd, search for apache.

Similarly, you can find an FTP server by searching for ftpd and a mail server by searching for smtpd. All these programs are probably contained in the net category. One day when you have time, sit down and read through all of them - there are some great programs in there.

The server types you've specified by the way, are notorious for having security problems. Hackers love web server and ftp servers and spammers love misconfigured mail servers. So what ever you do, please please please take the time to read every last word of documentation that comes with whatever programs you install.

I also suggest you install a firewall and block all access to your machine. Then selectively allow the IPs of those few people you want to have access.
Old 07-18-2003, 10:33 PM   #3
LQ Newbie
Registered: Jul 2003
Location: Houston, Tx.
Distribution: debian
Posts: 12

Rep: Reputation: 0
apt-get install apache postfix vsftpd

well that is what I would do Exim is already installed so you really already have an email MTA installed.

if you want to search the packages I suggest using apt-cache search <search_string> , I really dislike dselect. Aptitude is much better if you want to just look around IMO.
Old 07-19-2003, 09:00 AM   #4
Registered: May 2003
Location: NC, USA
Distribution: Slackware 14.0
Posts: 94

Rep: Reputation: 15
I recently set up a web server to display pics too. Here are some useful links.

Domain name with dynamic IP

Coppermine photo gallery

put all htdocs in /var/www/ or ~/public_html (this is accessed in web browser as www.your_domain/~user/)

For ftp, do search
#apt-cache search ftp | less
Old 07-19-2003, 01:58 PM   #5
LQ Newbie
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help so far!

Old 06-14-2006, 03:59 PM   #6
Registered: Dec 2002
Location: us
Posts: 108
Blog Entries: 360

Rep: Reputation: 15
Debian Server Setup Tutorial

check this complete debian server setup guide

Read here
Old 06-14-2006, 09:53 PM   #7
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Don't forget to install PHP. If you are going to use Gallery, you will need PHP. If you use Gallery >= 2, then you will also need a database server, probably MySQL or Postgres.
Imagemagick would be good also for thumbnail creation.
Old 06-16-2006, 11:46 AM   #8
Registered: May 2006
Posts: 33

Rep: Reputation: 15
Here's another setup guide that covers everything you mentioned (note: it does NOT lock them down, just shows you how to get them up and running). This is the one I'm currently going through (a little every night), so far so good.
Old 07-18-2013, 10:52 AM   #9
LQ Newbie
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
Thumbs up

Of course, if you want more in-depth info, I suggest you take a look at The Debian Handbook on
Old 07-19-2013, 11:47 AM   #10
Registered: Jul 2013
Location: Brunswick, GA
Distribution: Debian 7.1
Posts: 47

Rep: Reputation: 3
Although this site applies to their services, Linode has great how-to guides that are well written. Here is a link to help get you started and up and running within a matter of minutes:

Don't forget to take a look at some of their other guides, such as: how to secure your server, etc.


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
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
Cant connect to my webserver and ftp server from outside LAN akudewan Linux - Networking 3 05-15-2005 02:00 PM
how to configure FTP Server Redhat_guy Red Hat 1 02-20-2004 01:22 PM
What is a easy to configure ftp server? Finlay Linux - Software 8 05-28-2003 02:33 PM
Webserver and FTP server Goatman Linux - Software 5 04-20-2003 08:43 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:41 AM.

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