Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-30 01:34:54

patrickb
New Member
Registered: 2006-04-30
Posts: 6

config.php is not ok or not found. If you would like to install, go to

When I go to my site, I get this message:

“config.php is not ok or not found. If you would like to install, go to…”

I’ve searched the forums for a solution and haven’t found one. I’m really a newbie at all this database stuff, so forgive any stupid questions for which there’s an obvious answer.

From searching the forums it seems that viewing the config.php and diagnostic files helps so

config.php:
<?php
$txpcfg[‘db’] = ‘textpattern’;
$txpcfg[‘user’] = ‘patrickb’;
$txpcfg[‘pass’] = ‘reallycoolpassword’;
$txpcfg[‘host’] = ’66.186.25.61’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘c:\hosting\webhost4life\member\patrickb\textpattern’;
$txpcfg[‘dbcharset’] = ‘latin1’;
?>

Diagnostics:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-04-29 19:24:44/2006-04-30 00:50:52
Document root: c:\\hosting\\webhost4life\\member\\patrickb (c:\hosting\webhost4life\member\patrickb)
$path_to_site: c:\hosting\webhost4life\member\patrickb
Textpattern path: c:\hosting\webhost4life\member\patrickb\textpattern
Permanent link mode: messy
upload_tmp_dir: C:\PHP\uploadtemp
Temp folder: C:\Temp
Site URL: www.recipesngifts.com
PHP version: 4.3.11-dev
server_time: 2006-04-29 18:23:49
MySQL: 4.0.24-nt-max
Locale: English_United States.1252
Server: Microsoft-IIS/6.0
php_sapi_mode: isapi
os_version: Windows NT 5.2

Pre-flight check:
————————————
path_to_site is inaccessible: c:\hosting\webhost4life\member\patrickb
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

Thanks for your help.

Offline

#2 2006-05-01 09:15:09

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: config.php is not ok or not found. If you would like to install, go to

Two possibilities:

1) Your config.php is probably in the wrong place. It should be here:
c:\hosting\webhost4life\member\patrickb\textpattern\config.php

2) You have used some program to generate and upload your config.php file, that messed with the file in some way. I think Dreamweaver or some other such programs sometimes did things like that. In that case, recreate and upload the file manually (with other software).

Offline

#3 2006-05-01 11:33:50

patrickb
New Member
Registered: 2006-04-30
Posts: 6

Re: config.php is not ok or not found. If you would like to install, go to

Thanks for the reply.

1) The config.php is in the ..\textpattern folder. I double-checked that after reading the FAQs and searching the forums.

2) I used Notepad to create the config.php folder and used the ftp function in IE 6 to ftp the file to my host.

Does Textpattern not like to play in a Windows environment? My host uses Windows.

Offline

#4 2006-05-01 11:41:53

patrickb
New Member
Registered: 2006-04-30
Posts: 6

Re: config.php is not ok or not found. If you would like to install, go to

Will Textpattern work on IIS servers on Windows platform?

Huge disappointment, if that’s the case and, no, I can’t switch hosts right now.

Offline

#5 2006-05-01 14:03:30

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: config.php is not ok or not found. If you would like to install, go to

Textpattern is known to work in some fashion under IIS. Clean URLs will not work out of the box, but there are workarounds for that; there is a software package called “IIS Rewrite” which may help, as well as TXP’s “partly messy” URL system.

http://textpattern.com/weblog/135/partly-messy-clean-urls-without-modrewrite-experimental

Many installation problems can be solved by starting fresh and re-uploading a clean copy of TXP; you may want to try that and see how it goes.

-Kurt


kurt@kurtraschke.com

Offline

#6 2006-05-01 16:12:26

patrickb
New Member
Registered: 2006-04-30
Posts: 6

Re: config.php is not ok or not found. If you would like to install, go to

Do I start fresh by simply removing all the txp files and folders and re-ftp-ing them? I tried that and when I went into setup, it told me that the setup was already done and it opened the txp control panel (or whatever it’s called where you write your articles and do the other configuration stuff).

Offline

#7 2006-05-01 18:34:08

patrickb
New Member
Registered: 2006-04-30
Posts: 6

Re: config.php is not ok or not found. If you would like to install, go to

It works now. Here’s what the my host’s support said:

I have change .php extension handle by PHP-CGI mode

Makes no sense to me, but maybe it will help someone else.

Thanks. Onward and upward.

Offline

Board footer

Powered by FluxBB