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!
fail to transfer working site to localhost set-up [SOLVED]
fail to transfer working site to localhost set-up [SOLVED]
Last edited by cife on Sun Feb 12, 2012 6:15 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: fail to transfer working site to localhost set-up
Your config.php file is still wrong.
You can run through the installation routine to force a new config.php to be regenerated, but be sure to uncheck the options to add sample data and to clear the database tables.
You can run through the installation routine to force a new config.php to be regenerated, but be sure to uncheck the options to add sample data and to clear the database tables.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: fail to transfer working site to localhost set-up
Thanks Calguy,
That's got me up and running. I've ended up with a config.php file which is 14 lines long instead of 38 but the great thing is that it works!
That's got me up and running. I've ended up with a config.php file which is 14 lines long instead of 38 but the great thing is that it works!
-
- Forum Members
- Posts: 130
- Joined: Fri Feb 25, 2011 3:58 pm
Re: fail to transfer working site to localhost set-up [SOLVE
I'm having the same problem - we're just in the process of moving to a VPS.
I've tried running through the install directory, but I get exactly the same error after the initial language screen, so I'm a bit stuck!
Any thoughts gratefully received, this is my config file:
I've tried running through the install directory, but I get exactly the same error after the initial language screen, so I'm a bit stuck!
Any thoughts gratefully received, this is my config file:
Code: Select all
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = true;
$config['timezone'] = '';
$config['dbms'] = 'mysql';
$config['db_hostname'] = '';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_port'] = 0;
$config['db_prefix'] = 'cmsms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.stormforce.biz';
$config['ssl_url'] = 'http://www.stormforce.biz';
$config['root_path'] = 'localhost/storm';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'localhost/storm/tmp/cache';
$config['uploads_path'] = 'localhost/storm/uploads';
$config['uploads_url'] = 'http://www.stormforce.biz/uploads';
$config['max_upload_size'] = 10000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = '1';
$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/storm/uploads/images';
$config['image_uploads_url'] = 'http://www.stormforce.biz/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
$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';
?>
Last edited by Dr.CSS on Tue Sep 11, 2012 11:14 pm, edited 1 time in total.
Reason: Not a good idea to post username and password for DB...
Reason: Not a good idea to post username and password for DB...
-
- Forum Members
- Posts: 130
- Joined: Fri Feb 25, 2011 3:58 pm
Re: fail to transfer working site to localhost set-up [SOLVE
Well, I've resolved the issue. As well as some errors in my config.php file, I think some files were corrupt - uploading over the top from my tarball backup has resolved that.
Now onto resolving the rest of the moving issues...!
Now onto resolving the rest of the moving issues...!