Managing Multiple Sites with Textpattern on Media Temple’s GridServer

Upload the new textpattern folder to the /domains/ folder on your Grid Server. Inside that folder you should have sites, textpattern, rpc, and css.php.

Inside the sites folder, create the Sites you want to use according to the README file. Your completed config.php file in the /private/ folder should look something like this:

$txpcfg['db'] = 'dbXXX_signalfade';
$txpcfg['user'] = 'xxxxxx';
$txpcfg['pass'] = 'xxxxxx';
$txpcfg['host'] = 'internal-db.sXXX.gridserver.com';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = '/home/XXX/domains/textpattern/textpattern';
$txpcfg['dbcharset'] = 'utf8';

Go to your control panel and make sure you have ssh access enabled for your account. You’ll find the ssh controls in the “Server Administrator” section of your Grid Server’s control panel.

Now, type the following command in the terminal (or putty, if you’re on Windows) to log into your account. Change signalfade.com in the below to your own domain.

ssh -l serveradmin@signalfade.com signalfade.com

Now that you’ve got your sites set up in the sites folder, your path will look something like this:

/home/507/domains/textpattern/sites/signalfade.com

Inside that domain name folder, you’ll have /admin/, /private/ and /public/ folders.

Go to the main directory in terminal (cd ~/domains). Make sure that a folder for the domain you’re setting up doesn’t exist in this folder. If it does, move it (mv signalfade.com signalfade.com_old).

Now, let’s link up the public & admin sites (remembering to change “signalfade.com” to your own domain):

mkdir signalfade.com
ln -s textpattern/sites/signalfade.com/public signalfade.com/html

and the admin:

mkdir admin.signalfade.com
ln -s textpattern/sites/signalfade.com/admin admin.signalfade.com/html

You should now be able to visit admin.yourdomain.com and log in.

 
Blog comments powered by Disqus