Current time: 11-11-2024, 07:41 AM Hello There, Guest! (LoginRegister)


Post Reply 
Web-form for adding subdomains?
Author Message
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #1
Web-form for adding subdomains?
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
07-03-2008 07:04 PM
Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #2
RE: Web-form for adding subdomains?
Nobody wanna try to make this ?
07-22-2008 08:08 PM
Find all posts by this user Quote this message in a reply
Ballistic509 Offline
Junior Member
*

Posts: 24
Joined: May 2007
Reputation: 0
Post: #3
RE: Web-form for adding subdomains?
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.
08-11-2008 01:48 PM
Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #4
RE: Web-form for adding subdomains?
Sounds great

Im a little in PHP, but i dont have the time for making this, as i just started in the school again
08-12-2008 12:38 AM
Find all posts by this user Quote this message in a reply
Ballistic509 Offline
Junior Member
*

Posts: 24
Joined: May 2007
Reputation: 0
Post: #5
RE: Web-form for adding subdomains?
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?
08-12-2008 08:03 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: Web-form for adding subdomains?
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...
08-12-2008 04:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #7
RE: Web-form for adding subdomains?
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
08-12-2008 06:20 PM
Find all posts by this user Quote this message in a reply
Ballistic509 Offline
Junior Member
*

Posts: 24
Joined: May 2007
Reputation: 0
Post: #8
RE: Web-form for adding subdomains?
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
(This post was last modified: 08-13-2008 04:36 AM by Ballistic509.)
08-12-2008 08:37 PM
Find all posts by this user Quote this message in a reply
MicCo Offline
Moderator
*****
Moderators

Posts: 277
Joined: Oct 2006
Reputation: 1
Post: #9
RE: Web-form for adding subdomains?
Any news about this ?
10-06-2008 07:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #10
RE: Web-form for adding subdomains?
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...
10-07-2008 08:54 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)