Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-13 13:20:11

rskar
Member
Registered: 2006-02-13
Posts: 25

Config.php is not ok

I attempted to install Textpattern on my site yesterday. I got through the whole setup process and I can see that the tables were created in the database for my site.

At the end of the setup process there is a link to login to the admin portion of the site (to textpattern/index.php). When I click on that link I get the following error message:
“config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/”

The only thing I can think of is that I might have the path to textpattern directory messed up. I am on DreamHost and I have the path as /home/.emo/<myusername>/<mydomain>/ which I think is right (at least using telnet and doing a cd “/home/.emo/<myusername>/<mydomain>/” works, I have also tried /home/<myusername>/<mydomain>/ and I get the same error message).

Is there something funny going on with DreamHost (has anyone else installed on DreamHost, I can’t find anything in their support section about Textpattern) or have I maybe done something else wrong? I assume that since the database tables got set up properly that the username and password and other database settings are correct.

Any help on this would be great (especially from some one that got Textpattern to work on DreamHost).

Offline

#2 2006-02-13 17:19:00

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Config.php is not ok

<blockquote>The only thing I can think of is that I might have the path to textpattern directory messed up. I am on DreamHost and I have the path as /home/.emo/// which I think is right</blockquote>

As far as I know, that’s not a correctly formed Unix path—Textpattern can’t understand it, so it’s giving you an error.

I’m not a Dreamhost customer, but a quick look at their community wiki gave me an idea of where to start. The <a href=“http://wiki.dreamhost.com/index.php/Movable_Type”>configuration instructions for Movable Type</a> showed that paths to sites usually look like:

<pre>/home/.dataglob/user/domain.com/</pre>

Try that instead—and then try getting rid of the .dataglob/ part of the part if that doesn’t work.

Also, double-check that you renamed config.php.default to config.php.

Hope this helps!

Last edited by Elenita (2006-02-13 17:24:51)

Offline

#3 2006-02-13 18:19:50

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

It looks like Textile added those extra ‘/‘s on me, what I meant to put was /home/.emo/< my username >/< my domain >/

For the Movable Type comments, the DreamHost support page says that the .dataglob should be removed. I found that article yesterday and it actually prompted me to try just the /home/< my username >/< my domain > instead of having the .emo in there. I still see the same error message when I use that path.

Looking at the index.php code it seems like that the “config.php is not ok…” error message comes up when the response from the server is 503 Service Unavailable but I’m not sure what that means (or what could cause that).

Anyone have any other ideas?

Offline

#4 2006-02-14 00:28:02

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

Re: Config.php is not ok

Most likely you’ve put config.php in the wrong place. It should probably be /home/.dataglob/user/domain.com/textpattern/config.php. The setup program should tell you the correct path.


Alex

Offline

#5 2006-02-14 12:57:59

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

config.php is in /home/user/domain.com/textpattern/ Permissions for config.php are – rw-rw-r— (added the space after the first dash for textile).

I have tried /home/.emo/user/domain.com/textpattern and /home/user/domain.com/textpattern and /home/.dataglob/user/domain.com/textpattern as the path with the same result.

I’m not even sure the path is the thing that is wrong. According to the index.php source the “config.php is not ok…” message is printed out when the HTTP server returns 503 Service Unavailable. What would cause that response from the HTTP server?

Offline

#6 2006-02-14 13:44:01

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

I should also note that it looks like Textpattern actually did install properly. If I go to mydomain.com I see the My Site and First Post page. The problem is that I can’t seem to get to a login screen for the admin section of the site. If I go to mydomain.com/textpattern/index.php I get the “config.php is not ok or not found.” error message.

Also if I change the path to /home/.dataglob/myusername/mydomain.com/textpattern I get errors at www.mydomain.com (basically saying that the /home/.dataglob/myusername/mydomain.com/textpattern path doesn’t exist).

Offline

#7 2006-02-14 19:33:04

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

I have been trying to figure this out a little bit without much luck but I found a couple of things. First, the 503 Service Unavailable message is actually what Textpattern is outputting, it isn’t the code that Textpattern is getting from the server. In other words Textpattern is saying that it is the service that is unavailable.

It looks like the $txpcfg variable isn’t defined. This gets defined in config.php and it looks like config.php gets included on this line in index.php: include ‘./textpattern/config.php’.

If I do a echo $here ($here gets set to dirname(FILE) in the line above the include line mentioned above) I get the correct path (/home/.emo/username/domain/textpattern). If I put an echo $txpcfg[‘txpath’] at the end of config.php and go to mysite.com/textpattern/config.php, I see the correct path in the browser. So I guess the question is why doesn’t the include ‘./textpattern/config.php’ line work in index.php?

Offline

#8 2006-02-14 20:12:56

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

A little more debugging and I find out that the line:

include (‘./textpattern/config.php’) should be:

include (‘../textpattern/config.php’)

Now I get to a 404 error in publish.php (I think it is there anyway). So I will try to track that down. Of course this probably points to a problem with the include path or something but I will see where this rabbit hole goes…

Offline

#9 2006-02-14 22:00:40

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

Re: Config.php is not ok

If I go to mydomain.com/textpattern/index.php

If you’ve installed textpattern in /home/.dataglob/myusername/mydomain.com/textpattern, config.php should be at /home/.dataglob/myusername/mydomain.com/textpattern/textpattern/config.php.

The original include statement was correct.


Alex

Offline

#10 2006-02-15 01:15:08

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

Ok, that seems to work. Now I get a 404 error message. I remember reading about that somewhere else, I will look into it.

Thanks for the help.

Offline

#11 2006-02-15 02:06:13

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

It looks like the 404 error I am seeing isn’t like other people’s. I have tried changing my .htaccess file and it doesn’t seem to work.

I am getting the Textpattern 404 error page when I try to access textpattern/index.php. Any suggestions?

Offline

#12 2006-02-15 03:04:12

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

Re: Config.php is not ok

Given that config.php was in the wrong place, it’s possible that other files are in the wrong place also.


Alex

Offline

Board footer

Powered by FluxBB