Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Everything but $path_to_site ?
Hey everybody,
I’m sure I missed something simple here, but I’m stumped.
I’m setting up a new development workstation for my active site, and so I grabbed everything off the live server (an archive of the database, all the files and goodies, etc.) and copied it all onto my new development workstation. I setup the database on the development workstation to have the same name as what’s running on the production server to ease the transition. I then edited the config.php file with the info that’d changed…
<?php
$txpcfg[‘db’] = ‘saktxpdb’;
$txpcfg[‘user’] = ‘sak’;
$txpcfg[‘pass’] = ‘********’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘/home/sak/public_html/textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?>
I then changed the paths for the Site URL, and those under the Advanced tab in the Prefs to coincide with the new paths on the development server. Unfortunately I still get the following output on my diagnostics page:
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-10-18 00:17:07/2006-08-31 15:47:57
Document root: /var/www/ (/var/www)
$path_to_site: /users/home/sakeel/web/public/sak
Textpattern path: /home/sak/public_html/textpattern
Permanent link mode: messy
Temporary directory path: /home/sak/public_html/tmp
Site URL: localhost/~sak
PHP version: 5.2.1
Server Local Time: 2007-05-14 18:48:02
MySQL: 5.0.38-Ubuntu_0ubuntu1-log
Locale: en_US.UTF-8
Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
Apache version: Apache/2.2.3 (Ubuntu) PHP/5.2.1
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.20-15-generic
Active plugins: rss_admin_db_manager-4.2, Postmaster_library-0.1, Postmaster-0.3, zem_contact_reborn-4.0.3.18, zem_contact_lang-4.0.3.5, pap_contact_cleaner-0.1, rss_unlimited_categories-0.7.1
… and the following errors
path_to_site is inaccessible: /users/home/sakeel/web/public/sak
/users/home/sakeel/web/public/sak/index.php is inaccessible
Image directory is not writable: /users/home/sakeel/web/public/sak/images
Some Textpattern files have been modified: /include/txp_image.php
Am I going about this all wrong, or have I just missed something obvious right under my nose again? =)
Thanks,
Sak.
p.s. The message about the modified files isn’t a problem, it’s a result of the following resolved issue:
Thanks,
Sak.
Offline
#2 2007-05-15 02:08:32
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Everything but $path_to_site ?
It sounds like you might have a symlink from /home/sak/public_html/textpattern to /users/home/sakeel/web/public/sak (the real path). Try setting txpath to the real path.
Alex
Offline
Re: Everything but $path_to_site ?
There’s no symlinks. The /users/home/sakeel/web/public/sak path is the path that the production server uses. I downloaded all of the files, as well as the database backup to the development workstation and put all the files in the new location (/home/sak/public_html/) on the development workstation, so I didn’t create any links to anything.
sak@demian:~/public_html$ ls -l
total 20
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:48 files
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:47 images
-rwxrwxrwx 1 sak sak 1013 2006-10-11 15:04 index.php
drwxrwxrwx 9 sak sak 4096 2007-05-14 18:19 textpattern
drwxrwxrwx 2 sak sak 4096 2007-05-14 18:21 tmp
… and in the textpattern dir…
sak@demian:~/public_html/textpattern$ ls -al
total 124
drwxrwxrwx 9 sak sak 4096 2007-05-14 18:19 .
drwxrwxrwx 6 sak sak 4096 2007-05-14 18:21 ..
-rwxrwxrwx 1 sak sak 2642 2006-10-17 14:58 checksums.txt
-rwxrwxrwx 1 sak sak 638 2006-06-04 11:43 config-dist.php
-rwxrwxrwx 1 sak sak 239 2007-05-14 18:19 config.php
rw-rw-rw1 sak sak 251 2007-05-14 18:07 config.php~
-rwxrwxrwx 1 sak sak 451 2005-09-23 14:14 css.php
drwxrwxrwx 3 sak sak 4096 2007-05-14 15:45 include
-rwxrwxrwx 1 sak sak 3092 2006-10-16 03:06 index.php
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 lang
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 lib
-rwxrwxrwx 1 sak sak 15127 2005-07-26 16:56 license.txt
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 publish
-rwxrwxrwx 1 sak sak 32648 2006-10-16 02:00 publish.php
-rwxrwxrwx 1 sak sak 7432 2006-10-12 12:33 textpattern.css
-rwxrwxrwx 1 sak sak 5398 2006-10-16 02:47 textpattern.js
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 tmp
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 txp_img
drwxrwxrwx 2 sak sak 4096 2007-05-14 15:45 update
Thanks,
Sak.
Offline
Pages: 1