[SOLVED]I suddenly can't log into my admin page.
[SOLVED]I suddenly can't log into my admin page.
Need help to figure this out. I can't log in to my admin site : [url]http://www.web-focus.no/admin[/url] , and no password was sent to my email when I tried to get a new one.
The only changes I have made recently is to add an Internal Page 301 Redirect.
Does anybody know why this is suddenly happening?
Iselin
The only changes I have made recently is to add an Internal Page 301 Redirect.
Does anybody know why this is suddenly happening?
Iselin
Last edited by iselinarnesen on Thu Dec 08, 2011 9:47 am, edited 1 time in total.
- andriesinfoserv
- Forum Members
- Posts: 78
- Joined: Wed Aug 31, 2011 6:37 am
Re: I suddenly can't log into my admin page.
more info please.
cmsms ver.
is this a brand new install? or production site?
did you test php mail function during install?
if you salted your password during install and didn't save password somewhere and mail doesn't work you may have to reinstall.
can you login if you remove redirect?
cmsms ver.
is this a brand new install? or production site?
did you test php mail function during install?
if you salted your password during install and didn't save password somewhere and mail doesn't work you may have to reinstall.
can you login if you remove redirect?
Re: I suddenly can't log into my admin page.
I installed cmsms version 1.9.4.2 , about 1 week ago.
I did not test the mail function, but I do know the correct password.
I just removed the redirect and I can now log in.
Do you know why I can't log in after changing redirect?
Iselin.
I did not test the mail function, but I do know the correct password.
I just removed the redirect and I can now log in.
Do you know why I can't log in after changing redirect?
Iselin.
- andriesinfoserv
- Forum Members
- Posts: 78
- Joined: Wed Aug 31, 2011 6:37 am
Re: I suddenly can't log into my admin page.
so before with redirect, you could get to the login page but after entering your credentials the page just reloaded with login creds cleared?
Why such an old version of cmsms?
What is the redirect, what is the redirect to accomplish and where did you place it exactly?
if you enable display errors in php.ini with redirect in place do you get any errors?
Why such an old version of cmsms?
What is the redirect, what is the redirect to accomplish and where did you place it exactly?
if you enable display errors in php.ini with redirect in place do you get any errors?
Re: I suddenly can't log into my admin page.
Thanks for your answer.
so before with redirect, you could get to the login page but after entering your credentials the page just reloaded with login creds cleared?
Yes, that is correct.
Why such an old version of cmsms?
I upgraded to the latest version of cmsms today, but nothing happened to the login page after doing the redirect.
What is the redirect, what is the redirect to accomplish and where did you place it exactly?
I changed to mod_rewrite in the config.php
Then I added the following to htaccess.txt file in the /doc :
Then I moved the htaccess.txt file to the root and renamed it to .htaccess
Every page looks exactly how I want to, but I cant log in to the admin page.
if you enable display errors in php.ini with redirect in place do you get any errors?
Never heard of this file, where is it located?
Iselin.
so before with redirect, you could get to the login page but after entering your credentials the page just reloaded with login creds cleared?
Yes, that is correct.
Why such an old version of cmsms?
I upgraded to the latest version of cmsms today, but nothing happened to the login page after doing the redirect.
What is the redirect, what is the redirect to accomplish and where did you place it exactly?
I changed to mod_rewrite in the config.php
Then I added the following to htaccess.txt file in the /doc :
Code: Select all
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
RewriteCond %{HTTP_HOST} ^\web-focus\.no [NC]
RewriteRule ^(.*)$ http://www.web-focus.no/$1 [L,R=301]
Every page looks exactly how I want to, but I cant log in to the admin page.
if you enable display errors in php.ini with redirect in place do you get any errors?
Never heard of this file, where is it located?
Iselin.
- andriesinfoserv
- Forum Members
- Posts: 78
- Joined: Wed Aug 31, 2011 6:37 am
Re: I suddenly can't log into my admin page.
some things to check:
does your admin login work when you try without www? what is the url of admin when rewrite rule is removed? does it have a www? or verify behavior of your rewrite rule. right now your htaccess says if they come in with no www add www. if that's what you want, good but you may want to check root_url in config.php to see if it has www or not. While you're in there verify admin directory and page extension settings.
php.ini is the "config.php" for php itself on your server. It should be located at your server's home/user directory. Three things that need to gel: config.php(cmsms), htaccess(apache), and php.ini(php).
does your admin login work when you try without www? what is the url of admin when rewrite rule is removed? does it have a www? or verify behavior of your rewrite rule. right now your htaccess says if they come in with no www add www. if that's what you want, good but you may want to check root_url in config.php to see if it has www or not. While you're in there verify admin directory and page extension settings.
php.ini is the "config.php" for php itself on your server. It should be located at your server's home/user directory. Three things that need to gel: config.php(cmsms), htaccess(apache), and php.ini(php).
Re: I suddenly can't log into my admin page.
I could not log into to admin with or without www however, I changed the "root_url" i config.php and added www. I can now log into admin, but all my image links are broken:/ Do I need to change all the links manually or can I do changes in config.php? If you look at my config you can see that my uploads path are very long, do you know why?
Again, thank you so much for your help so far, appreciate it very much:)
config.php:
Again, thank you so much for your help so far, appreciate it very much:)
config.php:
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'] = false;
$config['timezone'] = 'Europe/Oslo';
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'web-focus.no.mysql';
$config['db_username'] = 'web_focus_no';
$config['db_password'] = '';
$config['db_name'] = 'web_focus_no';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.web-focus.no';
$config['ssl_url'] = 'https://web-focus.no';
$config['root_path'] = '/customers/web-focus.no/web-focus.no/httpd.www';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/customers/web-focus.no/web-focus.no/httpd.www/tmp/cache';
$config['uploads_path'] = '/customers/web-focus.no/web-focus.no/httpd.www/uploads';
$config['uploads_url'] = 'http://web-focus.no/uploads';
$config['max_upload_size'] = 12000000;
$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'] = '/customers/web-focus.no/web-focus.no/httpd.www/uploads/images';
$config['image_uploads_url'] = 'http://web-focus.no/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 iselinarnesen on Wed Dec 07, 2011 3:39 pm, edited 1 time in total.
- andriesinfoserv
- Forum Members
- Posts: 78
- Joined: Wed Aug 31, 2011 6:37 am
Re: I suddenly can't log into my admin page.
i'm not looking at my config.php right now but, it appears the image uploads url is supposed to be a path relative to your root url. you have a absolute path designated so cmsms sees root/path/root/path/image/path.
from your config.php
you can clear cache in cmsms and browser, make sure config.php is writable temporarily, you can set to process whole template temporarily to help cmsms clean up things after a lot of changes.
btw, if this solves your problem be sure and change your database connection info as it was posted here. you may also consider renaming your admin directory on server and use same name for admin dir in config.php and password protect admin directory with .htaccess as well.
from your config.php
also, make sure you match ssl and non ssl directory paths for images, your root url and any others if ssl is to be used or for best practice.$config['image_uploads_url'] = 'http://web-focus.no/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
you can clear cache in cmsms and browser, make sure config.php is writable temporarily, you can set to process whole template temporarily to help cmsms clean up things after a lot of changes.
btw, if this solves your problem be sure and change your database connection info as it was posted here. you may also consider renaming your admin directory on server and use same name for admin dir in config.php and password protect admin directory with .htaccess as well.
Re: I suddenly can't log into my admin page.
Solved, all links are working fine now. Thank you so much!!! 

- andriesinfoserv
- Forum Members
- Posts: 78
- Joined: Wed Aug 31, 2011 6:37 am