Page 1 of 1

I have some issues moving CMSMS from original host to local

Posted: Sun Feb 22, 2015 11:40 am
by kullanim
Hi All,

First of all i wish to thank you for your work and time.

The original hosting settings are:
CMSMS 1.10.2, PHP v 5.3.29, Mysql 5.5.40.

I'm trying to run the site on XAMP 1.7.7 with the following settigns:
apache 2.2.21, Mysql 5.5.16, php 5.3.8.

I'm facing some configuration issues. All url files etc currently are pointing to 'http://fibrehu.com/.... - it's a fictional site.

The original config.php file looks like:(the original name was changed with "fibre"

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'fibre';
$config['db_password'] = '****';
$config['db_name'] = 'fibrehu_fibre';
$config['db_prefix'] = 'cms_fibre';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.fibrehu.com';
$config['timezone'] = 'Europe/hu';
$config['default_encoding'] = 'utf-8';
#------------
  #URL Settings
  #------------

  #What type of URL rewriting should we be using for pretty URLs?  Valid options are:
  #'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
  #configurations. 'mod_rewrite' requires proper apache configuration, a valid
  #.htaccess file and most likely {metadata} in your page templates.  
  $config['url_rewriting'] = 'mod_rewrite';

  #Extension to use if you're using mod_rewrite for pretty URLs.
  $config['page_extension'] = '.html';

  #If you're using the internal pretty url mechanism or mod_rewrite, would you like to
  #show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
  $config['use_hierarchy'] = true;

  #If using none of the above options, what should we be using for the query string
  #variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
  $config['query_var'] = 'page';
?>
The new local configu.php looks like:

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'fibrehu_fibre';
$config['db_prefix'] = 'cms_fibre';
$config['db_port'] = 0;
$config['root_url'] = 'localhost';
$config['timezone'] = 'Europe/Hu';
#------------
  #URL Settings
  #------------

  #What type of URL rewriting should we be using for pretty URLs?  Valid options are:
  #'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
  #configurations. 'mod_rewrite' requires proper apache configuration, a valid
  #.htaccess file and most likely {metadata} in your page templates.  
  #$config['url_rewriting'] = 'none';

  #Extension to use if you're using mod_rewrite for pretty URLs.
  #$config['page_extension'] = '.html';

  #If you're using the internal pretty url mechanism or mod_rewrite, would you like to
  #show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
  #config['use_hierarchy'] = true;

  #If using none of the above options, what should we be using for the query string
  #variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
  #$config['query_var'] = 'page';
?>
And my questions are:

When I change only the host name in config.php file with 'localhost' the domain http://www.fibrehu.com do not changed in all files and obviously the site do not work as expected. I need to search for the name and replaced it with localhost - is this the right way ?

When I'm trying to access the CMS login page - when I put the user and password and push submit it redirects me to "http://localhost/admin/localhost/admin/login.php two times admin and localhost. The situation is the same with images which I want to be visible into the first page. The images is blank and they are trying to open the address like 'http://localhost/localhost/images/imagename.jpg". How can remove this double /localhost/admin and /localhost from admin/login.php and from image showing path ?

That's for now :).
Thank you for your answers and patience.

Regards.

Re: I have some issues moving CMSMS from original host to lo

Posted: Sun Feb 22, 2015 12:11 pm
by Rolf
Remove from localhost config file:

Code: Select all

$config['root_url'] = 'localhost';