fail to transfer working site to localhost set-up [SOLVED]
Posted: Sun Feb 12, 2012 5:09 pm
http://www.cife.org.uk works fine, hosted on 1and1 using CMSMS 1.10.3. I want to duplicate a working version of the site on my own PC, running locally via XAMPP.
Installed XAMPP successfully (MySQL 5.5.16, PHP 5.3.8 ). Downloaded the CMSMS files from 1and1 and installed in the XAMPP htdocs/cmsmadesimple2 folder on my C drive, downloaded contents of Database from 1and1 and set up new local SQL database.
Opened config.php and amended paths, urls and database details to what I hoped were correct settings to work as localhost.
Ran http://localhost/cmsmadesimple2/ and got the following error message:
Fatal error: Class 'ContentOperations' not found in C:\xampp\htdocs\cmsmadesimple2\lib\autoloader.php on line 82
I'm now well out of my depth on what to do next. Might I have got one of the URLs or paths wrong in config.php?
It's
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = true;
$config['output_compression'] = false;
$config['timezone'] = '';
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'db264102841';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://localhost/cmsmadesimple2';
$config['ssl_url'] = 'https://localhost/cmsmadesimple2';
$config['root_path'] = 'localhost/cmsmadesimple2';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'localhost/cmsmadesimple2/tmp/cache';
$config['uploads_path'] = 'localhost/cmsmadesimple2/uploads';
$config['uploads_url'] = 'http://localhost/cmsmadesimple2/uploads';
$config['max_upload_size'] = 20000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = 'localhost/cmsmadesimple2/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cmsmadesimple2/uploads/images';
$config['ssl_uploads_url'] = 'https://localhost/cmsmadesimple2/uploads';
$config['locale'] = '';
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = false;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';
?>
Any advice much appreciated!
Installed XAMPP successfully (MySQL 5.5.16, PHP 5.3.8 ). Downloaded the CMSMS files from 1and1 and installed in the XAMPP htdocs/cmsmadesimple2 folder on my C drive, downloaded contents of Database from 1and1 and set up new local SQL database.
Opened config.php and amended paths, urls and database details to what I hoped were correct settings to work as localhost.
Ran http://localhost/cmsmadesimple2/ and got the following error message:
Fatal error: Class 'ContentOperations' not found in C:\xampp\htdocs\cmsmadesimple2\lib\autoloader.php on line 82
I'm now well out of my depth on what to do next. Might I have got one of the URLs or paths wrong in config.php?
It's
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = true;
$config['output_compression'] = false;
$config['timezone'] = '';
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'db264102841';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://localhost/cmsmadesimple2';
$config['ssl_url'] = 'https://localhost/cmsmadesimple2';
$config['root_path'] = 'localhost/cmsmadesimple2';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'localhost/cmsmadesimple2/tmp/cache';
$config['uploads_path'] = 'localhost/cmsmadesimple2/uploads';
$config['uploads_url'] = 'http://localhost/cmsmadesimple2/uploads';
$config['max_upload_size'] = 20000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = 'localhost/cmsmadesimple2/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cmsmadesimple2/uploads/images';
$config['ssl_uploads_url'] = 'https://localhost/cmsmadesimple2/uploads';
$config['locale'] = '';
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = false;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';
?>
Any advice much appreciated!