Forum Moderators: coopster

Message Too Old, No Replies

How Do i Dynamically generate subdomains

User signsup and has a subdomain created with thier username.

         

Robeysan

9:21 pm on Jan 21, 2009 (gmt 0)

10+ Year Member



When a user signs up with my site the site needs to create a subdomain based on their userid. I do not have access to my Apache config file and no server support at my host. There was a post [webmasterworld.com...] that talked about this issue in some detail but didn't list a solution in the event that the server config files were not accessible. I need some help or links to help me figure this out.

encyclo

2:09 am on Jan 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Robeysan - you need to have access to the server configuration files for this kind of setup - if you are using a shared host, then you will probably need to move to a different host which offers a VPS where you can setup wildcard DNS and let Apache handle arbitrary subdomains.

Robeysan

3:09 am on Jan 23, 2009 (gmt 0)

10+ Year Member



Thanks, encyclo.
I have gotten in touch with my hosting provider to change my server configuration so all subdomains are redirected the same directory.

So test.example.com points to
/www/index.php not /www/test/index.php

bkeep

3:11 am on Jan 23, 2009 (gmt 0)

10+ Year Member



I know this is sort of vague but I ran across a cpanel script that would automatically create sub-domains under your account it would also setup an ftp user with access to just that folder I will try and find a book mark to it but you can also search if that is sort of what you are wanting

bkeep

3:16 am on Jan 23, 2009 (gmt 0)

10+ Year Member



I found the link I hope it is ok to post it I am not entirely sure if it is the one I looked at a year or two ago but you can start there.

<snip>

If not search google for "cpanel auto create subdomain script"

[edited by: dreamcatcher at 8:30 am (utc) on Jan. 23, 2009]
[edit reason] No personal urls, thanks. [/edit]