I've just migrated my testing site from a sub-domain to the main domain, and it's only working partially - I did a fresh install and updated the config file etc but while the home page (with the default cmsms home content), global content blocks and site menu is displaying correctly, the links aren't working - yet in the admin section all the pages/content is there??
Please take a look - jamiesonscomau
I followed these instructions: http://wiki.cmsmadesimple.org/index.php/How_to#How_to_move_your_CMSms_installation_to_a_new_server_.281.29
I didn't think it was necessary to export/import the db as it didn't actually have to move server - but I tried it anyway, and despite them being the same, I've tried linking to both db's from the config file - jamiesons_com_au_cms and jamiesons_com_au_new - but neither pull up the correct content...
Here's my config.php if you need it:
Code: Select all
<?php
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = false;
#-----------------
#Database Settings
#-----------------
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'w1633';
$config['db_password'] = '*****';
$config['db_name'] = 'jamiesons_com_au_cms';
#Change this param only if you know what you are doing
$config["db_port"] = '';
#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'cms_';
#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;
#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.jamiesons.***.au';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/virtual/web/w1633/html';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/var/virtual/web/w1633/html/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/var/virtual/web/w1633/html/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 2000000;
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';
#------------------
#Usability Settings
#------------------
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'page';
#--------------
#Image Settings
#--------------
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/var/virtual/web/w1633/html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#------------------------
#Locale/Encoding Settings
#------------------------
$config['locale'] = '';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
Your assistance is really appreciated!
Cheers,
Nick