Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-29 22:10:51

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

Media temple and config.php

Anybody have issues connecting to (MT)’s databases on the new Grid Server?

my config.php looks like so:

Domain of (dv) Server?:

My details are below.
I am trying to figure out why how my config file for a textpattern install may be configured incorrectly? I am getting an error specific to Textpattern that suggests I am not entering my Media Temple information correctly. Can you let me know if you see an obvious error?

Thanks.

HEre is my config setup:

<?php $txpcfg['db'] = ' database name '; $txpcfg['user'] = 'user'; $txpcfg['pass'] = 'pass'; $txpcfg['host'] = 'external-db.sUserNo..gridserver.com'; $txpcfg['table_prefix'] = ''; $txpcfg['txpath'] = '/home/user/domains/website.net/html/textpattern'; $txpcfg['dbcharset'] = 'utf8'; ?>

And the details of the Database are below.
website.net mysql server:

Internal: internal-db.sUserNo.gridserver.com
External: external-db.sUserNo.gridserver.com

I’m getting a “database unavailable” error?

Any thoughts?

Matthew


Offline

#2 2006-11-29 22:41:22

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Media temple and config.php

I am pretty certain you want to use the internal host, not the external one. You’ve also got an extra . in $txpcfg['host'].

Offline

#3 2006-11-29 23:07:50

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

Re: Media temple and config.php

Mary,
Thanks, It has gone a bit further now, but I can’t seem to get it to connect.
Now I’ve got an error likely related to the direct path to the txp install?

Is there an easy way to figure that out without installing fresh? That’s how I’ve known what that path was before?

:)

Thanks


Offline

#4 2006-11-29 23:21:39

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Media temple and config.php

Hi, use: /domains/domain.com/html/textpattern

Also, you can ftp a php file up with:

phpinfo();

load that file in a browser and it’ll tell you enough to get you going…

Last edited by Walker (2006-11-29 23:22:07)

Offline

#5 2006-11-29 23:23:26

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Media temple and config.php

Can you ssh into the server? If so, go to the texpattern folder and type PWD. It will tell you exactly where you are.


Shoving is the answer – pusher robot

Offline

#6 2006-11-29 23:56:47

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Media temple and config.php

Yes, MediaTemple’s GS allows ssh.

Offline

#7 2006-11-30 02:49:25

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

Re: Media temple and config.php

Walker, Hak,
Could this have anything to do with the dns nameservers still being turned over from the old ones?
They probably have 12-48 hours left to populate?

I am a little unfamiliar with using Terminal, what kinds of commands would I need?

I’m a little stuck here? Never had this issue before?

specifically
These are the errors I’m getting:
Warning: main(/domains/realdifference.net/html/textpattern/publish.php) [function.main]: failed to open stream: No such file or directory in /home/6884/domains/realdifference.net/html/index.php on line 33

Warning: main(/domains/realdifference.net/html/textpattern/publish.php) [function.main]: failed to open stream: No such file or directory in /home/6884/domains/realdifference.net/html/index.php on line 33

Warning: main() [function.include]: Failed opening ‘/domains/realdifference.net/html/textpattern/publish.php’ for inclusion (include_path=’.:/usr/local/php-4.4.4-6/share/pear’) in /home/6884/domains/realdifference.net/html/index.php on line 33

Fatal error: Call to undefined function: textpattern() in /home/6884/domains/realdifference.net/html/index.php on line 34

The domain: realdifference.net is currently registered with yahoo, but I got my client to move their servers to (mt).
I’m currently accessing the site through the (mt) configured IP ( s6884.gridserver.com )

Last edited by ma_smith (2006-11-30 03:02:09)


Offline

#8 2006-11-30 03:04:42

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Media temple and config.php

Nah. To me it looks like it’s a path problem.

terminal:

ssh -l [username] [domain.com]
[enter password at prompt]
cd domains/[domain.com]/html/textpattern
pwd

(of course replace anything I put in brackets with your info and don’t leave the brackets in.)

Oh, and your username should be something like: serveradmin@yourdomain.com

Last edited by Walker (2006-11-30 03:05:35)

Offline

#9 2006-11-30 03:08:09

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Media temple and config.php

Oh, and this might be your path: /home/6884/domains/realdifference.net/html/textpattern

(from that information you just added)

Offline

#10 2006-11-30 03:25:37

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

Re: Media temple and config.php

I had tried that path above before, but some combination of troubleshooting seems to have given way to success.
Thanks Walker, Hak, Mary :)

I’d like to learn more terminal. I think that Transmit even offers some SSH features as well. SHould be good to learn at some point.
I tried your command walker and got the following returned:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Connection to realdifference.net closed.
[Process exited – exit code 1]


Offline

Board footer

Powered by FluxBB