Page 2 of 3

Re: New Login Screen?

Posted: Wed Jun 25, 2014 8:00 pm
by KitchM
Post (I shouldn't have to write this... ::) ) your config.php being carefull to omit passwords and usernames.
Right you are. Here it is:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'username';
$config['db_password'] = 'password';
$config['db_name'] = 'sierraclubswmg_cms';
$config['db_prefix'] = 'cms_';
$config['root_url'] = 'http://www.sierraclubswmg.org';
$config['timezone'] = '';
$config['admin_dir'] = 'is-renamed';
$config['url_rewriting'] = 'mod_rewrite';
?>
Simple: in your browser instead of using http://adresstothesite.something/admin (non encripted) use https://adresstothesite.something/admin (encripted)...
Note the HTTPS on the secure address...
Oh, of course. ::) I thought you meant something else related to a setting in CMSMS somewhere.

If I type in the address from my bookmark it goes to the https address. If I change it to http, it rewrites to https and goes to the same place.

Re: New Login Screen?

Posted: Thu Jun 26, 2014 3:59 am
by frankmanl
It seems you have more problems with this site https://www.sierraclubswmg.org/. None of the menu items work, they all give an error like:
Not Found
The requested URL /About-SWMG was not found on this server.

Re: New Login Screen?

Posted: Thu Jun 26, 2014 2:45 pm
by KitchM
You are correct. Everything changed and I don't know why.

Re: New Login Screen?

Posted: Mon Jun 30, 2014 10:14 pm
by KitchM
Jo Morg, what did you discover from the file contents?

Re: New Login Screen?

Posted: Tue Jul 01, 2014 6:10 am
by staartmees
It seems your site is completely broken

Code: Select all


The following directories must be writable by the web server:
tmp/cache
tmp/templates_c

Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivilent for your platform before continuing.


Re: New Login Screen?

Posted: Tue Jul 01, 2014 1:30 pm
by Jo Morg
KitchM wrote:Jo Morg, what did you discover from the file contents?
Nothing significant, however you may try adding the following:

Code: Select all

#....
$config['root_url'] = 'http://www.sierraclubswmg.org';
$config['ssl_url'] = 'https://www.sierraclubswmg.org'; # <-- add this
#....
$config['admin_dir'] = 'is-renamed';
# (Uniqu3's tip :) )
$config['admin_url'] = $config['ssl_url'] . '/' . $config['admin_dir']; # <-- add this
#....
 
Also, for every change you do while debugging you need to clear CMSMS cache.
frankmanl wrote:It seems you have more problems with this site https://www.sierraclubswmg.org/. None of the menu items work, they all give an error like:
Not Found
The requested URL /About-SWMG was not found on this server.
KitchM wrote:You are correct. Everything changed and I don't know why.
That may also mean that your host possibly changed something in the server environment. You may need to contact your host to check for recent changes.

Re: New Login Screen?

Posted: Tue Jul 01, 2014 6:06 pm
by KitchM
Thanks very much to all who replied. It is greatly appreciated.

@staartmees,
I started with your suggestions, but it seems I may have made a mistake because of your possibly incomplete pathname. I changed the /tmp directory to 777 and made it recursive to files and directories under it. Then I noticed that /tmp/cache is not there. So I started looking for other ones, and I found that tmp directories are scattered everywhere. I hope I did not do something wrong.

Are you sure of your pathnames?

Re: New Login Screen?

Posted: Tue Jul 01, 2014 7:04 pm
by staartmees
it's the error message your website shows for the moment, so the pathnames are correct. It's very strange the tmp directories are scattered everywhere.

Re: New Login Screen?

Posted: Tue Jul 01, 2014 9:14 pm
by KitchM
That just doesn't seem correct. The only place I found /templates_c was actually /home/sierraclubswmg/public_html/tmp/templates_c. There simply is no /tmp/templates_c.

Re: New Login Screen?

Posted: Tue Jul 01, 2014 9:17 pm
by Jo Morg
That's correct, as long as /home/sierraclubswmg/public_html/ is the root of your CMSMS instalation.

Re: New Login Screen?

Posted: Tue Jul 01, 2014 10:06 pm
by KitchM
Okay, I made the changes you suggested, Jo Morg. Then I looked for any cache I could manually clear. Then I selected my login page and it still came up with a non-standard page. Worse, when I tried to login, it gave me a blank page.

Re: New Login Screen?

Posted: Wed Jul 02, 2014 3:38 pm
by KitchM
Now when I select sierraclubswmg.org I get a screen that states:
The following directories must be writable by the web server:
tmp/cache
tmp/templates_c

Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivilent for your platform before continuing.
/home/sierraclubswmg/public_html/cms/tmp shows attributes of 755. When I change it to 777 it appears to take it, but then reverts back to 755.

Re: New Login Screen?

Posted: Wed Jul 02, 2014 3:55 pm
by KitchM
I should be clearer; I found these directories:
1. ...../sierraclubswmg/public_html/tmp, but there was no /cache, although there was a /templates_c, so I made it 777 recursively.
2. ...../sierraclubswmg/public_html/cms/tmp which contained both. Changed this one to 777 recursively but it kept reverting to 755. So I used chmod on the two specific directories and it seemed to take.

Still no improvement.

Checked other domains which are using CMSMS and they have no problems. This appears to indicate that the LAMP system is working correctly overall, and that the problem only applies to this one domain.

Re: New Login Screen?

Posted: Wed Jul 02, 2014 4:03 pm
by Jo Morg
KitchM wrote:...but there was no /cache...
Probably deleted by someone by mistake. Create an empty folder with that name (cache) inside /temp, and chmod appropriately.

Re: New Login Screen?

Posted: Wed Jul 02, 2014 4:04 pm
by KitchM
Just on a guess I created a cache directory under ......./sierraclubswmg/public_html/tmp. As I always do, I restarted Apache. Then I went to the web site and it came up with my correct website down for maintenance message. I then tried to get to the login screen and got: