New Login Screen?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: New Login Screen?

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post by KitchM »

You are correct. Everything changed and I don't know why.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post by KitchM »

Jo Morg, what did you discover from the file contents?
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: New Login Screen?

Post 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.

User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: New Login Screen?

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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?
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: New Login Screen?

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: New Login Screen?

Post by Jo Morg »

That's correct, as long as /home/sierraclubswmg/public_html/ is the root of your CMSMS instalation.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: New Login Screen?

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: New Login Screen?

Post 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:
Attachments
CMSMS Login screen.png
Locked

Return to “The Lounge”