UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Web Hosting Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 26-02-2007, 14:17
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default VPS Hosting

Hi,

I am planning to host my website hosting on VPS Hosting package. Needed to know if you could help me setup dynamic subdomains on my VPS Hosting server. Basically, I want to setup dynamic subdomains on the fly without modifying any A records or restarting server any time someone creates a new subdomain. There also needs to be a catch-all for any non-existing subdomain. If you need more details, then please read on.

My requirement is as follows:-

1) Users will register their sub-domain names from frontend
2) imm. after registration; username.mydomain.com should take the surfers to that users page. Also, user should be able to create sub-directories which should map correctly.
like: username.mydomain.com/blogs; username.mydomain.com/forums; username.mydomain.com/parispics etc.
Each registered user needs to have their own login area where they can fully maintain their website hosting.

That's after some user registers a particular subdomain. Now say; if subdomain has not been registered; typing subdomain.mydomain.com should redirect to registration page.

Here is summary of what I want:
-> When surfer types in subdomain.mydomain.com; Apache should display the correct webpage from (say) /var/www/subdomain else redirect it to registeration page (say /var/www/register.php) if apache detects that subdomain directory does not exists.

Could you help me how to configure apache to do this? Or if this is possible.
Once I have this solution; I'll prepare my scripts and be ready to host.

As I am zero skillset in Apache; it would be great if you could be as specific as possible

So, in essence, Apache needs to capture all subdomains requests.

Warm Regards,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 26-02-2007, 15:22
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,774
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hello Arun,

As of now this things can be easily done using cPanel and if you use some billing software like modernbill, whoiscart, whmautopilot, perlbill or lpanel then you can configure automation as you want.

Making your own script which would do all this will be quite difficult as you will need to put remote access key of WHM in your script to setup subdomains from your script. We have designed custom script which will autoinstall subdomains on the VPS Hosting but there would be one time cost for that script will will be close to £300.

Let me know how you have planned to run this service so that we can give you proper guidelines. If you are considering only VPS Hosting service then it wont be possible for us to help with customization of your script.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 27-02-2007, 11:35
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default

Hi Mark,

Thanks for your response.
I would not be billing anyone who registers, so perhaps won't be needing the billing software. But, if it helps me achieve the above functionality, I am willing to give it a try. Is such billing software included in plan or separate?

I am not too particular about VPS Hosting, my main requirement is as follows; I will go with whatever plan you suggest as long as it is within my budget (which is about the cost of your basic VPS Hosting package + cPanel).

My basic requirement is:
One) allow users to register at the homepage. Then give them URL such as username.mydomain.com. Within his subdomain, user can create username.mydomain.com/blog; username.mydomain.com/familyalbum etc. Within subdomain; user will have full control, except may be to run scripts to prevent server misuse. User will have a provate URL as well to maintain his website hosting.

Two) A catch-all subdomain so that if someone browses to xxxx.mydomain.com and xxxx is not registered by any user; then it is redirected to www. mydomain.com

Three) All registered subusers details to be maintained in Mysql database

Four) If possible, impose individual quota on each registered user (not really critical).

Your suggestions for appropriate configuration are welcome.

Regards,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-03-2007, 21:25
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default Subdomains in Apache2

Hi Mark,

Any answers to my above query yet?

Regards,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-03-2007, 21:35
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,774
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hello Arun,

We dont have any such script which will help you with the functionality you are looking for. You will need to consider a VPS Hosting to get started with this project and you will need to design your custom scripts to implement this functionality. Robert had designed similar script in past but now there's no track of it.

Only option I think is to wait for replies over here as some of our customers are really good with programming and development work and they can provide you with some suggestion.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-03-2007, 21:39
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default

Hey Mark,

That was fast reply. Impressed.
Do you think it will be better for me to go for Windows VPS Hosting hosting (which you are due to start) or Linux in light of above requirements?
Is cPanel/Fantastico available on Windows VPS Hosting hosting plan?

And last, not least, can I take out Linux VPS Hosting package with you for a month initially to try the things out if they work. Is there any minimum contract with VPS Hosting package?

And yeah, one clarification, I am not looking for any script which does all of the above. Just the one to take care of automatic subdomain creation part will suffice. I will code the rest.

Regards,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-03-2007, 21:52
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,774
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hello Arun,

Cpanel and Fantastico work on Linux Servers only. You will need to consider Linux - cPanel VPS Hosting for this requirement. Fantastico is included with the cpanel license so there's no additional cost for Fantastico.

You can try out our cPanel VPS Hosting plan for 1 month as there's no minimum contract period for any of our web hosting plans. We don't bind our customers with any contract as your stay with us should be only if you are happy and not due to any contract.

cPanel or any other control panel wont allow you to bypass its inbuilt authentication to setup subdomains or mail forwarders. You will need to design shell scripts which will add entries in httpd.conf as well as named.conf

If you make some shell scripts which will run following 2 commands then that should sort your 50% requirement.

/scripts/adduser

&

/scripts/adddns subdomain.domain.com
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-03-2007, 21:58
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default

Hi Mark,

Thanks a ton !!!
As long as I know where all I would need to make the entries; scripts won't be a problem for me. Just last question before I take the plunge.
I hope Apache will not need to be restarted everytime a subdomain is created automatically?

Once again, thanks for your help.

Warm Regards,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-03-2007, 22:08
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,774
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Add following line at the bottom of script :-

service httpd graceful

or

/etc/init.d/httpd graceful

this will restart apache gracefully to include changes without killing any existing processes.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-03-2007, 22:09
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default Thanks

Quote:
Originally Posted by eukhost.com View Post
Add following line at the bottom of script :-

service httpd graceful

or

/etc/init.d/httpd graceful

this will restart apache gracefully to include changes without killing any existing processes.
Thanks Mark, that was great help from you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-03-2007, 19:39
Premium Member
 
Join Date: Jan 2007
Posts: 209
Default

Hi Arun,
How good are you in PHP?

Using PHP you could do the required. Although VPS Hosting is not required but it is recommended. This will work only in Linux. Ask euk if they have HELM in windows, which also you could use.

Users Signup, the username is passed onto CPANEL which adds it as a subdomain (creating FTP user and folder in the process) and the script sends an email to the user with FTP information. They can then use as desired. You won't manually need to restart apache or BIND; Cpanel will do the needful. See cpanel.net for a partial example.

However, I wish to warn personally:
Free website hostings are generally source of trouble because people can upload all kinds of files. This can create server instability, downtime and even embarassment. Imagine your user's website hostings showing pornographic content for no fault of yours.

Still, there is a silver lining around the dark clouds. So all the best

Warm regards,
IJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 16:42.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service