Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

there is the way, how to automatically create the subdomain, virtualhost for apache, sharing configuration (samba), etc when I add a new user?

I want it's work like the web hosting service, when we registered, domain create automatically??

how to do that? or that is no way?

note: My server use debian 5.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I've setup some shell scripts to somewhat automate the creation of new users, Apache virtual hosts, etc., but I'd imagine the shared hosting providers use something like CPanel/WHM or some homegrown automation.

EDIT

Looks like there are some open source alternatives to CPanel out there now. Haven't tried any, hopefully another SF user can chime in as to quality:

http://www.vhcs.net/

http://www.virtualmin.com/

http://www.ispconfig.org/

More here, could be dated: http://wiki.debian.org/HostingControlPanels

share|improve this answer
    
OK. CPanel maybe the way for this. I'm the same with your imagine. But, I still learn about linux. I can't pay for CPanel license, that not suit for me. –  Muhammad Resna Rizki Pratama May 8 '11 at 2:42

If you're literally using adduser, then there's support for an adduser.local file, and there should be an example of one in /usr/share/doc/adduser/examples/adduser.local. Copy it to /usr/local/sbin, edit it to your needs, and it will be used anytime you run adduser.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.