Account creation

From Blackcannon wiki

Main_Page --- MYSQL --- SSH --- Laptop --- mail_server --- backup policy --- mincom --- samba --- itc280 --- account_creation



Table of contents

Creating Hosting Accounts

setup accounts (on dev)

  • Create master domain/mail account.
  • Create SSH shell accounts (create group [&_username] and THEN user [&_username] - umask 002.
 Login and verify ssh and sftp connectivity to new accounts on both command line and using GUI client.
  • Create mysql database [&_username] and create user account [&_username] to manage it.
 Login and verify mysql connectivity.


Push to production

  • rsync -av /etc/passwd /etc
  • rsync -av /etc/shadow /etc
  • rsync -av /etc/group /etc

(I will script this into a password push script)

  • rsync -av /home/vpopmail/domains/newdomain production:/home/vpopmail/domains
  • recreate mysql accounts on production like on Dev - do not try to push. Its pointless.
 Login and verify push - check SSH/SFTP/MYSQL connectivity on production machine.


setup apache (on dev)

  • Create directories
    • /var/www/yoursite.com/htdocs
    • /var/www/yoursite.com/cgi-bin
    • /var/www/yoursite.com/logs
  • Link /var/www/yoursite.com to ~/website/yoursite.com
  • Configure apache to host new virtual host under /etc/apache2/sites-available - enable and restart apache.

setup mail (on dev)

  • Install and configure Qmailadmin on this new domain
  • Manually import and configure squirrelmail.


Push to Production

This will push all Apache and Mail changes over.

  • rsync -av /home/[newuser] production:/home
  • rsync -av /etc/apache2 production:/etc
  • rsync -av /var/www/yoursite.com production:/var/www
 Restart Apache and verify push



misc

  • Setup webalizer to read off log files
  • Setup backuppc



configure access

  • Setup VPN
  • Insert ugly admin page
    • webmail
    • webmail admin
    • backup console (must be VPN'd in to see this)
    • webalizer stats