Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th April 2007, 08:12
tomde tomde is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default Debian Web/mail/ftp server operation

I plan on setting up a web server that will include POP3 and SMTP services. I never did any real server configuration before and nor I done any unix/linux based server configurations that include both mail and web (I know how to manage and unix machine with multiple users).
I am pretty much thinking of having each website as a separate user account in my debian system. The user can then ssh my server to run statical shell scripts I give them permission to since they will have no other access to anything else on the system. Of course commands like ls, mkdir, mv, cp, ping...etc will be accessible. There will be no viewing outside of they're home directory, they'll be jailed when in ssh mode or ftp...etc. Now I would like for them to update they're sites via vsftpd and like said they will be jailed in they're home directory. They will have full permissions except group and others will have no rwx permissions.
I will of course link my apache virtual hosts to each corresponding user account's mydomain.com directory. Now is there a way to give the user full permission to a folder without letting them change the name?
Since one user account contains the website will will be a master account.
Now for mail configuration I will have the mbox in the master account.
I would then write a few scripts to add subdomains and to allow more email address accounts to be made with the corresponding domain.
Would this be a good linux web/mail server configuration?
I intend to serve a site for my friend, two sites for me and one for my dad. Maybe others if I'm good, idk yet.
Also just to add I have port 80 open and 25 with my ISP...etc and I have a DDNS manager from my ISP.
Thanks for the advice and criticism.
Reply With Quote
Sponsored Links
  #2  
Old 15th April 2007, 11:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

Have you thought about using this tutorial: http://www.howtoforge.com/perfect_setup_debian_etch ? Afterwards you can install ISPConfig. This will do almost anything you need.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th April 2007, 07:17
tomde tomde is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Thanks I did look at the tutorial. I have two questions though. The first is why did the tutorial setup a DNS server with BIND? The second is that ISPConfig is basically just a front panel for managing multiple web sites right (like cpanel or something)? There is a admin version and a host version both accessible through HTTP on port 81? Now whats the popularity of ISPConfig in the real world of hosting? I know most pros make they're own interface but would ISPConfig but sufficient? You say it would work for most of my things, but what won't it work with? I know I will have to use proftpd which I don't really prefer over vsftpd.
Also was the tutorial is written with intentions of accommodating multiple hosts with a site and several email accounts on they're domain?

Other then that if I was to use my own interface, would my original method be pointing in the right direction or way off where I would be laughed at? I know I could make a web interface where users can login through a php interface to manage they're site instead of ssh. But The tricky part of that would be connected the interface to the linux side of things.

As you can see I'm lost. I think I will go give ISPconfig a shot though.

Just thinking about the whole thing and would ISPconfig have users have they're own user account or would this be entirely through MySQL or something?
Reply With Quote
  #4  
Old 16th April 2007, 08:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,337
Thanks: 810
Thanked 5,162 Times in 4,048 Posts
Default

Quote:
The first is why did the tutorial setup a DNS server with BIND?
Bind is the most used DNS server. It is required by ISPConfig.

Quote:
The second is that ISPConfig is basically just a front panel for managing multiple web sites right (like cpanel or something)?
yes.

Quote:
There is a admin version and a host version both accessible through HTTP on port 81?
No. There is just one version with 4 different logins for administrator, resellers, clients and mailusers.

Quote:
ow whats the popularity of ISPConfig in the real world of hosting? I know most pros make they're own interface but would ISPConfig but sufficient?
I know most pros dont make their own interface ISPConfig is used by many hosting companys around the world and according to the download numbers its probably one of the most popular open source ISP controlpanel now.

Quote:
You say it would work for most of my things, but what won't it work with?
Compare your setup with the perfect setup or just try it.

Quote:
Also was the tutorial is written with intentions of accommodating multiple hosts with a site and several email accounts on they're domain?
Yes.

Quote:
Just thinking about the whole thing and would ISPconfig have users have they're own user account or would this be entirely through MySQL or something?
ISPConfig uses linux system users. If you want to enable shell access for them, I recommend to compile your SSHD with chrooting enabled and then enable SSH chrooting in ISPConfig too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
tomde (17th April 2007)
  #5  
Old 17th April 2007, 06:24
tomde tomde is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Thank you very much till and falko,
Okay I have a setup like in the tutorial. My last question is how can I configure ISPconfig without a domain. I'm only doing this since I don't plan on buying a domain. dyndns.org offers free ddns subdomains, right now at least at this time my server will have a free subdomain through dyndns.org. The other websites being hosted will be apache virtual hosts setup through ISPconfig and will have their own domains. When I tried to setup ISPconfig with my subdomain it would not work.

So I think I will just have my server's hostname as the name of the computer like dell poweredge and the domain left blank? This is a possible configuration no? Is there a default I could use like "hostname.local" used in the macs? Thanks again.
Reply With Quote
  #6  
Old 17th April 2007, 07:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,337
Thanks: 810
Thanked 5,162 Times in 4,048 Posts
 
Default

You can install ISPConfig without a domain but you can not use it without a domain. But a dandns.org domain is a domain, so you have a domain

1) During ISPCOnfig installation, when the installer asks for the hostname, leave it blank, when the installer asks for the domain, enter the IP address.

2) When you create a website in ISPConfig for yourdomain.dnydns.org, enter yourdomain as hostname and dyndns.org as domain.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 08:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.