Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-02-15 13:23:05
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
Ok, I unzipped the textpattern-4.0.3.zip file on my windows machine and then FTP’ed to my website directory.
Textpattern is installed on the root directory of my website (i.e. it isn’t in a subdirectory). I put config.php in mydomain.com/textpattern originally (not mydomain.com/textpattern/textpattern) because config.php.default was in the textpattern directory when I unzipped Textpattern on my windows machine.
So should config.php be the onlything in mydomain.com/textpattern/textpattern or should everything in the textpattern directory on my windows machine be in the textpattern/textpattern directory?
Offline
#14 2006-02-15 14:09:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Config.php is not ok
If your site is in mydomain.com/, there can’t be a mydomain.com/textpattern/textpattern/ folder. The textpattern/ folder (just as you unzipped it) should be in mydomain.com/. It should look like this:
<ul>
<li>mydomain.com
<ul><li>textpattern folder
<ul><li>include folder</li>
<li>lang folder</li>
<li>lib folder</li>
<li>publish folder</li>
<li>setup folder</li>
<li>tmp folder</li>
<li>txp_img folder</li>
<li>update folder</li>
<li>config.php</li>
<li>index.php</li>
<li>css.php</li>
<li>license.txt</li>
<li>publish.php</li>
<li>textpattern.css</li>
<li>textpattern.js</li>
</ul>
</li>
<li>index.php</li>
<li>.htaccess</li>
</ul>
Last edited by doggiez (2006-02-15 14:11:06)
Offline
#15 2006-02-15 14:33:52
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
That is the way I orginally had my directories set up but I got the config.php is not ok or not found error. When I added a textpattern directory in the existing textpattern directory and put config.php in textpattern/textpattern the “config.php is not ok or not found” error went away and was replaced with the 404 error.
So that leads me to believe that textpattern/index.php is actually looking for config.php in textpattern/textpattern. I wonder why textpattern/index.php is looking for config.php in textpattern/textpattern?
Offline
#16 2006-02-15 16:58:46
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
Ok, a little more debugging and I find that there is a query being done in publish.php around line 272, under the case ‘section_id_title’ statement.
That query turns out to be:
select name from `txp_section` where `name` like ‘textpattern’ limit 1
If I use PHPMyAdmin on my site and run that query it returns 0 rows (which is what happens in the Textpattern code as well). It looks like there isn’t anything in that table.
Any idea what should be in that table?
Offline
#17 2006-02-15 17:01:59
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
Oops, there actually is something in the txp_section table, just nothing with a name ‘textpattern’. There are 3 rows with names default, about and article.
Offline
#18 2006-02-15 17:51:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Config.php is not ok
There is no need to look in the database, there is nothing much there when you just installed, just some default page templates, forms, one article, and as you’ve seen three sections.
Textpattern also does not look for config.php in textpattern/textpattern/ if you’ve installed in the root of your domain.
So if the message is that config.php is not OK, then I suggest you start with the original config.php.default, modify that and replace the one that’s ‘not OK’ with it.
It probably would be even faster to redo the install completely from start.
Offline
#19 2006-02-15 19:20:58
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
I figured it out now.
I screwed up the loading of the files onto the server. So index.php and textpattern/index.php actually had the same contents. I removed textpattern/index.php and put up the proper index.php (from the textpattern directory on my home machine) and everything seems to be working now.
Well that was stupid, at least I got to learn a little bit about the guts of Textpattern. :)
Offline
#20 2006-02-15 19:37:57
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Config.php is not ok
Oh, and thanks for the help. The tip-off for me was that config.php should be in mysite/textpattern not mysite/textpattern/textpattern.
That made me think about whether I had the right index.php in the textpattern directory…
Offline
#21 2006-02-16 04:18:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Config.php is not ok
Glad you got it worked out, thanks for posting an update. :)
Offline