<![CDATA[ Suddenly unable to log into manager - My Forums]]> https://forums.modx.com/thread/?thread=36132 <![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478222 Ysanmiguel Sep 19, 2013, 01:19 PM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478222 <![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478194 ]]> BobRay Sep 19, 2013, 06:05 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478194 <![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478191
there was a php.ini because suexec was installed in the server. the hp.ini only has register global off, and that was all. But that php.ini was the trouble!

In my case find that php.ini was MAGIC, because I was looking for info for ages!
but may be if the content is more complex inside the php file, off course it might have something important!

Thank you Bob!
]]>
Ysanmiguel Sep 19, 2013, 03:20 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478191
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478182 BobRay Sep 19, 2013, 02:26 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478182 <![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478178 twz-17...

Do you have a copy of the php.ini that the host upload?
I'm having the same problem, i follow the whole conversation and change the manager/php.ini file name works, THANK YOU for this post, is help full, and grate found it after 8 hours trying to find an answer!!!! NICE!!! smiley

I check other ModX sites and those does not have a manager/php.ini, so i think is not necessary!
in that case i just delete it!

THANK YOU!!!!]]>
Ysanmiguel Sep 19, 2013, 12:46 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-478178
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-203236
Although they still haven’t said what they changed, I suspect the problem started when they installed suhosin (which has many entries in phpinfo() - I don’t remember seeing it there before).

I’ve also grabbed a copy of that code BobRay - for when the host changes something else and it breaks again.
]]>
twz-17 Sep 18, 2009, 08:52 PM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-203236
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-203235 Quote from: twz at Sep 18, 2009, 05:56 AM

So I suppose I’ll need to use a copy of the host’s main php.ini, and just change the bits I want??

Either way, it still doesn’t explain why it has been working ok up until now.


Possibly the host’s php.ini changed.

Here’s some code I found to copy the hosts main php.ini and make your modifications to it. I don’t know if it will work at your host:

<?php
// Put all the php.ini parameters you want to change below. One per line.
// Follow the example format $parm[] = "parameter = value";
$parm[] = "register_globals = Off";
$parm[] = "session.use_trans_sid = 0";
// full unix path - location of the default php.ini file at your host
// you can determine the location of the default file using phpinfo()
$defaultPath = "/usr/local/lib/php.ini"; 
// full unix path - location where you want your custom php.ini file
$customPath = "/home/user/public_html/php.ini";
// nothing should change below this line.
if (file_exists($defaultPath)) {
  $contents = file_get_contents($defaultPath); 
  $contents .= "\n\n; USER MODIFIED PARAMETERS FOLLOW\n\n";  
  foreach ($parm as $value) $contents .= $value . " \n";
  if (file_put_contents($customPath,$contents)) {
    if (chmod($customPath,0600)) $message = "The php.ini file has been modified and copied";
      else $message = "Processing error - php.ini chmod failed";
  } else {
    $message = "Processing error - php.ini write failed";
  }
} else {
  $message = "Processing error - php.ini file not found";
}
echo $message;
?>  
]]>
BobRay Sep 18, 2009, 03:23 PM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=3#dis-post-203235
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203234
Due to the limited architecture of PHP, the php.ini has certain settings that can’t be over-ridden, and the upload_max_filesize is one of them. So tinkering with the php.ini file or the .htaccess file won’t work... it’s set at the global level only (so I’m told).

]]>
Everettg_99 Sep 18, 2009, 02:28 PM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203234
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203233
upload_max_filesize = 7M
post_max_size = 8M

I had played around with adding more stuff, like session.save_path and memory_limit but they didn’t solve the problem so I removed them.

It seems that having a php.ini when running PHP as CGI means that the php.ini doesn’t just change a few settings, but REPLACES the system php.ini. So I suppose I’ll need to use a copy of the host’s main php.ini, and just change the bits I want?? Either way, it still doesn’t explain why it has been working ok up until now.
]]>
twz-17 Sep 18, 2009, 12:56 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203233
<![CDATA[Re: Suddenly unable to log into manager]]> https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203232


]]>
BobRay Sep 18, 2009, 12:39 AM https://forums.modx.com/thread/36132/suddenly-unable-to-log-into-manager?page=2#dis-post-203232