PDA

View Full Version : problem migrating joomla sites from ISPC2 to ISPC3 - Allowed memory exhausted


radim_h
21st June 2011, 11:53
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 ?

radim_h
21st June 2011, 12:17
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,she ll_exec,proc_open
to line
disable_functions = exec,passthru,popen,ini_set,system,show_source,she ll_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

till
21st June 2011, 13:21
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.

radim_h
21st June 2011, 13:39
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 :|||

till
21st June 2011, 13:53
Trying to get property of non-object in /var/www/clients/client68/web104/web/plugins/system/redirect_failed_login.php

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.

radim_h
21st June 2011, 14:12
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