How to configure Debian to be a Webserver and FTP server?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 (tldp.org, debian.org) 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.
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.
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.
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.
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.
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: https://library.linode.com/hosting-website
Don't forget to take a look at some of their other guides, such as: how to secure your server, etc.
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.
Something as old as an webserver should be easy out of the box. I'll be disappointed, but not surprised, if that is still the case
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.