Setup a hosting account using shell/command lines

Support for webhosts that use CentOS
Post Reply
Asia
Posts: 24
Joined: 2006/01/05 09:22:34

Setup a hosting account using shell/command lines

Post by Asia » 2006/05/05 20:07:03

Hello,

I know many people are using hosting control panel to create web hosting account (.e.g. webmin).

I just want to do it from shell/command lines.

Please let me know if I am missing anything to create a hosting account using shell.

Given:
Apache web server (www)
ProFTPd (ftp)
Bind (DNS)
Sendmail

1. edit httpd.conf
2. edit /etc/proftpd.conf
3. edit /etc/named.conf and create a zone file for each domain name.

Do I need to do anything to create a mail account for each account, or it will automatically create a mail account for each user by creating a user ('user add XXXX')?
Do I need to do anything on sendmail?
Do I need to do anything to send/receive mail?

Is there anything that I am missing?

rattler
Posts: 13
Joined: 2006/04/21 10:57:18

Re: Setup a hosting account using shell/command lines

Post by rattler » 2006/05/06 11:32:15

Hi! I thnk that depends on what you want to host and how. I can give you an example of how i configured my server and which programs i use.

* httpd (http/https)
* named (dns)
* mysql-safe (dbs)
* ssh/ sftp (ftp/ssh)
* dovecot (imaps)
* postfix (smtpd)

In this setup i require the use of ssh and sftp to be able access the site and transfer files. Mysql is only available local through ssh. httpd uses user home directories for sites. dovecot and postfix take care of mail. This is a very limited way of hosting with as little daemons as possible. Administration can be done by simply adding a user, chmod their directory for httpd, create a user db through ssh and add any dns settings if needed.
Ofcourse you will have to configure each daemon individually.

Asia
Posts: 24
Joined: 2006/01/05 09:22:34

Re: Setup a hosting account using shell/command lines

Post by Asia » 2006/05/07 19:10:11

Lets say you want to setup a virtual hosting account through shell, what exactly do you do?

A hosting account with ftp, mail, and dns setup.

Post Reply

Return to “CentOS 4 - Webhosting Support”