Problem moving C5 to a new server
Permalink
Hi!
i have a concrete site working on a hosted domain for test issues, and it all works fine.
now i tried to move this site to its new domain. i exported the sql database and copied all the files. on the new site i inserted the sql data into the new db, and pasted the files to the root directory of my new webspace. i changed /site.php to:
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'username new db');
define('DB_PASSWORD', 'pass new db');
define('DB_DATABASE', 'new db');
define('BASE_URL', 'http://www.newurl.de');
define('DIR_REL', '');
define('PASSWORD_SALT', 'abcdetc');
define("LOCALE", 'de_DE');
and .htaccess to:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !(index\.php)
RewriteRule .* index.php [L]
</IfModule>
what happens is:
i type in the new url, but it loads from the old site,
it behaves like a framed referrer. the new url stays, but my status bar show me it loads all the content from the old page/url.
did i overlook something?
i'm really new to this php stuff, so please explain like i were 8 y/o or so : )
thanks in advance!
i have a concrete site working on a hosted domain for test issues, and it all works fine.
now i tried to move this site to its new domain. i exported the sql database and copied all the files. on the new site i inserted the sql data into the new db, and pasted the files to the root directory of my new webspace. i changed /site.php to:
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'username new db');
define('DB_PASSWORD', 'pass new db');
define('DB_DATABASE', 'new db');
define('BASE_URL', 'http://www.newurl.de');
define('DIR_REL', '');
define('PASSWORD_SALT', 'abcdetc');
define("LOCALE", 'de_DE');
and .htaccess to:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !(index\.php)
RewriteRule .* index.php [L]
</IfModule>
what happens is:
i type in the new url, but it loads from the old site,
it behaves like a framed referrer. the new url stays, but my status bar show me it loads all the content from the old page/url.
did i overlook something?
i'm really new to this php stuff, so please explain like i were 8 y/o or so : )
thanks in advance!
In Sitewide Settings > Debug, clear the cache. You may have cached pages that refer to assets at the old URL.
sorry, but as I tried to open the site to clear the cache, it tells me:
Unable to connect to database.
A database error occurred while processing this request.
Fatal error: Call to a member function query() on a non-object in /.../htdocs/concrete/models/package.php on line 72
so i couldnt even open the login page to try to clear the cache..
as far as i can see line 72 points to the sql "package" database. i checked it and the content is the same as in the "working version" on the old site.
what am i doing wrong?
Unable to connect to database.
A database error occurred while processing this request.
Fatal error: Call to a member function query() on a non-object in /.../htdocs/concrete/models/package.php on line 72
so i couldnt even open the login page to try to clear the cache..
as far as i can see line 72 points to the sql "package" database. i checked it and the content is the same as in the "working version" on the old site.
what am i doing wrong?