problem migrating joomla sites from ISPC2 to ISPC3 - Allowed memory exhausted

Discussion in 'Tips/Tricks/Mods' started by radim_h, Jun 21, 2011.

  1. radim_h

    radim_h Member

    Hello,
    maybe somebody can help
    i'm triying to migrate sites from mod-php ISPC2 to fast-cgi+suexec ISPC3

    when i move sites then i see just blank page and in error .log are lines
    [Tue Jun 21 11:34:08 2011] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning: ini_set() has been disabled for security reasons in /var/www/clients/client68/web104/web/libraries/joomla/session/session.php on line 102
    [Tue Jun 21 11:34:08 2011] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning: ini_set() has been disabled for security reasons in /var/www/clients/client68/web104/web/libraries/joomla/session/session.php on line 105
    [Tue Jun 21 11:34:08 2011] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning: ini_set() has been disabled for security reasons in /var/www/clients/client68/web104/web/libraries/joomla/session/session.php on line 682
    [Tue Jun 21 11:34:08 2011] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76 bytes) in /var/www/clients/client68/web104/web/libraries/joomla/error/exception.php on line 117

    memory limit is set to 128MB, when i set memory limit to 256MB, all memory is exhausted again
    this error appears also when i switch site to mod_php

    has anyony idea what is causing this ?
     
    Last edited: Jun 21, 2011
  2. radim_h

    radim_h Member

    about first error
    when i edit
    /etc/php5/apache2/php.ini
    /etc/php5/cgi/php.ini
    line
    disable_functions = exec,passthru,popen,ini_set,system,show_source,shell_exec,proc_open
    to line
    disable_functions = exec,passthru,popen,ini_set,system,show_source,shell_exec,proc_open
    (isnt it security risk?)
    and restart apache, error message PHP Warning: ini_set goes out, but there is still memory exhaustion error
     
  3. till

    till Super Moderator

    Set a higher php memory limit in the php.ini file and restart apache. Check if the database ahs been migrated correctly and that the logins to the new database are working and if any paths in the config files have to changed etc.
     
  4. radim_h

    radim_h Member

    there was same problem with 256MB of memory..
    i have saved configuration and it started to work 8-|

    i have upgraded joomla instalation, sites are working, but there is errror message in the log

    Trying to get property of non-object in /var/www/clients/client68/web104/web/plugins/system/redirect_failed_login.php

    don't understand it :|||
     
  5. till

    till Super Moderator

    This might be related to a wrong path e.g. if one of the plugins has saved the old website path somewhere and is now unable to load a file or the PHP version on the old and new server differs and this plugin is not 100% compatible with the new PHP version.
     
  6. radim_h

    radim_h Member

    just for info, memory exhaustion problem was caused by wrong permission on files, must be at least 750

    still cannot find cause of non-property object message, but sites seems workig correct
     

Share This Page