Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-02 11:52:56
- dodot
- New Member
- Registered: 2005-11-02
- Posts: 3
problem with path to site
Hi,
I’m getting strange problem with path_to_site and document root.
The problem is in Documnet root where I get (/home/sites/site699/web) which is not correct
The real document root should be:
/home/sites/www.2lava.hr/web
and
$path_to_site: /home/sites/www.2lava.hr/web * not* /home/sites/site699/web
How can I correct this?
p.s.
my config.php file contains:
<?php
$txpcfg[‘db’] = ‘2lava’;
$txpcfg[‘user’] = ‘2lava’;
$txpcfg[‘pass’] = ‘Rt52WQbP’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘/home/sites/www.2lava.hr/web/textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?>
and here is diagnostic info:
Textpattern version: 4.0.1 (r888)
last_update: 2005-11-02 10:51:21/2005-11-02 10:43:59
Document root: /home/sites/www.2lava.hr/web (/home/sites/site699/web)
$path_to_site: /home/sites/site699/web
Textpattern path: /home/sites/www.2lava.hr/web/textpattern
Permanent link mode: section_id_title
open_basedir: /home/sites/www.2lava.hr/
upload_tmp_dir: /home/sites/www.2lava.hr/tmp/
Temp folder: /tmp
Site URL: www.2lava.hr
PHP version: 4.4.0
Register globals: 1
Magic quotes: 1/0
MySQL: 4.1.11-Debian_4
Locale: C
Server: Apache
Apache version: Apache
Pre-flight check:
————————————
Temp folder is not writable: /tmp
/home/sites/www.2lava.hr/web/textpattern/setup/ still exists
————————————
.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> ————————————Offline
Re: problem with path to site
“Document root” is an environment variable (webserver) which is queried and displayed in textpattern for diagnostic purposes. I don’t see why you have a “problem” with it, in any case it’s not textpattern related. :)
path_to_site is automatically set and updated by textpattern itself. It’s using the magic constants of PHP __FILE__, you shouldn’t have to worry about it either. It get’s corrected automatically even when you move your site some other place (you have simply access the front-page to trigger this).
It’s possible that your host is using symlinks, mod_rewrite or some other “magic” to match /home/sites/www.2lava.hr/web internally to /home/sites/site699/web. So again: If there is no actual problem, you don’t need to try fixing it.
Offline
#3 2005-11-02 12:14:04
- dodot
- New Member
- Registered: 2005-11-02
- Posts: 3
Re: problem with path to site
Thanks for instant reply,
well I have problem with uploading images with textpattern so I figured that this is the cause for it. I had a same site on another host and it was all ok.
Do you know which is the best way to move a site made with textpattern from one host to another?
Offline
#4 2005-11-02 12:34:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: problem with path to site
> “…I have problem with uploading images with textpattern so I figured that this is the cause for it.”
Yes, it would be. Textpattern first uploads the file to the temp directory, then moves it to the images folder (that’s so you avoid corrupted images, and what-not). You need to login and go the admin prefs, then go to the Advanced prefs and check what you have for the tmp folder path.
> “…move a site made with textpattern from one host to another?”
Work with a copy, keeping the old site up until you’re sure the new site is running smoothly. You’d:
- Export your Textpattern database from the old site.
- Import the database on the new site.
- Copy all your Textpattern files to the new server.
- Update the copy of the config.php, and upload it.
- Login and update your Textpattern preferences.
All done, everything should just work, with no re-install required. Your host likely provides you with a copy of phpMyAdmin, you can use that to import/export your database.
Offline
Re: problem with path to site
> Temp folder is not writable: /tmp
Try changing your temp folder in advanced preferences. And then make sure you chmod it so you PHP can write to it (usually 777). The temp folder has to be the absolute (filesystem) path.
Offline
#6 2005-11-02 17:24:32
- dodot
- New Member
- Registered: 2005-11-02
- Posts: 3
Re: problem with path to site
Thanks!
It was because the temp folder, and when it has apsolute path it’s working.
Thanks again.
Offline
Pages: 1