Page 1 of 1
auto create hosting account on signup
Posted: Mon Jul 13, 2009 5:17 pm
by andrewpsw
I am creating an online site builder. When clients sign up for an account I want it to automatically create a hosting account and directory for them on my server. In the directory there needs to be a set of PHP files.
What is the best way to do this?
Re: auto create hosting account on signup
Posted: Mon Jul 13, 2009 5:30 pm
by Skara
whoo. big topic, lots of room for error here. I'm definitely not an expert on this, but this is how I would go about starting it. As for doing the actual automation of it, I won't begin to say because I can see many security holes if you're not careful.
Basically, you're going to have in httpd.conf an
Include /path/to/some/folder/*.conf
Then add a new conf file for every user added.
I'm not sure if you can add any conf data without restarting the server (I'm thinking not), so I'd schedule a server reboot every night IF there are new conf files.
Experts: Does that sound right?
Re: auto create hosting account on signup
Posted: Mon Jul 13, 2009 5:35 pm
by andrewpsw
thanks for the response.
Just in case it makes a difference what control panel Im using I am currently using Plesk, but i would be willing to use something else if it was more geared for what i need to do. and information or tutorials on this would be greatly appreciated.