Jump to content

The PHP Side


hackalive

Recommended Posts

Hi guys,

 

I am wanting to do the same as Blogger.com (aka Blogspot) and Tumblr. And allow people to set their own domain names for "pages" or blog sites.

 

So if I was to tell them to set their own CNAME (on domain) to domains.mydomain.com

 

What would be the PHP part to make this work? Or how would I make this work if its not PHP?

 

Like Blogger and Tumblr it would not be a redirect (to view) (unless I am wrong about this).

 

Any and all help is much appreciated.

 

(PS - Am running Apache/PHP and MySQL on dedicated server).

Link to comment
Share on other sites

The other guys are right, you need to set up virtual hosts, can bind names with your own dns server.

 

Set up wildcard record to your main domain using  a *

 

An example of setting up your own dns server using  bind in ubuntu.

http://ubuntuforums.org/showthread.php?t=236093

 

Basically you are looking to make your own cms with a template engine system. Where files get shared , but the data is for each specific user acting as their own area.

 

If you really want a site like this can install wordpress and enable multisites.

 

Can even install the domain mapping plugin as well.

This would take it even further and allow the websites to be assigned their own domain names. (subdomain or folder design)

They would then assign their domain name with an a-record or cname pointing to your ip for server, or it's cname.

 

 

Heres a good place to see many opensource cms and their demos.

http://www.opensourcecms.com/scripts/show.php?catid=all&category=All+CMS+Demos

 

Besides wordpress, take a look at xoopsbitweaver, nucleus . I've tried them and seem pretty good, also have the multisite ability built in.

 

I personally use the wordpress multisite, they been around a long time, many contributers, themes and plugins.

I just so happen to be setting my wordpress hosting back up and can see it live at http://dynainternet.com

 

Link to comment
Share on other sites

Thanks but I dont necessarily (and correct me if I am wrong by all means) think this is how Tumblr or Blogger (Google) do it.

 

Why would you make such a claim?

This is the typical way to go about this.

 

SOrry to everyone, I just didnt think that Google would be doing a load of vhost writes ... my apologies

Link to comment
Share on other sites

The other guys are right, you need to set up virtual hosts, can bind names with your own dns server.

 

Set up wildcard record to your main domain using  a *

 

An example of setting up your own dns server using  bind in ubuntu.

http://ubuntuforums.org/showthread.php?t=236093

 

Basically you are looking to make your own cms with a template engine system. Where files get shared , but the data is for each specific user acting as their own area.

 

If you really want a site like this can install wordpress and enable multisites.

 

Can even install the domain mapping plugin as well.

This would take it even further and allow the websites to be assigned their own domain names. (subdomain or folder design)

They would then assign their domain name with an a-record or cname pointing to your ip for server, or it's cname.

 

 

Heres a good place to see many opensource cms and their demos.

http://www.opensourcecms.com/scripts/show.php?catid=all&category=All+CMS+Demos

 

Besides wordpress, take a look at xoopsbitweaver, nucleus . I've tried them and seem pretty good, also have the multisite ability built in.

 

I personally use the wordpress multisite, they been around a long time, many contributers, themes and plugins.

I just so happen to be setting my wordpress hosting back up and can see it live at http://dynainternet.com

 

Im running my own custom software, so Im trying to figure out how to achieve that with it

Link to comment
Share on other sites

I just didnt think that Google would be doing a load of vhost writes

 

With the link I provided, there is no "load of vhost writes". It is a wild card vhost. It rewrites the subdomain to a corresponding subdirectory. So if the URL was http://hackalive.example.com it would map traffic to /var/www/hackalive.

 

Only one vhost need be configured for that to happen.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.