Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-16 14:47:02
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Missing config.php, but it is there
Hi.
I have just installed Textpattern on my site. The administration interface is working fine, but the front end writes:
``config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/’‘
But the config files is there:
$ ls -l /data/www/virtual/thomasdamgaard.dk/htdocs/textpattern/config.php
-rw-r—r— 1 www-data www-data 291 2006-02-16 14:53 /data/www/virtual/thomasdamgaard.dk/htdocs/textpattern/config.php
My diagnostics page shows this:
Pre-flight check:
All checks passed!
Diagnostics info:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-02-16 13:54:40/2005-12-26 17:49:56
Document root: /data/www/virtual/thomasdamgaard.dk/htdocs
$path_to_site: /data/www/virtual/thomasdamgaard.dk/htdocs
Textpattern path: /data/www/virtual/thomasdamgaard.dk/htdocs/textpattern
Permanent link mode: messy
open_basedir: /data/www/virtual/thomasdamgaard.dk/:/tmp
Temp folder: /tmp
Site URL: thomasdamgaard.dk
PHP version: 5.1.2-Debian-0.1~sarge1
server_time: 2006-02-16 15:40:33
MySQL: 4.1.11-Debian_4sarge2-log
Locale: C
Server: Apache/2.0.54 (Debian GNU/Linux)
Apache version: Apache/2.0.54 (Debian GNU/Linux)
php_sapi_mode: apache2handler
os_version: Linux 2.6.8-2-386
.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
————————————
The webserver logs this when I hit the Textpattern site:
#sudo tail -f -n 0 /data/www/virtual/thomasdamgaard.dk/log/*.log
> /data/www/virtual/thomasdamgaard.dk/log/access.log <
> /data/www/virtual/thomasdamgaard.dk/log/error.log <
> /data/www/virtual/thomasdamgaard.dk/log/access.log <
83.88.98.43 – - [16/Feb/2006:15:43:27 +0100] “GET /index.php HTTP/1.1” 503 99 “-” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1”
Offline
#2 2006-02-16 15:12:00
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Missing config.php, but it is there
Can you post the first 20 lines of the index.php file in your htdocs folder?
Offline
#3 2006-02-16 15:56:18
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Missing config.php, but it is there
The 20 first lines of my index.php:
(/data/www/virtual/thomasdamgaard.dk/htdocs) head -n 20 index.php
<?php
/*
$HeadURL: http://svn.textpattern.com/development/4.0/index.php $
$LastChangedRevision: 804 $
*/
Offline
#4 2006-02-16 16:02:56
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Missing config.php, but it is there
Ok, that looks right.
Where exactly is your config.php file? It should be in the htdocs/textpattern directory (and if the admin page works that implies that it is there). Could you post the contents of your config.php file (removing the ‘user’ and ‘pass’ lines)?
Offline
#5 2006-02-16 16:04:39
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Missing config.php, but it is there
Oops, you already did post the location of your config.php file. What you have posted looks right…
Offline
#6 2006-02-16 16:08:43
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Missing config.php, but it is there
Problem solved!
> Where exactly is your config.php file?
$ pwd
/data/www/virtual/thomasdamgaard.dk/htdocs
$ ls -al /data/www/virtual/thomasdamgaard.dk/htdocs/index.php
-r—r—r— 1 root root 845 2005-08-26 10:33 /data/www/virtual/thomasdamgaard.dk/htdocs/index.php
Thanks for asking that!
I noticed that the file was owned by root:root. That was not right. It should be owned by www-data:www-data. And so it is now. And it works too. :-D
Offline
#7 2006-02-16 16:10:01
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Missing config.php, but it is there
I can paste the config.php anyway if it is of any interest?
<?php
$txpcfg[‘db’] = ‘thomasdamgaarddk’;
$txpcfg[‘user’] = ‘thomasdamgaarddk’;
$txpcfg[‘pass’] = ‘Surethisismyrealpassword;)’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘/data/www/virtual/thomasdamgaard.dk/htdocs/textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?>
Offline
#8 2006-02-16 16:19:01
- rskar
- Member
- Registered: 2006-02-13
- Posts: 25
Re: Missing config.php, but it is there
Glad to help, even if I didn’t provide the solution… ;)
Offline
Pages: 1