Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon's Blog:
How to: Multi-site CodeIgniter Set-up
Jun 24, 2009 @ 17:58:12

The CodeIgniter framework, by default, is set up to work with a one site instance. Unfortunately, this isn't always the case and several developers have found the need to make it support more than one website based on the same codebase. Phil Sturgeon has written up this post to show you exactly how.

A few people have asked me recently about setting up CodeIgniter to run accross multiple domains based on the same codebase. This can be handy for sites than run different databases for different geographical areas, all of which need the same code but different content. To get this working I took a little code from PyroCMS and modded a previous article "How to: Support multiple production environments in CodeIgniter" and found a relatively simple solution.

You'll need to modify a bit of code to get things working: changing up the config.php to look at the hostname, making a site constant and updating the database.php config file to configure connections for each of the site constant defined.

tagged: tutorial multisite codeigniter

Link:

HowTo Forge:
Multisite CVS Drupal Installation on Ubuntu
Aug 08, 2007 @ 16:16:00

A new tutorial over on the HowTo Forge website today steps you through the process of getting a multisite Drupal installation set up on Ubuntu via CVS.

This howto shows you how to do a multi-site Drupal install on Ubuntu. It also covers how to layout your directories for ease of maintenance, and how to ensure that you can update Drupal easily from CVS.

Why go to all this bother? Why not just install Drupal using sudo aptitude install drupal? The answer is that as your website gets more popular, you're going to need to keep up to date with security patches, as well as manage all the custom modules you've installed.

The tutorial is broken up into sections:

  • Configure DNS
  • Install Packages
  • Test Apache2/PHP Installation
  • Test MySQL Installation
  • Install Drupal Using CVS
  • CVS Updates
  • Create Additional Directories
  • Create the Drupal Sites
  • Configure Drupal
tagged: drupal installation multisite cvs ubuntu tutorial drupal installation multisite cvs ubuntu tutorial

Link:

HowTo Forge:
Multisite CVS Drupal Installation on Ubuntu
Aug 08, 2007 @ 16:16:00

A new tutorial over on the HowTo Forge website today steps you through the process of getting a multisite Drupal installation set up on Ubuntu via CVS.

This howto shows you how to do a multi-site Drupal install on Ubuntu. It also covers how to layout your directories for ease of maintenance, and how to ensure that you can update Drupal easily from CVS.

Why go to all this bother? Why not just install Drupal using sudo aptitude install drupal? The answer is that as your website gets more popular, you're going to need to keep up to date with security patches, as well as manage all the custom modules you've installed.

The tutorial is broken up into sections:

  • Configure DNS
  • Install Packages
  • Test Apache2/PHP Installation
  • Test MySQL Installation
  • Install Drupal Using CVS
  • CVS Updates
  • Create Additional Directories
  • Create the Drupal Sites
  • Configure Drupal
tagged: drupal installation multisite cvs ubuntu tutorial drupal installation multisite cvs ubuntu tutorial

Link:


Trending Topics: