hackalive Posted April 9, 2012 Share Posted April 9, 2012 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). Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/ Share on other sites More sharing options...
scootstah Posted April 9, 2012 Share Posted April 9, 2012 http://blog.orite.com.au/web_development/2009-01-22/setting-up-wildcard-virtual-hosts-for-web-development-environment/ See if this helps. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335658 Share on other sites More sharing options...
hackalive Posted April 9, 2012 Author Share Posted April 9, 2012 So thats what Id have to do in order to do what Blogspot and Tumblr do? Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335728 Share on other sites More sharing options...
scootstah Posted April 9, 2012 Share Posted April 9, 2012 It's one way at least. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335735 Share on other sites More sharing options...
hackalive Posted April 9, 2012 Author Share Posted April 9, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335892 Share on other sites More sharing options...
AyKay47 Posted April 10, 2012 Share Posted April 10, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335911 Share on other sites More sharing options...
trq Posted April 10, 2012 Share Posted April 10, 2012 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. If you think you know how they do it, what is your question? Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335928 Share on other sites More sharing options...
QuickOldCar Posted April 10, 2012 Share Posted April 10, 2012 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 xoops , bitweaver, 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 Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1335942 Share on other sites More sharing options...
hackalive Posted April 10, 2012 Author Share Posted April 10, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1336099 Share on other sites More sharing options...
hackalive Posted April 10, 2012 Author Share Posted April 10, 2012 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 xoops , bitweaver, 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 Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1336100 Share on other sites More sharing options...
hackalive Posted April 10, 2012 Author Share Posted April 10, 2012 I think Ill marked this closed, think it out better and come back later. Thanks for some pointers for now guys. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1336101 Share on other sites More sharing options...
trq Posted April 11, 2012 Share Posted April 11, 2012 SOrry to everyone, I just didnt think that Google would be doing a load of vhost writes ... my apologies I'm not sure what you meen by "vhost writes", but there is such a thing as mass vhost configuration. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1336314 Share on other sites More sharing options...
scootstah Posted April 11, 2012 Share Posted April 11, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/260613-the-php-side/#findComment-1336395 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.