iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2009, 10:47 AM
fiShBoN3's Avatar
WebProWorld Member
 
Join Date: Mar 2004
Posts: 27
fiShBoN3 RepRank 0
Default php script to automatically create a subdomain and ftp account

I'm wondering if anyone here knows some script (php) that would create a subdomain and ftp account that could access only that subdomain folder. I wanted to give users who register to my site, a subdomain where they can upload their files.

Last edited by fiShBoN3; 01-15-2009 at 11:00 AM.
Reply With Quote
  #2 (permalink)  
Old 01-15-2009, 10:52 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: php script to automatically create a subdomain and ftp account

Which control panel are you using?

cPanel for example has a remote API which allows you to create accounts and so on. Other panels have different APIs, therefore script would need to be for the correct panel.
Reply With Quote
  #3 (permalink)  
Old 01-15-2009, 12:03 PM
fiShBoN3's Avatar
WebProWorld Member
 
Join Date: Mar 2004
Posts: 27
fiShBoN3 RepRank 0
Red face Re: php script to automatically create a subdomain and ftp account

Quote:
Originally Posted by speed View Post
Which control panel are you using?

cPanel for example has a remote API which allows you to create accounts and so on. Other panels have different APIs, therefore script would need to be for the correct panel.
Thanks for the reply. I'm using Cpanel. Is that the one they call fantastico? Which sub item is it? Sorry, I'm quite new to this
Reply With Quote
  #4 (permalink)  
Old 01-15-2009, 12:40 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: php script to automatically create a subdomain and ftp account

fantastico is an addon that runs under cPanel for installing various scripts.

If you have a reseller account then you can create a new account on demand which is a subdomain of your main domain and each will act as your current account does although you can limit the functions available via cPanel.

The issue there is you'll have a limit on the number of accounts you can create unless you have your own dedicated server.

Have a dig through PHP Web Hosting Tools Script and Programs :: Hot Scripts and you'll probably find something you can customise for this.

If you don't have a reseller account then you would need a script to add an FTP user and subdomain to your site, however again there's normally limits on the number of FTP and subdomains you can have per account. You can get around the subdomain limit by setting a wildcard and then using PHP/.htaccess to pull the data from the correct folders for each user, this just leaves FTP access.

Again there should be something at hostscripts to do the job, or could you upload via forms?
Reply With Quote
  #5 (permalink)  
Old 01-15-2009, 04:26 PM
WebProWorld New Member
 
Join Date: Apr 2008
Posts: 16
Vaijero_Maya RepRank 0
Default Re: php script to automatically create a subdomain and ftp account

Take a look at your cpanel options, see under hosting or reseller hosting. There are tools for dealing with that online (creating, billing and managing accounts on the go).
__________________
La Ruta Maya, My journey across Mesoamérica.
Guatemala Guides My trips around Guatemala.
Reply With Quote
  #6 (permalink)  
Old 01-15-2009, 11:03 PM
fiShBoN3's Avatar
WebProWorld Member
 
Join Date: Mar 2004
Posts: 27
fiShBoN3 RepRank 0
Default Re: php script to automatically create a subdomain and ftp account

Quote:
Originally Posted by speed View Post
fantastico is an addon that runs under cPanel for installing various scripts.

If you have a reseller account then you can create a new account on demand which is a subdomain of your main domain and each will act as your current account does although you can limit the functions available via cPanel.

The issue there is you'll have a limit on the number of accounts you can create unless you have your own dedicated server.
I don't think that the one I have is a reseller account although I can host unlimited addon domains and subdomains. I can also add unlimited ftp accounts.

Quote:
Originally Posted by speed View Post
Have a dig through PHP Web Hosting Tools Script and Programs :: Hot Scripts and you'll probably find something you can customise for this.
Thanks for the link. I think I might need some of the scripts there. I found another link at script_dot_wareseeker_dot_com/PHP/php-cpanel-api.zip/18401 (I still can't post links as I haven't reached 10 posts yet )

Quote:
Originally Posted by speed View Post
If you don't have a reseller account then you would need a script to add an FTP user and subdomain to your site, however again there's normally limits on the number of FTP and subdomains you can have per account. You can get around the subdomain limit by setting a wildcard and then using PHP/.htaccess to pull the data from the correct folders for each user, this just leaves FTP access.
I was planning on doing that but I wanted to use a ready-made script hehehe.
Reply With Quote
  #7 (permalink)  
Old 01-15-2009, 11:06 PM
fiShBoN3's Avatar
WebProWorld Member
 
Join Date: Mar 2004
Posts: 27
fiShBoN3 RepRank 0
Default Re: php script to automatically create a subdomain and ftp account

Quote:
Originally Posted by Vaijero_Maya View Post
Take a look at your cpanel options, see under hosting or reseller hosting. There are tools for dealing with that online (creating, billing and managing accounts on the go).
Thanks for the info but I really wanted that users are the ones to register through my site for a free subdomain where they can upload webpages. I also wanted them to access phpmyadmin but only see the database assigned to them. I think the links provided above can already give me what I need. Thanks.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
translate automatically musiktexte32 Web Programming Discussion Forum 3 02-11-2009 02:02 PM
Automatically check PR on link exchanges allaffiliatepro Marketing Strategies Discussion Forum 0 01-30-2005 11:48 AM
Link swap script that checks PR automatically allaffiliatepro Marketing Strategies Discussion Forum 0 01-30-2005 11:43 AM
Create FedEx shipments automatically? eferg eCommerce Discussion Forum 3 11-08-2004 09:39 AM
Send Web Cam Photos Automatically Jdimo Services for Sale/Hire 2 10-08-2004 01:08 PM


All times are GMT -4. The time now is 01:05 AM.



Search Engine Optimization by vBSEO 3.3.0