Forum Moderators: coopster
I've got a number of domains that are sitting idle. I want to offer members the opportunity to create their own subdomain and to host their own profile page on it.
Ideally I'd like the person to have assistance creating the profile page e.g. with simple ways for them to select a layout template, an upload feature to add photos, wysiwyg editing etc.
Does anybody know of a script that will do this?
Best wishes,
Martin
Could you not just let them create there own directories? As that is something more easily done with the file system and php.
You can write shellscripts which creates subdomains by editig http.conf file.
the process will be simple, first you will mkdir to create a folder for the user, then run the shellscript / bashscript to configure the server to point the subdomain.domain.com to your recently created folder for the user.
But for all this you will need a dedicated server.
This can be achieved by adding the following line to your zone file:
* IN CNAME www
ServerAlias *
to your httpd.conf
Then the index.php in that directory extracts the username from username.example.com and looks up the record from the DB and dislpays the profile page.
All you need to do is make sure there are unique usernames in the database and to return a 404 header if the username does not exist.
HTH