ispCP - Board - Support
Web-form for adding subdomains? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: Web-form for adding subdomains? (/thread-3672.html)

Pages: 1 2


Web-form for adding subdomains? - DiXeoN - 07-03-2008 07:04 PM

Hello..

First, i dont know if this is the right forum, if not, sorry.

And then for my idea:

Wouldnt it be smart to create a web-form for adding subdomains?

For Example if i want to run some free hosting, then it would be annoying to sit and add them all manually..

So a script for this would be nice..

They must provide a pwd for ftp, sql and so


Just an idea i just got Smile

I dont have enough skills for coding it myself, so if others got the time for it, it would be b-e-a-utiful Smile


RE: Web-form for adding subdomains? - DiXeoN - 07-22-2008 08:08 PM

Nobody wanna try to make this ?


RE: Web-form for adding subdomains? - Ballistic509 - 08-11-2008 01:48 PM

I second this.
I would try, but I don't know very much PHP really. Maybe I'll try to take a peak at the add user page and see what I can do.


RE: Web-form for adding subdomains? - DiXeoN - 08-12-2008 12:38 AM

Sounds great

Im a little in PHP, but i dont have the time for making this, as i just started in the school again


RE: Web-form for adding subdomains? - Ballistic509 - 08-12-2008 08:03 AM

Okay, this is going to be a project for me. I need to know all the files that are used to write subdomains, adding users, and whatever else I may need for this to happen in apache and bind. I don't mean the page addresses, I mean which tpl, or php file should I review to do this? I know a couple but I really don't want to do everything, to find out it don't work because something I'm missing in one little file that I overlooked.

Can a developer or someone list which files include code for adding users and the such please?


RE: Web-form for adding subdomains? - kilburn - 08-12-2008 04:21 PM

AFAIK the current system doesn't allow "independent" subdomains to be created. You cannot login as a "subdomain" account, so this should be the first step. By the way, we're now closer to 1.0 and after it there will be a major rearchitecture of the panel so creating a new "subdomain" gui level at this moment may not be that useful...


RE: Web-form for adding subdomains? - Zothos - 08-12-2008 06:20 PM

There is one solution based on the current ispcp. Just add users like: username.ourmaindomain.tld. Make a Hosting plan, so they can just add 1 ftp and 1 mysql for example. And you got what you need Tongue


RE: Web-form for adding subdomains? - Ballistic509 - 08-12-2008 08:37 PM

Well, I started working on this and hit a bump. I moved the useradd files to my htdocs folder to mess around with it, changed
Quote:require '../include/ispcp-lib.php';
to
Quote:include_once "/var/www/ispcp/gui/include/ispcp-lib.php";
and went to the page to see this:
Quote:Cannot open the ispcp.conf config file!
Please contact your system administrator
I have messed around with it for a while, but don't know how to make the file readable from my htdocs. I've added the possible directory to my open_basedir but can't figure it out.

Anyone know how to fix this?


EDIT: Fixed


RE: Web-form for adding subdomains? - MicCo - 10-06-2008 07:23 PM

Any news about this ?


RE: Web-form for adding subdomains? - pgentoo - 10-07-2008 08:54 AM

I think all you need to do to accomplish what you are trying, is to expose the logic on the add user page that you see as a reseller, to the outside world, of course locking down a few of the fields.

With this you could take a username, but tack on the rest to form teh domain. Then you'd get a domain like username.yourfreehostingdomain.com. As for all the other options, you could just have them hardcoded to only allow one ftp, 0 mailboxes, 1 database, etc. This really shouldn't be hard if i correctly understand what you're looking to do...