Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-28 22:05:01

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

txpath on textdrive servers?

Can anyone give me an indication of the correct config.php setup for textdrive servers?

One of my clients is using Textdrive and I am importing a locally tested site into a preexisting (live) server.

I am getting a “database unavailable” here

My config php file is as follows:

<?php
$txpcfg['db'] = 'name';
$txpcfg['user'] = 'name';
$txpcfg['pass'] = 'pass';
$txpcfg['host'] = 'mysql.server.textdrive.com';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = '/users/home/kristasakallaris/web/public/textpattern';
$txpcfg['dbcharset'] = 'utf8';
?>

Offline

#2 2007-01-28 22:11:37

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: txpath on textdrive servers?

It should be:

$txpcfg[‘host’] = ‘localhost’;


TextPattern user since 04/04/04

Offline

#3 2007-01-28 23:05:37

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: txpath on textdrive servers?

Reid,
Thanks,
That didn’t work. Then I actually tried to login to the phpMyAdmin with my user and pass (that textdrive sent my client), and I was given this error:

Access denied for user ‘kristasakallaris’@‘localhost’ (using password: YES)

I’m guessing there may be an issue with user/pass that I need to clear up with Textdrive?
Any ideas?


Offline

#4 2007-01-28 23:27:00

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: txpath on textdrive servers?

Sounds like time to file a ticket to me. The only other thing I can think of is if the database wasn’t named using the “username-database” convention. Otherwise, your config.php looked right to me.


TextPattern user since 04/04/04

Offline

#5 2007-01-28 23:53:31

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: txpath on textdrive servers?

It’s unrelated to the database issue, but for the record here’s a quick shortcut on ‘txpath’:

$txpcfg['txpath'] = dirname(__FILE__);

Alex

Offline

#6 2007-01-29 01:47:23

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: txpath on textdrive servers?

holy schnikees,
That’s a beautiful piece of code.
Thanks…

Matthew

ps. ticket submitted :)


Offline

Board footer

Powered by FluxBB