On Wed, Apr 22, 2009 at 4:05 PM, Brian <[email protected]> wrote:

> MediaWiki also sets a php.ini memory limit. Check LocalSettings and
> elsewhere
>
LocalSettings.php comes with # ini_set( 'memory_limit', '20M' );, but that's
too large to be causing this problem, and it's commented out by default
anyway.  maintenance/commandLine.inc comes with ini_set( 'memory_limit', -1
);, but clearly it's not being followed.


>
> On Wed, Apr 22, 2009 at 1:00 PM, Daniel Barrett <[email protected]>
> wrote:
>
> > I'm having a mysterious problem at my web hosting provider, where
> > maintenance/importImages.php is throwing an "out of memory" exception.
> >  Increasing PHP's memory limits doesn't seem to help.  Has anyone
> > experienced and solved this?
> >
> > This hosting provider uses cpanel and jailshell.  When I SSH into the
> > system and, in jailshell, run the script, I get:
> >
> > $  php importImages.php --overwrite ~ /upload
> > Import Images
> > Fatal error: Out of memory (allocated 7602176) (tried to allocate 7680
> > bytes) in /home/user/public_html/w/includes/filerepo/LocalFile.php on
> line
> > 145
> >
> > Now here's the strange part:
> >
> > - Hand-editing importImages.php and adding ini_set( 'memory_limit', 'some
> > huge amount' ) makes no difference at all.
> > - Adding a php.ini files in the current directory makes no difference
> > - Inside jailshell, on another server in the same farm, I can run the
> > script without error.
> > - root can run the script without error (not in jailshell) anytime
> >
> > Any clues?
> > DanB
> >
>

It's possible to have multiple PHP configuration files, one for Apache and
one for the CLI; if you're adjusting a php.ini file, make sure you're
adjusting the CLI one.  Since you're running a jailed/crippled shell,
ini_set() is probably disabled (you can check with phpinfo()--assuming it's
not disabled too ;)), so unless you have access to the php.ini file that's
actually used, you're going to have to complain to your host.
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to