Page 1 of 1

[solved]did sumin dumb in config on localhost and locked out

Posted: Wed May 02, 2012 2:07 pm
by ladyr0gue
Hi I tried to move my installation earlier and did something wrong and fixed it. in the backup process I saved over the config file and htaccess file of my local installation. So I tried to edit them to the localhost settings but I've obviously done something dumb.....
Now if I look at http://localhost/cmsms/ it is there but is not communicating with the images or stylesheets and when I type in http://localhost/cmsms/admin/
I am redirected to http://localhost/cmsms/admin/localhost/ ... /login.php
and if I try to go to http://localhost/cmsms/admin/login.php
I am directed to http://localhost/cmsms/admin/localhost/ ... /login.php .
Can't for the life of me work out what I have done!

This is the config.php

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'] = 'cms';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'localhost/cmsms';
$config['timezone'] = 'UTC';
$config['default_encoding'] = 'utf-8';
#------------
#URL Settings
#------------
$config['url_rewriting'] = 'mod_rewrite';

$config['use_hierarchy'] = true;
$config['query_var'] = 'page';


#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;
 
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

?>
It's like it's communicating with the database but them the database isn't communicating with the files... or something...

edit: so silly, its http://localhost isn't it