auto create hosting account on signup

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andrewpsw
Forum Newbie
Posts: 2
Joined: Mon Jul 13, 2009 4:44 pm

auto create hosting account on signup

Post 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?
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Re: auto create hosting account on signup

Post 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?
andrewpsw
Forum Newbie
Posts: 2
Joined: Mon Jul 13, 2009 4:44 pm

Re: auto create hosting account on signup

Post 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.
Post Reply